Compiling and Running C/C++ programs in Ubuntu 10.10

Wednesday, October 20, 2010

 Today I wish to tell about how to compile and  run C/C++ programs in ubuntu 10.10.If you are a developer of C/C++ you need a compiler for the development of the programs.Ubuntu 10.10 has the compiler inbuilt with the operating system.Incase if the compiler is missing you download the package and able to install.
To download -Open the terminal and type the following.
                           sudo aptitude install build-essential
this will install the required packages of C/C++ compilers.

How to compile and run the C program
1.From the apllications open the terminal and type sudo gedit first.c
   This will open a new file type the C program and save it
  for eg. #include<stdio.h>
               int main()
               {
                printf("Hello,world\n");
                 return 0;
                 }
2.for compiling type cc -c first.c
  that will create an object file and add to the library.
3.then create an executable file using the following command
       cc -o first first.c
4.Then run the Program by typing 
     ./first
5.Output should be asfollows
        Hello,world

How to compile the C++ program.
If you want to run a C++ program you must need a g++compiler.
1.create a file using sudo gedit first.cpp
   eg.#include<iostream.h>
       int main() 
         {
          std:: cout << "Hello world!" <<std::endl;
          return 0;
           }

Run your C++ program using the following command
g++first.cpp -o test
then 
./first
Output will be as follows
Hello, world!


Tags:Ubuntu  compiling C & C++ in ubuntu 



 
           



 

Ubutnu 10.10 it's here to download

Sunday, October 17, 2010

Ubuntu 10.10 has been arrived and now able to download...



                  

Upgrading Ubuntu 10.10 maverick meerkats from ubuntu 10.04 lucid karmic

Saturday, October 16, 2010







Are you using the older versions of ubuntu?It's time to move forward to the new linux ubuntu10.10 maverick meerkats.The full version of the ubuntu10.10 has been launched.
Upgrading the Desktop edition:
                                So to upgrade the desktop edition press ALT+F2 and type update-manager -d in the command box.Update manager opens and tells you a new version of Ubuntu is available.


1.Press ALT+F2 and type update-manager -d


2.The following screen will be appeard.Frist install all the updates and then click for upgrade.

Upgrading Server edition:
                 
To upgrade from Ubuntu 10.04 LTS on a server system:
1- install the update-manager-core package if it is not already installed:
                     sudo apt-get install update-manager-core
2- Edit /etc/update-manager/release-upgrades and set Prompt=normal;
3- Launch the upgrade tool with the command
                       sudo do-release-upgrade -d
and follow the instructions..


                                     
                      



Ubuntu 10.10 now available for download

                 The release of ubuntu 10.10 is held on 10-10-10 and now it is able to download.It is available in both 32-bit and 64-bit.The editions present are Desktop,Netbook and Server.Enjoy the multitouch netbook editions........
click here to download

Todays Count down banner for ubuntu

Thursday, September 30, 2010

The countdown banner for the new ubuntu10.10 is





                                                           

Ubuntu Tweak

Ubuntu Tweak:
                         Ubuntu tweak is an application used config ubuntu easier for everyone.It is simple tool for the configuration.But it is very efficient.
                         Ubuntu tweak is also an opensource software.It is designed under the GNU(General Public Licence) as published by the free software.

                          It provides many useful desktop and system options that the default desktop does not provide.It has many features such as
                         
  • the applications can be installed quickly. 
  • Tweak otherwise hidden settings.
  • It is used to cleanup unused packages to free diskspaces.
  • It mostly helps to install easily up-to-date versions 
  • Advanced Power Management Settings
  • System Security Settings
  • GNOME Panel Settings                       
My opinion is that the ubuntu tweak is a very useful system tool for the ubuntu beginners.You can Download the new ubuntu tweak software from here. The new version available now is version 0.5.6.

 The various interfaces of ubuntu tweak 0.5.6 are




 







http://ubuntu-tweak.com/                                                          

Countdown banner for Maverick meerkats

Wednesday, September 29, 2010

The countdown banner for the release of new ubuntu 10.10

                           

                                              
The final release is on  sunday-October 10,2010.