用字符数组存放一个字符串

1 #include <iostream>
2 
3 /* run this program using the console pauser or add your own getch, system("pause") or input loop */
4 using namespace std;
5 int main(int argc, char** argv) {
6     char str[]="I love CHINA!";
7     cout <<str<<endl;
8     return 0;
9 }

 

posted @ 2018-08-01 15:28  borter  阅读(848)  评论(0编辑  收藏  举报