Saturday 17 September 2011

C++ IN LINUX

Steps to install g++ compiler

  • Go to terminal (alt+ctrl+t or applications >accesories> terminal )
  •  write  sudo apt-get install g++ and then press enter 
 steps to work on g++ compiler 
  • go to desktop 
  • right click anywhere on empty space
  • select create document and then empty file 
  • name the file with extension example- rimpy.cpp
  • write the program you want to run 
  • save your program and then go to terminal 
  • type cd Desktop 
           g++ rimpy.cpp 
  • if your program is error free then a file name a.out will be created on the desktop which stores the output of your program, but there is any error in the program then it errors will be shown in terminal.
  • now go to terminal and give command 
               ./a.out 
then press enter your output will be seen in the terminal.
Example of g++ program 
#include<iostream>
using namespace std;
int main()
{
cout<<"hello world";
return 0;
}

Saturday 20 August 2011

About The First Day Of LUG Meeting

It was a very good experience......
I learned how to install ubuntu in my laptop..

In three ways we can install ubuntu : -
1) Inside Window :-
              In this method we can easily install ubuntu in any drive and  we can easily delete it , if we want .In              By first method ,ubuntu can be installed in such a way :-
  • Insert ubuntu cd in cd drive.
  • Click on the option 'instal inside window'.
  • Select the drive 
  • Specify the space.
  • Enter password
  • Then click on install option. 
2) Out side the window : -
          In this method ,we can install ubuntu olong side the windows using another drive.
3) Using entire disk : -
          Third method uses the entire hard disk to install ubuntu .