Computer Science, asked by wahabprince, 1 year ago

how to write a program in c++

Answers

Answered by dikshaverma4you
1
For writing a program in C++ , you must be having a software like CTurbo 7. In that software , coding is done and programs can be built. There are certain rules to write a program which your teacher will definitely teach you................................. Like I can tell you the basics============> A program is started with #include , this is the header file which is necessary if we want input and output operations to be performed............... there are certain data types like int, char, double, float etc. and any variable is stored with the help of data types only , like=> int a; char ch; etc. , int a means , a can only store integer value, and in char a, a can store any character value................... void main() is written after header files and then in next line a program is always started with a curly brace ( { ) Now for printing a statement cout statement is used, like => cout<< "Enter the number" and for taking in a no. cin statement will be used like => cin>>a. A program is ended with getch(); and a curly brace( } ).......... The syllabus for C++ is very big and it is nearly impossible to tell everything here........ Concentrate on your classes, you'll find it really interesting and do practice programs by yourself for logical enhancement.
Answered by salonijain1110
0

Answer:

For writing a program in C++ , you must be having a software like Turbo C++, which can be easily downloaded by any site. In that software , coding is done and programs can be built. By the help of which uh can further make websites also. There are certain rules to write a program which your teacher will definitely teach you.

Like I can tell you the basics=> A program is started with #include<      > , this is the header file which is necessary if we want input and output operations to be performed. There are certain data types like int, char, double, float etc. and any variable is stored with the help of data types only , like=> int a; char ch; etc. , int a means , a can only store integer value, and in char a, a can store any character value................... void main() is written after header files and then in next line a program is always started with a curly brace ( { ) Now for printing a statement cout statement is used, like => cout<< "Enter the number" and for taking in a no. cin statement will be used like => cin>>a. A program is ended with getch(); and a curly brace( } ). The syllabus for C++ is very big and it is nearly impossible to tell everything here.. Concentrate on your classes, you'll find it really interesting and do practice programs by yourself for logical enhancement.

Similar questions