Added: 10 months ago
From: thenewboston
Views: 11,399
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (56)

Sign In or Sign Up now to post a comment!
  • in Birthday.cpp you can also declare your stuff using the ":" Symbol. i did it like this.

    :month(m), day(d), year(y)

  • Can you define new objects in parameters like java? So instead of defining your birthday object in it's own line write it in the parameter:

    People BuckyRoberts("Bucky the king" , Birthday birthday(12, 26, 1986));

  • A little bit confusing, but i bet it just need some time to lay into my brain :)

  • debugging = no fun

  • @thenewboston dang your birthday was 2 days ago.... I knew I should have watched this tutorial earlier

  • Code Blocks keeps telling me there's an error on line 16, "Expected declaration before ' } ' token" in Birthday.cpp, but there's no line 16 in my code. :(

  • I just tried to run this with Visual Studio and it threw like 40 errors

  • Awesome! Keep it up! Thanks from Kazakhstan!

  • my.....mind.....just.....explo­ded

  • Great tutorial but it feels as though the idea of passing an object and how it works was not clarified enough...

  • Why we never use the cin function -__-

  • :D:D:D...

    first time bucky had to upload part 2 for a tutorial..

  • it gives me undefined reference error :(

  • @forexJobs make sure all files are included in the project. I had the same issue.

  • @coolzidedown i have got it solved :) i have added all the definitions in header file. and deleted cpp files, accept main function cpp:)

  • at last after 24 h ours i got it!!!!!!!!!!!!!

  • Comment removed

  • It took me a good hour to understand these two tutorials, mostly because there was a lot to think about and I'm quite slow. I found writing detailed informational comments by my code telling me what I was doing and why essentially seared it into my head =D now I remember and understand everything!

    Thanks Bucky! In 10 years time, when people ask me "who taught you to be such an amazing programmer?!" I'll answer: "Bucky Roberts of thenewboston"

    =)

  • ^^ java/php ? library.h ? this is not intepreter language ?

  • i can do it just with cout << "bucky the king was born in 12/28/1986"; XD

  • Hi Bucky- what are you using for a compiler?- I keep gettind an error message concerning the call of the Birthday class from the Person class

    ("in member function Person::PrintInfo,void value not ignored as it shoul be..??)

  • Aaargh! This was really confusing. :| What's weird is that I don't wanna go through it again, either! :S

  • 500+ people watched the first but not the second lul

  • @Sutarelecs It could be because people review the first one.

  • This is getting harder lol. I gotta go back to old tuts. Everything looks fuzzy when it's coming together.

  • bucky was born dec 28,1986 lol

  • a class inside of another class? Clanception.

  • COMPLICATED!

  • Only had one error, accidently put <, instead of << Haha :) works perfectly other than that. Been wondering how to use multiple classes, nice one Bucky!

  • Am I the only one that get's an error?!! Always in the Birthday.cpp class it says "Birthday.h: No such file or directory" and "ISO C++ forbids declaration of 'Birthday' with no type.

    SOMEONE PLEASE HELP ME!

  • @Lunaticpandora101 SAME ERROR HERE TOO!

  • @Chriscs7 oh i realised what the problem was. You have to include all the #ifndef #endif nonsense, so it should look identical to what Bucky's got. I think he said in another tutorial its not important but it actually is!

  • Holy crap I actually got it to work after fixing only 5 errors!!!! Yes!!!!!!!!!!

  • this was the most confusing shit. plus, i garuntee ill never use this ever

  • CLASSES IS SOOOOOOOOOOOOOOO FUCKIN COMFUSING arrrrgghhh, :)

  • @SuperHappyvideo Yepp... The .h file and .cpp... What's the difference?

  • @Olemassacre in the .h file you have all your functions. In cpp you have your functions coded. You include stuff in .h when you need it, like strings. You do not need to include namespace std because you do not use cin or cout there. You use them in the .cpp file. or that's how I got it. lol

  • @sergyu123456 Well... It's still confuseing me.

  • @Olemassacre The header files remind me of Interfaces in java.

  • @TheArcobaleno I do not have much experience with Java.

  • I'm confused as to where to put the include statements for things like iostream when dealing with classes.. for example when I'm including iostream - do I put it only in the cpp file, only in the header file, in both files(?)

  • You dont need to include Birthday.h in the People.cpp file since you already included it in People.h and you included People.h in People.cpp

    :p

  • this include stuff is very repetitive and if a class changed in name it would be a pain in the ass to change all the includes, there must be another way to go about this, i'm coming from java/php and this is simple ridicules.

  • @Cezarijus Actually, there is a way. All you need to do, is pack all the headers into one header called "Library.h" for example and include that into every file. Then, if you need to change the name of something, just change it in the Library header, not in each and every file. It is the easiest way :) Very efficient. This can be used for all kinds of libraries, global variables, namespaces and so on.

  • @Friedtunafish77 wouldn't that make you iinclude headers that you don't necessarily need? or it doesn't matter if you include a header file and don't use it?

  • from 1:57 to 6:45 I was yelling at you in my head that you were forgetting to include the parameters in the constructor

  • @Zwolf11 Same!!! Hahaha!

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more