Structs in C: Computer Programming 9: 24HourAnswers Tutorials | Video



Created for http://www.24HourAnswers.com

The computer programming tutorial you are about to see is one in a series developed by 24 hour answers, with the idea of helping students learn in a simple, easy, and convenient format.

READ ALSO:  How Different Languages in America Affected the Country's Dialect

Today we examine structs.
Proudly WWW.PONIREVO.COM

Source

32 Comments

  1. I keep getting this unknown type name 'Room' error during compilation, do you have any idea how to fix it.
     And an "Incompatible types when returning type 'Struct Room' but int was expected return r". I've looked over the code and I have no idea what courses it. If you have any ideas I would appreciate it.

  2. Thats the C89 or C99 (I forget which) standard. In many of the IDE's like codeblocks you can change that in the Compiler Settings to allow for the modern C11 (or whatever I forget which again) standard

  3. gcc seems to want the i declared outside of the for loop. So I just added 'int i;' after the include statements, and set 'i = 0' in the loops.

  4. pointers are killing me. *p = the value stored at the adress pointed by p, p = the adress of the location pointed to.

    Seems simple, but when in practice, it's destroying my brain, especially combined with structs. When and why do I need to use pointers as arguments … etc

Comments are closed.