This question already has an answer here:
All my teacher say that it is <iostream.h> , but when I compile in g++, it gives error for iostream.h, but no error for iostream!
Also, it gives error for using cin with iostream. What should I do?
Last question, it gives error for using #include <conio>
Here is my code:
#include <iostream>
#include <conio>
int main() {
int a,b;
cout<<"enter two numbers:\n";
cin>>a>>b;
cout<<"sum is "<<a+b;
return 0;
}
Also suggest any improvement it could make. Thank you a lot!
Aucun commentaire:
Enregistrer un commentaire