C I am having trouble on line 23 and dont know what to inclu
C++
I am having trouble on line 23 and don\'t know what to include
Overview of the problem: Only writing code where indicated and without defining any new classes, try to get the program to output the following things (only one at a time, since there is only one return value): thing.x thing.y thing.doStuff() thing.doStuff2()Solution
thing.x is 2
thing.y is 10
in the constructor Thing() x and y values are assigned.
int extractThing(void* thing)
{
printf(\"inside the extractThing\");
//retun type is int so return something like zero. or
thing.doStuff();
thing.doStuff2();
return 0;
}
int main(){
Thing thing;
//code here
} it will be worked now please try..
doStuff() function computes the value x+y
and doStuff2() function computes the value of x*y
thse two arre called from extractThing().
