Some of the basic rules of cpp program, C/C++ Programming

Basic rules of C++ program:

·     It must have only one main function

·     If the main function has return type it must  have return value

·     Statement must end with semicolon

·     To comment one line use //

·     To comment more than one line start /* and end with */

·     The primary variables are declared like C variables.

·     The variables must be separated individually in cin >> and cout < Input and

Output can be managed using I/O console functions.

·     cin can read only words without blank space in string.

Posted Date: 9/20/2012 7:26:57 AM | Location : United States







Related Discussions:- Some of the basic rules of cpp program, Assignment Help, Ask Question on Some of the basic rules of cpp program, Get Answer, Expert's Help, Some of the basic rules of cpp program Discussions

Write discussion on Some of the basic rules of cpp program
Your posts are moderated
Related Questions
limitation of function

Object Initialization An object of a derived class can be initialized to an object of a base class. If both the classes have similar data members, then no specific constructor

Need help in network programming in C++ project. How much you charge?

Is there any difference between List x; and List x ()? Can you please provide me assignment help.

#questio c++ program for drawing thick line

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

Question 1 / 1 You have an N x N chessboard and you wish to place N kings on it. Each row and column should contain exactly one king, and no two kings should attack each other (two

i need amibroker afl to dll plugin

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

Explain Formatted Input Output with File Pointer? Likewise there are equivalents to the functions scanf and printf which write or read data to files. These are called fscanf a