#include <iostream>
using namespace std;
int main()
{
char s[]="Hello,World!";
for(int i=0;i<strlen(s);i++)
cout.put(s[i]);//cout.put(ch)输出单个字符
cout<<endl;
system("PAUSE");
return 0;
}
put()
最新推荐文章于 2022-02-21 16:15:46 发布
#include <iostream>
using namespace std;
int main()
{
char s[]="Hello,World!";
for(int i=0;i<strlen(s);i++)
cout.put(s[i]);//cout.put(ch)输出单个字符
cout<<endl;
system("PAUSE");
return 0;
}