problems the worlds
hi all
i create a programme."Ececuve" worlde is error show.
We need more information so that we can help you.
1. How are you trying to execute your program?
2. How did you compile it?
3. What compiler are you using?
4. What OS are you using?
1.Ececuve is undeclare function
2.yes i it.but error shows
3.dev c++
4.windows xp professional
thanks you reply me.
Could post the code that is causing you the problem and the errors that it is generating?
It looks like you are trying to use your Ececuve() function before it is declared.
For example:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
#include <iostream>
using namespace std;
int main()
{
say_hello();
return 0;
}
void say_hello()
{
cout << "Hello world!" << endl;
}
|
On line 6 the compiler will tell me that it has no idea what 'say_hello' is:
"say_hello" is undeclared function |
To fix this example you'll need to insert the
prototype above:
1 2 3 4 5 6 7
|
void say_hello(); // Tell the compiler about my function
int main()
{
say_hello(); // Now this works
return 0;
}
|
The variation on the problem is if your Ececuve function is in another c or cpp file and you forgot to #include the header that prototypes it.
(I'm sorry, I have no clue what language Ececuve is, but I presume it means "execute"?)
yes the real world is execute
But did I help answer your question?
Topic archived. No new replies allowed.