Jump to content
  • Advertisement
Sign in to follow this  

Incrementing c structures while inputing

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!