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

Assignment Help:

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.


Related Discussions:- Some of the basic rules of cpp program

Board coloring, n this problem u given a board in which some of the element...

n this problem u given a board in which some of the elements are placed as shown in diagram below .each element represent a color .fill the other elements in the board such that no

C program to print fibonacci series upto n using recursion, C program to Pr...

C program to Print Fibonacci series upto n using recursion: int fibo(long int); void main() {                 long int a=0,n;                 printf ("how many term

Database, write a c++ program to update employee records

write a c++ program to update employee records

Explain the function prototype - computer programming, Explain the Function...

Explain the Function Prototype? The Functions must be declared before they are used, ANSI C provides for the new function declaration syntax called as the function prototype,

Inheitance, ambiguity in multiple inheritance

ambiguity in multiple inheritance

C program for count sorted characters, # include stdio.h> # include coni...

# include stdio.h> # include conio.h> # include string.h> void main()   {           int i=0,j=0;           char a[100],temp;           clrscr();

Should my constructors employ"assignment"or"initialization, Should my const...

Should my constructors employ "assignment" or "initialization lists"?

What operators can or cannot be overloaded?, A: Mostly can be overloaded. T...

A: Mostly can be overloaded. The only C operators which can't be are. and?: (and sizeof, that is technically an operator). C++ adds a few of its own operators, mostly which can be

Described the order that objects in an array is destructed?, Described the ...

Described the order that objects in an array is destructed?

Lexicographic permutation, Given an integer n and a permutation of numbers ...

Given an integer n and a permutation of numbers 1, 2 ... , n-1, n write a program to print the permutation that lexicographically precedes the given input permutation. If the given

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd