#include <iostream>
#include <string>
using namespace std;
int main(void)
{
::printf("DATE_TIME=%s %s\nFILE_PATH=%s, CODE_LINE=%d\nMSC_VER=%d\n",
__DATE__, __TIME__, __FILE__, __LINE__, _MSC_FULL_VER);
//std::string strName;
//std::cout << "Input your name here:";
//std::cin>>strName;
//std::cout << strName + ", welcome to fengyhack's world!" << std::endl;
string strName;
cout << "Input your name here:";
cin >> strName;
cout << strName + ", welcome to fengyhack's world!" << endl;
system("PAUSE");
return 0;
}[20140101_Example02]作用域、命名空间
最新推荐文章于 2024-05-07 10:45:00 发布
本文提供了一个简单的C++程序示例,该程序提示用户输入名字,并向用户展示欢迎信息。通过控制台输入和输出,实现基本的交互功能。
9373

被折叠的 条评论
为什么被折叠?



