读书人

如何将quot; hello word !quot;赋给 char str[

发布时间: 2012-03-11 18:15:39 作者: rapoo

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

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

using namespace std;

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

读书人网 >C++

热点推荐