Jump to content
  • Advertisement

Archived

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

RaistlinMajere

function help

This topic is 5447 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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!