Jump to content
  • Advertisement

Archived

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

RaistlinMajere

function help

This topic is 5528 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!