EvilZone

Programming and Scripting => C - C++ => : Polyphony November 04, 2012, 05:08:24 AM

: Hopefully a pretty good intro to structs in C/C++
: Polyphony November 04, 2012, 05:08:24 AM
Here (http://pastebin.com/7RpU6jvk) is the code, it's kind of long so I didn't want to use the tags.  If some of you recognize this particular piece of code, it is actually from the book "The C Programming Language" I just put the comments in.  I would recommend that book if you are semi-familiar with C syntax as it's not one of those c for dummies, absolute beginner to pro in 80 days books or whatever.  It skips the ultimate basics and wasn't written so you can learn how to program.  It was written so you could understand the C syntax better and/or use it as a reference.  I realize that this also doesn't account for errors like inputing something over 60 in the minutes variable, but that could probably be easily implemented if you wanted to.
: Re: Hopefully a pretty good intro to structs in C/C++
: Xires November 08, 2012, 08:15:19 AM
Where is this code that you speak of?
: Re: Hopefully a pretty good intro to structs in C/C++
: Super_mario666 November 08, 2012, 02:42:13 PM
click the first word in the sentence