Jump to content
  • Advertisement
Sign in to follow this  
maggot789

syntax error before token?

This topic is 4861 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

i keep trying to compile this thing.one of my lines is cin >> number1; but it keeps sayin syntax error before >> token dont get it

Share this post


Link to post
Share on other sites
Advertisement
Did you:
- #include <iostream> ?
- Put in a using directive for cin? (using std::cin, or using namespace std)
- Put a semi-colon on the line before this line of code?

Those are some really common & obvious ones that jump out at me.

EDIT: Also - it's hard to say without more context, if these don't fix, could you post a little bit of the source code above this line?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!