正在加载图片...
清华大学出版社 TSINGHUA UNIVERSITY PRESS 14. 2最简单的C++程序 ·例14.1输出一行字符。 #include <stdio.h> #include <iostream.h> /*本程序的作用是输出一行字符*/ void main() { printf("This is a c++program.\n"); cout<"This is a c+program.ln";∥本行输出一行字符 ·本程序和以前见过的C程序有什么不同?14.2 最简单的C++程序 • 例14.1 输出一行字符。 #include <stdio.h> #include <iostream.h> /* 本程序的作用是输出一行字符*/ void main( ) { printf("This is a c++ program.\ n"); cout <<" This is a c++ program.\ n" ; //本行输出一行字符 } • 本程序和以前见过的C程序有什么不同?
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有