problemscpp
A collection of my answers to algorithm problems in c++.
载入中...
搜索中...
未找到
comp526::oddecho 命名空间参考

函数

int main (istream &cin, ostream &cout)
 

函数说明

◆ main()

int comp526::oddecho::main ( istream & cin,
ostream & cout )

在文件 comp526.cpp81 行定义.

81 {
82 string str;
83 int cnt = 0;
84 while(cin >> str) {
85 if(cnt % 2 == 1) {
86 cout << str << endl;
87 }
88 cnt++;
89 }
90 return 0;
91 }