摘要:
1 #include <iostream> 2 #include <string> 3 #include <stack> 4 5 using namespace std; 6 int main() 7 { 8 string str ="I live in cnblogs.com"; 9 stack<char> cStack ;10 for(int i=0,w=0;i <str.length(); i++) 11 { 12 if (str[i]==' '||i==str.length()-1) 13 { 1 阅读全文
posted @ 2012-02-12 20:46
lazycoding
阅读(580)
评论(0)
推荐(0)

浙公网安备 33010602011771号