chapter17test1

#include<iostream>
int main()
{
using namespace std;
char ch; int count = 0;
cout << "Enter your words :";
while (cin>>ch)
{
cout << ch;
if (ch == '$')
break;
count++;
}
cout << "\nTotaly,we have " << count << " characters.\n";
return 0;
}
阅读更多
文章标签: c++
个人分类: C++学习
上一篇循环-01~~~05
下一篇chapter17test2
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭