C++ Tutorial (39) – Absolute n00b spoonfeed


Video tutorials about programming in the C++ programming language. Part 39: * class declarations in headers, definitions in source files. Pardon my imperfect english. Forum: cpptutorials.freeforums.org If you have any suggestions about how to make this video clearer, more n00b helpful, and explanatory, please send me a message. If you have any C++ questions, please comment.

25 Comments

  1. KatsuseChan says:

    @programmer0115 I was getting extremely frustrated by this as well, and most people who posted saying nothing about any major errors, are obviously not following along and taking notes, as they should be :P

  2. Aldeni1551 says:

    It seems like a really stupid idea to have .h files automatically link all .cpp files that include them. You should have to link the files manually. Can anyone tell me if this design is limited to Visual Studio or is it integrated into the C++ language itself?

  3. programmer0115 says:

    WARNING TO EVERYONE FOLLOWING ALONG VIDEO BY VIDEO!!
    This first time I separated my code into multiple files and as I was following along I got many errors trying to get everything to link it took me a while to figure out how to get it to all work together , once I got it working I moved on to the next video only to find the extra info I needed LOL , P.S. I WISH I HAD KNOWN ABOUT THESE VIDEOS, 5 BOOKS AND 20 TUTORIALS AGO! “AWESOME COLLECTION”

  4. N0wShutUp says:

    @burgert10
    u do that with a big file w/ 10000+ lines, and you will mess up half ur variables near the end of the file. Then, debugging…. omg, hell.

  5. Demyst54 says:

    why don’t you include the practice files? Are they on your website? I would be able to figure out a whole lot more if I get hands on with the source code, because I know that I”m doing something wrong with organizing the files – I keep getting an error.

  6. moidage says:

    It’s good to know about organising / separating the declarations and definitions! Awesome.

  7. jasonxe1 says:

    you made me lol @ 0:45 . I was like noooooo then i heard the rest and was like phew.

  8. meomix100 says:

    I hate when I take a break for about a week. then i feel like ive forgotten so much

  9. rgrinie says:

    Your program is DOOMED! lol

  10. HordeAreMyFatCousins says:

    yeah burgert, this is very important!

    once you make bigger programs it will get very very messy.

    for example when you start socket programming your codes gonna get long

  11. AlliedSamurais says:

    “Hide away the dirty details”

    it made me lol.

  12. burgert10 says:

    is this really that important can i just put my classes in one header file and be done with

  13. paudeluttam says:

    Bravo,, Crystal Clear Explanation!!!!
    Better than my damn stupid TextBook

  14. antiRTFM says:

    as explained in the vids, you include it in its definition (cpp) file and in any other place you’d need to make use of its stuff, be it main.cpp or anywhere else

  15. element1988 says:

    do you have to add the “solider.h” to the main? or do you just add it to the cpp file?

  16. antiRTFM says:

    please join the forums where you can paste all your code and errors

  17. jeezcak3 says:

    Why!?? ;[
    1>z:omm15227momswpvisual studio 2008projectstutorialtutorialtutorial.cpp(9) : error C2065: ‘Soldier’ : undeclared identifier
    1>z:omm15227momswpvisual studio 2008projectstutorialtutorialtutorial.cpp(9) : error C2146: syntax error : missing ‘;’ before identifier ‘john’

  18. mjd550 says:

    just what I was looking for thanksa lot :)

  19. antiRTFM says:

    yes :)

  20. jookerxxx500 says:

    Do you cut your Video???
    8:02 – 8:04

  21. babyaiko says:

    Legend :D

    i’ve been Absolute spoonfed vodka

  22. antiRTFM says:

    you can pretty much distribute your exe as is. technically though youll need to install the MSVC++ Runtime on whatever Windows system you want to run it.

  23. funkyewan says:

    If you use multiple source/header files do you have to do something different when you distribute your program? Can you still just give them the .exe and it will work? I think that’s what you’re saying, not certain though. Another great vid :)

  24. dsl9 says:

    ABSOLUTELY AWESOME!

  25. choothohong says:

    Nevermind, i found out my mistake..I forgot to add parenthesis to the function called…

    By the way, im very expecting to your new videos

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Powered by Yahoo! Answers