Jump to content
  • Advertisement
Sign in to follow this  
B G

Incrementing c structures while inputing

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

Hey I am a couple of months old as far as coding goes. I am currently using the c language. I have started structures. I am trying to use structures for record holding. My question is, is there a way to increment c structures when you are reading into them? For example my Structure is Called Car .. my individual structure Records are called Car1, Car2 etc .. So say I am using a scanf statement in a For loop .. how do I increment the names from Car1 to Car2 etc????

Share this post


Link to post
Share on other sites
Advertisement

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

Guest
This topic is now closed to further replies.
Sign in to follow this  

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