#include<iostream.h>
#include<conio.h>
int main()
{
int a,b,c;
cout<<"enter the number";
cin>>a>>b;
c=a+b;
cout<<"required sum is"<<c;
getch();
return 0;//should be return int
}
In file included from C:/Dev-Cpp/include/c++/3.4.2/backward/iostream.h:31,
from C:\Documents and Settings\Admin\My Documents\Untitled1.cpp:1:
C:/Dev-Cpp/include/c++/3.4.2/backward/backward_warning.h:32:2: warning: #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.
/mingw/lib/crt2.o(.text+0x37):crt1.c: undefined reference to `__cpu_features_init'
collect2: ld returned 1 exit status
#include<iostream>
int main()
{
std::cout << "enter the number\n";
int a(0);
int b(0);
std::cin>>a>>b;
std::cout << "required sum is " << a+b << '\n';
return 0;
}
Actually i am starting c++ again.
This time I am getting problem By using codes provided by you.
[Linker error] undefined reference to `__cpu_features_init'
ld returned 1 exit status