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
.Develop a two dimensional interactive game with the following features: 1. Use OpenGL (any version you find convenient) 2. The game can either be two player or one player with the

who to write max if statements in a program

My project is compiling but the equation entered is not working

write a program in c car booking system

I need website Product section search box coding section fix Project Description: On our products section in the search box it only searches the name and title of our product


Define Four Facilities Provided by C Language Preprocessor? The C language preprocessor provides four separate facilities that you can use as you see fit:   Inclusion

For this program, you are going to modify your previous program (program 3) so that it will now have a menu to see if the user wants to read the input from a file or interactively.

A: no, can't. The names of, precedence of, associativity of, and arity of operators is fixed through the language. In C++, there is no operator** so you cannot create one for a

I want MODI method''s coding in c++ using all concepts of c++..please help me its my project work...