Hey, guys.
I am learning separate files, and when I try to putting a function prototype into one user-defined header file, i met a error. Plz help me see where am I wrong, thx :)
#include <iostream>
#include "display_prototype.h"
usingnamespace std;
int main()
{
display(5);
}
void display(int m)
{
cout << "There are " << m << "apples in the box." << endl;
}
ya, now it works...
and another code, i can't run, others can, and he gave me the project running on his computer with my code, he succeed...
I don't why........... my implementation just fight again me :I