first c programming
First c++ program
INTRO TO THE TOPIC
THE PROGRAM
TURBO C++
#include<iostream.h>
#include <conio.h>
void main()
{
clrscr();
cout<<"hello world ";
getch();
}
Now for the first time I am using dev-c++. Due to some issue my turbo c++ crash so I swich to dev-c++. In developer c++ there is no such header file like conio. Therefor, there is no need of clrscr();
and getch();
DEV C++
#include<iostream>using namespace std;
int main()
{
cout<<"Hello world";
}
OUTPUT
Here is a new thing as you can see in the output screen there is time 4.582 this shows the time taken by compiler to compile our program.
CONCLUSION
You can write this programe in any software for c++. The dev c++ software programe is applicable for any basic c++ software not like turbo c++ or air.
No comments