C++编程设计之路
用*号编写出一个简单的“C++”图形。
// Exercise 2.16// Create an application that displays a welcome message#include <iostream> // required to perform C++ stream I/Ousing namespace std; // for accessing C++ Standard Library members// function main begins program executionint main(){ cout << "\n**********************************\n* Welcome to *\n* *** *\n* * * *\n* * * * *\n* * *** *** *\n* * * * *\n* * * *\n* *** *\n**********************************\n"; system("pause"); return 0; // indicate that program ended successfully}
头文件差一个: #include <stdlib.h>
Blog作者的回复: 不知道啊,我是照着书上的例题练习的.我想应该没错的啊.这个联系,只定义数据输入输出流就可以了吧,我是新人,很多都要想朋友们学习的.