09-12-2011, 10:22 PM
main() is wrong. int main() is correct.
![[Image: 847977.jpeg]](http://www.classifiedsduniya.com/wp-content/uploads/2011/05/847977.jpeg)
#include<iostream.h> should be #include<iostream>
cout<<"Simply insert a number(in integer): ";
This should not work, as cout lives in the std namespace. Your compiler should complain that it doesn't know what cout is. You should be using one of the following in the appropriate place:
using namespace std;
using std::cout;
or just std::cout instead of cout
![[Image: 847977.jpeg]](http://www.classifiedsduniya.com/wp-content/uploads/2011/05/847977.jpeg)
#include<iostream.h> should be #include<iostream>
cout<<"Simply insert a number(in integer): ";
This should not work, as cout lives in the std namespace. Your compiler should complain that it doesn't know what cout is. You should be using one of the following in the appropriate place:
using namespace std;
using std::cout;
or just std::cout instead of cout
0300-9520262
Get solution in 24 hour |cpmputer & internet
mileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
