program in dev c++ 7.4.2

Can anyone please tell me how to make a program in dev c++ 4.7.2.
I made simple program which flashes an error

1
2
3
4
5
6
7
8
#include<iostream.h>
#include<conio.h>
void main()
{
       clrscr();
       cout<<"C++";
       getch();
}
"an error" is not a valid problem description. Do not use Dev-C++, the IDE and the compiler it comes with are both outdated. Install Code::Blocks instead.
Aside from that, somehow you managed to add in an error in every line besides the two braces.

iostream.h is actually called iostream, conio.h is not a C++ header, main() must return int, clrscr() and getch() are not C++ functions and cout is in namespace std.
This is correct:
1
2
3
4
5
6
#include <iostream>

int main()
{
    std::cout << "C++";
}
Topic archived. No new replies allowed.