测试博客

来源:互联网 发布:防网络尖兵路由器 编辑:程序博客网 时间:2024/04/27 20:10

Hello, world

原则上将第一行奉献给经典的那么一句。


贴代码,C++的Hello World程序,外加N多注释

//Here is my first C++ program// though it needn't any thought//Spectial NOTICE:大小写敏感!不要漏截断符;#include <iostream>char InputMyCommit(void);//Declare User Function here!using namespace std;//this form means it inclue the whole namespace//More safe code is://using std::cin;//……//Whst's more://Add statement by Ctrl+Shift+C//Dell statement by Ctrl+Shift+Xint main(){    int ProductDate;    cout << "Hello world!" << endl;    //endl = end line, but "\" inclued into the string means the same    //Using << shows the message's flowing path    //<< likes insert some strings into the output stream    ProductDate=20110713;    cout << "I finish it on " << ProductDate << endl;    //Using doubled "<<" for 拼接 output    cout << endl;// Empty Line    cout << "What do you want to commit" << endl;    cout << InputMyCommit();    cin.get();//Just For a pause    cin.get();    //Begining by c means it's from C language    //cin=in IN C & cout=out IN C    return 0;}char InputMyCommit(void){    char CommitWords;    cin >> CommitWords; //the var CommitWords get the keyboard input    return CommitWords;}


图片上传一下,那货是头像



远景一下:未来继续保持对信息技术的关注,不离开这个领域,这个是下限吧