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
C program to demonstrate Pointer to variable: void p2a(int *); void main() {                 int x=10, *a,**b;                 int arr[5];                 //poin

•Flow Chart and Pseudocode of Add module - Hotel booking - Signup for new membership Delete module - Hotel reservation cancellation - Change of reservation

Write a C program to input your full forename and full surname. e.g James McCarren and display in one string your complete initial and surname i.e J McCarren . Your initial should

Program is to search for a given character in a string: Program is to search for a given character in a string and print point of match char *stsearch(char *string, char sea

Q: When should you employ multiple inheritance? A:There  are  three  acceptable  answers:-  "Rarely," "Never," and  "while  the  problem  domain cannot be modeled accurately any

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 the different types of errors in PHP. Warnings, Notices and Fatal errors are the types of errors in PHP Notices: Notices signifies non-critical errors, i.e. ac

if age of ram,shayam and ajay are input through keyboard,write a program to determine the youngest of the three.

Write a C++ program with header and source files to store street addresses using the Doubly Linked List ADT. Modify the Node class from Lab Assignment 3 so that it becomes a node i

A: this is a procedure during exception handling while the destructor is called for all local objects in the stack among the place where the exception was thrown & where this is ca