C++程序编程实例大全
#includeiostream
int main()
(
std::cout?Mhello world!H;
#includc iostream”
using namespace std;
void main()
(
int *p;
p=new int;
*p=5;
/*p=new in?5);*/
cout?*p;
delete p: #includc iostream”
using namespace std;
void main()
( char naine[10];
cout?nplease input your name:”; cin?name;
cout?Hthe name is H?name?endl;
include iostream”
using namespace std;
void inain()
( char name|10];
int age;
cout?nplease input your name:;
cin?name;
cout?nhow old are you:”; cin?age;
cout?°the name is M?name?endl;
cout?Hthe age is H?age?endl;
#includc iostream”
using namespace std;
void niain()
{
struct
原创力文档

文档评论(0)