A little help here please!!!

Discussion in 'C++' started by Bruce20, Dec 8, 2011.

  1. Bruce20

    Bruce20 New Member

    Joined:
    Dec 8, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Who can help me be the best progrmmer of all times?
    Please send short notes so I can read and understand c++, my first programming language!!!!
     
  2. ophelia.2010

    ophelia.2010 New Member

    Joined:
    Oct 18, 2011
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    student
    Location:
    london
    If you knew C language, it would be easy for you!!!
    BASIC FORMAT for a c++ program:

    #include<iostream.h>
    main()
    {
    body of the program
    }

    Body of the program consists of Valid C++ statements terminated by a ;
    (eg.) Program to add 2 nos.

    #include<iostream.h>
    main()
    {
    int a,b,c;
    cout<<"ENTER values for a and b \n";
    cin>>a>>b;
    c=a+b;
    cout<<"The sum of a and b is : \t";
    cout<<a<<b;
    }

    cin is used for getting values from the user through an input device like keyboard.
    cout is used for displaying the values through an output device like monitor
    iostream.h is a header file through which you can access cin,cout and other members like these.
    Computer can understand only Binary language consisting of 1 and 0.
    Programming languages were invented only for our comfort.
    Computer can't understand programming language So,
    Compiler is the one which executes the program code which you type and converts into object code -computer understandable language.
    If errors any, the compiler will report it to you (You will know this if you have a Borland C++ version)
    Function is where you want your processes to take place(here addition of 2 numbers)
    main() is an important part of the program-program execution starts with main and ends with main.No program can be written without a main() function.

    HOPE THIS WAS USEFUL!!!
     
  3. AHBKS

    AHBKS New Member

    Joined:
    Feb 1, 2012
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Nice sharing thanks and keep it up
     
  4. AHBKS

    AHBKS New Member

    Joined:
    Feb 1, 2012
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Nice sharing thanks and keep it up
     
  5. ophelia.2010

    ophelia.2010 New Member

    Joined:
    Oct 18, 2011
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    student
    Location:
    london
    You're WELCOME!!!
     
  6. ballurohit

    ballurohit New Member

    Joined:
    Nov 18, 2011
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    retired
    Location:
    Gujarat
    QUOTE Can I get a copy of the suggested C++ method?
    My Email Address is :"ballubhai37@gmail.com"UNQUOTE

    Thanks in advance
    (b.n.rohit)
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice