#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 发布