测试博客
来源:互联网 发布:防网络尖兵路由器 编辑:程序博客网 时间: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;}
图片上传一下,那货是头像
远景一下:未来继续保持对信息技术的关注,不离开这个领域,这个是下限吧
- 测试博客测试博客
- 测试博客
- 测试博客
- 测试博客
- 测试博客
- 测试博客
- 测试博客
- 博客测试
- 博客测试
- 测试博客
- 测试博客
- 测试博客
- 博客测试
- 测试博客
- 测试博客
- 测试博客
- 测试博客
- 测试博客
- Linux多线程编程和信号易疏忽的一个例子
- MTK 虚拟键盘与输入法
- CryptoPP-5.6.1的RPM
- Borland C++ 5.02编译ucos-ii
- Response.Redirect(),Server.Transfer(),Server.Execute()的区别
- 测试博客
- Asp.Net中几种相似的标记符号:解释及用法 还有许多细节
- LIS
- MTK模拟器调试指南
- ubuntu下,使用svn进行版本管理
- 推荐一个国外在线服务产品-Olark
- Rails 连接 Oracle 数据库
- 数独游戏(完整版)
- Rails 日期自定义输出格式