首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

gcc中,编译跟运行的命令各是什么啊

2013-09-06 
gcc中,编译和运行的命令各是什么啊?gcc可以在屏幕上打印出,cout输出结果吗?gcc[解决办法]#includestdio.h

gcc中,编译和运行的命令各是什么啊?
gcc可以在屏幕上打印出,cout输出结果吗? gcc
[解决办法]
#include<stdio.h>
#include <iostream>

int  main()
{
    std::cout << "hello, world" << std::endl;
    return 0;
}

ks@ubuntu:~$ g++ test.c -o test
ks@ubuntu:~$ ./test
hello, world
ks@ubuntu:~$ 

热点排行