revison

 #include <stdio.h>

int main(int argc, char **argv)

{

/* SYNTAX OF ARRAYS array_name[index] {contents of the array};

* GOLBAL VARIABLES KO MAIN KE BAHAR USE KRTE H AUR VO GLOBALLY USE HO SKTA H 

* VECTOR SYNTAX vector <int> vector_name (number_of_articles) {initialize them here } ya phir hum  Vector key element ko ye initilize them here me hi define kr sklte h taaki number of articles na krne pde 

* .AT USE - iska use kisi specific element of vector ko nikalne ke liye krte h SYNTAX element_name.at(index)

* TO ADD AN ELEMT TO THE VECTOR SYNTAX vector_name.pushback(element)

* TO GET THE SIZE OF VECTOR - vector_name.size()

* CONSTANT CAN'T BE CHANGED THEY ARE READ ONLY 

* to increase by 1 ++

* to decrease by 1 --

* to change the typr of a number static_cast<double>(total)

* to get true or false in statements cout<<boolalpha;

* a += 1; is also equal to a = a + 1;    

* JB NESTED IF STATEMENTS USE KRTE H TB ELSE IF KE END ME CURLY BRACE AUR SEMI COLON NHI ATA 

*switch(name){

* case 'whatever the user types':

* cout << "";

* break;

* LAST ME DEFAULT STATEMENT BHI LGANI H AGR USER KOI BHI CASE NA DAALE

* USKA SYNTAX BHI SAME HOGA

*ENUMS AK SYNTAX

 enum Direction{

    left,right,up,down

};


* } 

* KISI KI BHI WIDTH SET KRNE KE LIYE setw(width) YE fUNCTION USE KRNA HOTA H 

* AHAR WHITE SPACE KI JAGAH KUCH OR LGANA HO TO USE THIS cout << setfill('jobhilganaho');

*/

}


Comments

Popular posts from this blog

sourcecode