Saturday, May 16, 2009

Lab 10: Laser Tag

Well that was easy.

Lab 10 was an introduction to using structs--I had to write a program which simulates a game of laser tag between two people by using structs to store the player's names (ex: player1.name = "Tony"), their laser strength, and their shield strength. At the end the program displays the winner of that round of laser tag.

Structs are pretty simple to use and are useful (it makes organizing a lot of info much easier), and this lab only took me about 20-30 minutes.

The source code: http://www.mediafire.com/?xmzjlzjym02

No comments:

Post a Comment