I just purchased a laptop with Windows 8 and installed the portable Dev-C++ because the other one wasnt compatible with Win8.
Now im getting an error when i compile that says:
'undefined reference to 'printSpecChar(int)
Let me also explain that when i was using Dev-C++ on Win7, i never had to use #include <stdlib.h> for system ("pause") but now I do.
So these are two new things im encountering for the first time.
Is there a setting that I need to change, or am I just missing something.....again?
Code:
#include <stdlib.h>
#include <iostream>
using namespace std;
int getNumber(int, int);
void printSpecChar(int);
void pause (double);
int main()
{
int n;
n = getNumber(1, 100);
printSpecChar(n);
return 0;
}
int getNumber 1, 100)
{
int num = 0;
do
{
cout << "Enter a number between " << min
<< " and " << max << ": ";
cin >> num; cin.clear(); cin.ignore(10, '\n';
}
while (num < min || num > max);
cout << endl << endl;
return num;
}