1、使用cin和循环结合进行文本输入
#include <iostream>
int main()
{
using namespace std ;
int count= 0;
char ch ;
cout << "Please enter character,end with # :\n";
cin >> ch ;
while (ch != '*')
1、使用cin和循环结合进行文本输入
#include <iostream>
int main()
{
using namespace std ;
int count= 0;
char ch ;
cout << "Please enter character,end with # :\n";
cin >> ch ;
while (ch != '*')