33,311
社区成员
发帖
与我相关
我的任务
分享
#include <stdio.h>
#include <conio.h>
int main()
{
printf("Hello World\n");
getch();//或在尾加个getch();,头文件conio.h
return 0;
}
#include <iostream>
#include <cstdlib>
#include <cstring>
using namespace std;
int main(void)
{
char cc[100];
char cct[100];
double a;
a = 40;
strcpy(cc,"Using COM port ");
sprintf(cct,"%f",a);
strcat(cc,cct);
cout<<cc<<endl;
system("PAUSE");
return 0;
}