Hello,
I'm new to programming and taking a class that introduces the C ++ language. As required by the class, I installed Dev-C++ version 4.9.8.0 because this is the version everyone is running in the class. We were assigned a basic program to write and hand in. When I try to compile the program, I get a list of errors. I've tried to uninstall three times with no luck. Many of the others in the class are having the same problems. Here is the program and errors I'm getting:
include <iostream.h>
include <stdlib.h>
int main()
{
int value_a, value_b, value_c, result;
cout << "What is the first value: ";
cin >> value_a;
cout << "What is the second value: ";
cin >> value_b;
cout << "What is the third value: ";
cin >> value_c;
result = value_a + value_b + value_c;
cout << "\n\nThe answer is: " << result << "\n\n\n";
system("PAUSE");
return 0;
}
------ERRORS------
31 C:\Dev-Cpp\include\c++\backward\iostream.h
In file included from C:/Dev-Cpp/include/c++/backward/iostream.h
8 C:\Dev-Cpp\CPP-Programs\sum.cpp
from C:/Dev-Cpp/CPP-Programs/sum.cpp
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 <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Relax...I'm new to this and never wrote code before. I'm sorry I'm not an expert at programming. I'm sure you were at my level at some point. I was just asking because I wasn't getting any output...just these messages which I haven't learned what they meant yet. I thought I may have installed the program incorrectly or had some option set wrong. Anyways, thanks for answering my question and please take it easy on rookies such as myself. I'm just trying to learn.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I'm new to programming and taking a class that introduces the C ++ language. As required by the class, I installed Dev-C++ version 4.9.8.0 because this is the version everyone is running in the class. We were assigned a basic program to write and hand in. When I try to compile the program, I get a list of errors. I've tried to uninstall three times with no luck. Many of the others in the class are having the same problems. Here is the program and errors I'm getting:
include <iostream.h>
include <stdlib.h>
int main()
{
int value_a, value_b, value_c, result;
cout << "What is the first value: ";
cin >> value_a;
cout << "What is the second value: ";
cin >> value_b;
cout << "What is the third value: ";
cin >> value_c;
result = value_a + value_b + value_c;
cout << "\n\nThe answer is: " << result << "\n\n\n";
system("PAUSE");
return 0;
}
------ERRORS------
31 C:\Dev-Cpp\include\c++\backward\iostream.h
In file included from C:/Dev-Cpp/include/c++/backward/iostream.h
8 C:\Dev-Cpp\CPP-Programs\sum.cpp
from C:/Dev-Cpp/CPP-Programs/sum.cpp
2 C:\Dev-Cpp\include\c++\backward\backward_warning.h:32
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 <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
try to read the compiler's message -- there isn't any error at all, only warning and there is also written what to do
BTW if somebody in 2005 teaches #include <iostream.h> then go and find better school :-)
Relax...I'm new to this and never wrote code before. I'm sorry I'm not an expert at programming. I'm sure you were at my level at some point. I was just asking because I wasn't getting any output...just these messages which I haven't learned what they meant yet. I thought I may have installed the program incorrectly or had some option set wrong. Anyways, thanks for answering my question and please take it easy on rookies such as myself. I'm just trying to learn.
you're most likely on the wrong forum: https://sourceforge.net/forum/forum.php?thread_id=940084&forum_id=33286
you have much better chances getting more help on the other forum
"please take it easy on rookies such as myself"
Please take the time to look at a forum to see whether your question is on topic before posting.
Wayne