am watching *Compiling & Executing Programs Demo* at
http://www.computer-training-software.com/c.htm
and i stumbled upon this
Code:
1 C:\Dev-Cpp\include\c++\3.4.2\backward\iostream.h:31, from C:\Dev-Cpp\test\Untitled1.cpp In file included from C:/Dev-Cpp/include/c++/3.4.2/backward/iostream.h:31, from C:\Dev-Cpp\test\Untitled1.cpp
1 C:\Dev-Cpp\test\Untitled1.cpp from C:\Dev-Cpp\test\Untitled1.cpp
32:2 C:\Dev-Cpp\include\c++\3.4.2\backward\backward_warning.h #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.
4 C:\Dev-Cpp\test\Untitled1.cpp `main' must return `int'
C:\Dev-Cpp\test\Untitled1.cpp In function `int main(...)':
16 C:\Dev-Cpp\test\Untitled1.cpp `end1' undeclared (first use this function)
(Each undeclared identifier is reported only once for each function it appears in.)
this is my code
Code:
#include <iostream.h>
void main()
{
float num1;
float num2;
float total;
cout << "Enter a value for this first virable: ";
cin >> num1;
cout << "Enter a value for this first virable: ";
cin >> num2;
total = num1 + num2;
cout << "The sum of the numbers = " << total << end1;
}