例14.1 输出一行字符。
#include <stdio.h>
#include <iostream.h>
/* 本程序的作用是输出一行字符 */
void main( )
{
printf("This is a c++ program.\ n");
cout <<" This is a c++ program.\ n" ; //本行输出一行字符
}
#include <stdio.h>
#include <iostream.h>
/* 本程序的作用是输出一行字符 */
void main( )
{
printf("This is a c++ program.\ n");
cout <<" This is a c++ program.\ n" ; //本行输出一行字符
}