标签:c++ visual studio 2008 iostream
// lesson0_1.cpp : 定义控制台应用程序的入口点。
//功能:编译并运行Hello,world
//时间:2014.5.7
#include "stdafx.h"
#include "iostream"
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
std::cout<< "Hello,world" <<std::endl;
return 0;
}
// lesson0_2.cpp : 定义控制台应用程序的入口点。
//功能:编写一个程序,使它运行时输出 This (*) is a quote, and this (\) is a blacklash.
//时间:2014.5.7
#include "stdafx.h"
#include "iostream"
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
std::cout<< "This (*) is a quote, and this (\\) is a blacklash."<<std::endl;
return 0;
}
int main ()
{
}// lesson0_3.cpp : 定义控制台应用程序的入口点。
//功能:重写Hello,world! 让程序中每一个允许出现空白符的地方都换行
//时间:2014.5.7
#include "stdafx.h"
#include "iostream"
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
std
::
cout
<<
"Hello,World!"
<<
std
::
endl
;
return
0
;
}
Accelerated C++学习笔记1—<开始学习C++>,布布扣,bubuko.com
Accelerated C++学习笔记1—<开始学习C++>
标签:c++ visual studio 2008 iostream
原文地址:http://blog.csdn.net/to_xidianhph_youth/article/details/26259837