Author Topic: Hopefully a pretty good intro to structs in C/C++  (Read 2118 times)

0 Members and 1 Guest are viewing this topic.

Offline Polyphony

  • VIP
  • Knight
  • *
  • Posts: 178
  • Cookies: 23
    • View Profile
Hopefully a pretty good intro to structs in C/C++
« on: November 04, 2012, 05:08:24 am »
Here 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.
« Last Edit: November 04, 2012, 05:10:11 am by Polyphony »
Code: [Select]
<Spacecow_> for that matter I have trouble believing bitches are made out of ribs
<Gundilido> we are the revolutionary vanguard fighting for the peoples right to display sombrero dawning poultry
<Spacecow> did they see your doodle?
<~phage> Maybe
<+Unresolved> its just not creative enough for me
<+Unresolved> my imagination is to big to something so simple

Offline Xires

  • Noob Eater
  • Administrator
  • Knight
  • *
  • Posts: 379
  • Cookies: 149
    • View Profile
    • Feed The Trolls - Xires
Re: Hopefully a pretty good intro to structs in C/C++
« Reply #1 on: November 08, 2012, 08:15:19 am »
Where is this code that you speak of?
-Xires

Offline Super_mario666

  • Knight
  • **
  • Posts: 160
  • Cookies: 7
  • Professional Badass
    • View Profile
Re: Hopefully a pretty good intro to structs in C/C++
« Reply #2 on: November 08, 2012, 02:42:13 pm »
click the first word in the sentence
The Bigger they are...The more likely you'll get your ass kicked