+ -
当前位置:首页 → 问答吧 → Linux 的API都有哪些?

Linux 的API都有哪些?

时间:2009-10-06

来源:互联网

代码:
#include <isotream>
using namespace std;
int main(void){
  cout<<"红红"<<endl;
  return 0;
}


honghong@honghong-laptop:~/tmp$ g++ -Wall h.cpp -o hong
h.cpp:1:20: error: isotream: 没有该文件或目录
h.cpp: In function ‘int main()’:
h.cpp:4: error: ‘cout’ was not declared in this scope
h.cpp:4: error: ‘endl’ was not declared in this scope
h.cpp: At global scope:
h.cpp:7: error: expected class-name at end of input

作者: honghong   发布时间: 2009-10-06

你没装编译环境 只装了个g++?

build-essential

或者 ,没用过c++ 那个库文件不是#include <isotream.h>么?没有扩展名?

作者: adam8157   发布时间: 2009-10-06

honghong 写道:
代码:
#include <isotream>
using namespace std;
int main(void){
  cout<<"红红"<<endl;
  return 0;
}


honghong@honghong-laptop:~/tmp$ g++ -Wall h.cpp -o hong
h.cpp:1:20: error: isotream: 没有该文件或目录
h.cpp: In function ‘int main()’:
h.cpp:4: error: ‘cout’ was not declared in this scope
h.cpp:4: error: ‘endl’ was not declared in this scope
h.cpp: At global scope:
h.cpp:7: error: expected class-name at end of input

#include<iostream>

作者: ludy   发布时间: 2009-10-06

ludy 写道:
honghong 写道:
代码:
#include <isotream>
using namespace std;
int main(void){
  cout<<"红红"<<endl;
  return 0;
}


honghong@honghong-laptop:~/tmp$ g++ -Wall h.cpp -o hong
h.cpp:1:20: error: isotream: 没有该文件或目录
h.cpp: In function ‘int main()’:
h.cpp:4: error: ‘cout’ was not declared in this scope
h.cpp:4: error: ‘endl’ was not declared in this scope
h.cpp: At global scope:
h.cpp:7: error: expected class-name at end of input

#include<iostream>



我日啊

作者: honghong   发布时间: 2009-10-06

honghong 写道:
ludy 写道:
honghong 写道:
代码:
#include <isotream>
using namespace std;
int main(void){
  cout<<"红红"<<endl;
  return 0;
}


honghong@honghong-laptop:~/tmp$ g++ -Wall h.cpp -o hong
h.cpp:1:20: error: isotream: 没有该文件或目录
h.cpp: In function ‘int main()’:
h.cpp:4: error: ‘cout’ was not declared in this scope
h.cpp:4: error: ‘endl’ was not declared in this scope
h.cpp: At global scope:
h.cpp:7: error: expected class-name at end of input

#include<iostream>



我日啊

有错你就只说,不要骂人,你这样没几个人会回答你

作者: ludy   发布时间: 2009-10-06

我只是在骂我自己而已,因为错误已经这错犯的很让人无语

作者: honghong   发布时间: 2009-10-06

honghong 写道:
我只是在骂我自己而已,因为错误已经这错犯的很让人无语


别人帮助了你,你连谢谢都不说,还爆粗..谁都会生气..

作者: kinzess   发布时间: 2009-10-07

竟然把iostream写错啦

作者: the_comer   发布时间: 2009-10-07

突然看到楼主实在很迷糊,你的标题写错啦


 


该条信息是由slax用户用手机Ubuntu发出的,我也要用手机发送Ubuntu信息(详情请登录3g.ubuntu.org查询)

作者: slax   发布时间: 2009-10-10

作者: grow   发布时间: 2009-10-13

mark下。。。恩。。问题和你的一样。。虽然我的iostream没写错还是这个错误。。

作者: wang_rongwei   发布时间: 2009-10-16

wang_rongwei 写道:
mark下。。。恩。。问题和你的一样。。虽然我的iostream没写错还是这个错误。。

是不是没有
代码:
using namespace std;

作者: lilydjwg   发布时间: 2009-10-16

main函数参数写错了。

代码:
main(int argc,char *argv[])

作者: kutan   发布时间: 2010-08-14

热门下载

更多