What does this mean? When is a something "local"? Why can't you define a local function?
C++ error: Local function definitions are illegal?
obviously the above answer is absolutely right !!!
this mean that you have something(a variable or a valid identifier) defined inside the scope of a function definition...
for instance,
int myfunction()
{
int a=10 ;
return a;
}
clearly in the above code a is a local identifier(in particular
a local variable) , though this is trivial , absolutely thats right!!
Why can't you define a local function?
the answer is i deem that c++ doesnt allow that.
try searching your program for paranthesis , and correct paranthesis..
you might have defined a function inside other function's scope...
remove that insideous function segment and paste it outside separately !!!
yo'l be done.
Reply:My guess would be that you are trying to define a function inside the scope of another function.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment