首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

如何将" hello word !"赋给 char str[]

2012-03-11 
怎么将 hello word !赋给 char str[]同题[解决办法]#includestdafx.h #includeiostreamusing names

怎么将" hello word !"赋给 char str[];
同题

[解决办法]
#include "stdafx.h "
#include <iostream>

using namespace std;

void main()
{
char str[1024];
cin.getline(str,1024);
cout < <str;
}

热点排行