• Advertisement

Archived

This topic is now archived and is closed to further replies.

function help

This topic is 5234 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

ok, i have a function and it has stuff in it. and i have main, and it has stuff in it.. now when i call the function from main nothing happens, lets look at it like this:
void Move()
{
std::cout<<"theres stuff in here!";
// more stuff

}
int main()
{
std::cout<<"heres some more stuff too!";
// stuff

Move(); // call the function?

return 0;
}
everything in main runs properly, but when its supposed to call the function it doesnt..i think thats what wrong. btw theres no error sin the program.

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement