Click here to Skip to main content
15,890,579 members

Comments by Member 8060663 (Top 2 by date)

Member 8060663 6-Jul-11 10:56am View    
What is CodeBlocks? Do you mean I can't do these kind of programs in Dev-C++?
Can you suggest some good compilers in which I will be able to compile programs involving iostream.h, math.h and conio.h? I am new to C++ and I am studying C++ in 11th. So, I need to do only such easy programs for practice and not complicated programs. Can you also tell which C++ compilers are used for developing games?
Member 8060663 6-Jul-11 2:16am View    
This is a program that I tried out.

#include<iostream.h>
void main()
{
cout<<"Welcome to microchip Computer Education";
}
These are the errors that are shown-

Line:1
File:C:\Dev-Cpp\include\c++\3.4.2\backward\iostream.h:31,from D:\CPPdoc\welcome to microchip computer education.cpp
Message:In file included from C:/Dev-Cpp/include/c++/3.4.2/backward/iostream.h:31, from D:\CPPdoc\welcome to microchip computer education.cpp

Line:1
File:\CPPdoc\welcome to microchip computer education.cpp
Message:from D:\CPPdoc\welcome to microchip computer education.cpp

Line:32:2
File:C:\Dev-Cpp\include\c++\3.4.2\backward\backward_warning.h
Message:#warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <x> header for the <x.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.

Line:3
File:\CPPdoc\welcome to microchip computer education.cpp
Message:`main' must return `int'
This program compiles properly in Turbo C++. I don't understand why Dev-C++ 4.9.9.2 is giving errors.

Please help me!