|
-
November 4th, 2010, 05:37 PM
#1
Error C4430: missing type specifier - int assumed.
Can someone help me to understand what is wrong with this code. I am receiving the error
Error 1 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
class Numbers
{
public:
Numbers(void);
~Number(void);
int Number::GetNumber() const;
};
#include "Number.h"
#include <iostream>
using namespace std;
Number::Number(void)
{
}
Number::~Number(void)
{
}
Number::GetAge()const The error points to these two lines of code
{
int iNumbers = 0;
cout << "Enter the number ";
cin >> iNumbers;
return iNumbers;
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|