C++入门经典-例2.6-简单用cout输出字符

1:代码如下:

// 2.6.cpp : 定义控制台应用程序的入口点。
//

#include "stdafx.h"
#include <iostream>
using namespace std;
void main()
{
    int i=0;
    cout << i<< endl;
    cout << "HelloWorld" <<endl;
}
View Code

运行结果:

posted @ 2017-09-11 09:51  一串字符串  阅读(565)  评论(0编辑  收藏  举报