For all those who are not having working internet connection and want to install g++ on their computer,there is a way.
First put your ubuntu linux live cd in the cd-rom and close it.
Go to the synaptic package manager, and click add the cd-rom from one of the classical menus on the top. After u click that button, synaptic will add all the files of the cd and will ask you. Do you want to add another cd-rom. click no.
Now having the live cd in the cd-rom, go to synaptic package manager, click the search button and type g++ in it.
when g++ appears in the list, tick mark it and click the apply button. Now everything should go smoothly. Now go to terminal and click g++. you should get no input files. This means you have installed c++ compiler in your computer. Now compile programs as usual.
If the result is positive, reply me.
i will also tell how to install java,oracle,lamp(linux apache mysql php) and flex in your ubuntu linux.

I am facing problems while compiling cpp files.
I have installed the build-essential packages but I am getting error messages while compiling the program
fact.cpp:1:21: error: iostream.h: No such file or directory
fact.cpp:2:18: error: conio.h: No such file or directory
fact.cpp:3: error: ‘::main’ must return ‘int’
fact.cpp: In function ‘int main()’:
fact.cpp:8: error: ‘clrscr’ was not declared in this scope
fact.cpp:9: error: ‘cout’ was not declared in this scope
fact.cpp:10: error: ‘cin’ was not declared in this scope
fact.cpp:13: error: ‘getch’ was not declared in this scope
I dont know what to do please help me

ok guys, working hard on the autoexec.bat file to install all necessary hardware and compiling ubuntu with UNIX Kernal. Don’t want to reinvent the wheel here. Anybody have it done and wants to makes some $$$?

1.cpp:2:21: error: iostream.h: No such file or directory
1.cpp:31: error: return type specification for destructor invalid
1.cpp: In member function ‘void Stack::Top()’:
1.cpp:67: error: ‘cout’ was not declared in this scope
1.cpp:67: error: ‘endl’ was not declared in this scope
1.cpp:71: error: ‘cout’ was not declared in this scope
1.cpp:71: error: ‘endl’ was not declared in this scope
1.cpp: In member function ‘void Stack::Insert()’:
1.cpp:81: error: ‘cout’ was not declared in this scope
1.cpp:81: error: ‘endl’ was not declared in this scope
1.cpp:85: error: ‘cout’ was not declared in this scope
1.cpp:85: error: ‘endl’ was not declared in this scope
1.cpp:86: error: ‘cin’ was not declared in this scope
1.cpp: In member function ‘void Stack::Delete()’:
1.cpp:96: error: ‘cout’ was not declared in this scope
1.cpp:96: error: ‘endl’ was not declared in this scope
1.cpp:100: error: ‘cout’ was not declared in this scope
1.cpp:100: error: ‘endl’ was not declared in this scope
1.cpp: In member function ‘void Stack::Display()’:
1.cpp:111: error: ‘cout’ was not declared in this scope
1.cpp:111: error: ‘endl’ was not declared in this scope
1.cpp:114: error: ‘cout’ was not declared in this scope
1.cpp:114: error: ‘endl’ was not declared in this scope
1.cpp:119: error: ‘cout’ was not declared in this scope
1.cpp: At global scope:
1.cpp:122: error: ‘::main’ must return ‘int’
1.cpp: In function ‘int main()’:
1.cpp:128: error: ‘cout’ was not declared in this scope
1.cpp:128: error: ‘endl’ was not declared in this scope
1.cpp:130: error: ‘cin’ was not declared in this scope

I installed g++ for compiling c++ program in ubuntu 9.10, but we get the following errors…..

program is

#include
main()
{
int i;
cout<>i;
cout<<"\n number is"<<i;
}

after compile
p1.cpp:1:21: error: iostream.h: No such file or directory
p1.cpp: In function ‘int main()’:
p1.cpp:5: error: ‘cout’ was not declared in this scope
p1.cpp:6: error: ‘cin’ was not declared in this scope
where program name is p1.cpp
please replay me……

Thanks!!! My first c/c++ program in ubuntu!!!! I want to learn more (only in linux). Please, give me more articles or tutorials in c/c++ for linux, i have downloaded an compiled Code:Blocks.
See you later!!