[20140101_Example02]作用域、命名空间

来源:互联网 发布:海外 vps 建站 编辑:程序博客网 时间:2024/04/29 13:20
#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;}

0 0
原创粉丝点击