25 thoughts on “C++ Programming Tutorial 5”

  1. @reconnetworks actually C++ is not object oriented its multiparadigm meaning it supports many different styles of programming and not just object orientation its actually a completely false misconception calling C++ object oriented

  2. My programming professor never explained this well. I didn’t understand this concept till my second c++ quarter when I had a better professor. Will you be showing how to create simple games in the future?

  3. before explaining pointers it would be easier to explain scope first, then you can explain how they can remove the limitation of scope this way it will hopefully make them easier to understand and why you would use them. NOT critisizing your Vid but this would probably make it easier for you to explain

  4. can u help with thiseach time he completes a modification, he records the vehicle’s mileage before driving, the mileage after driving and the amount of fuel consumed for the trip. Charlie has asked you to write him a program that calculates his fuel efficiency in miles per gallon. Create the IPO Model and pseudocode algorithm for this program. Include error checking such that the mileage of the vehicle after driving cannot be a lower value than that entered for the mileage before driving.

  5. Or we could even skip the variables altogether with lets say:int *p1;p1 = new int;*p1 = 13;Now the pointer points to a memory location which holds 13 and you can manipulate the number in that memory location just as you would if it had a variable attached to it.

  6. But thats beside the points. The main thing is the guy is not working with pointers per se. Int firstpointer; This isnt a pointer as the video suggests. Thats just an int variable. int *p1;int thirteen= 13;p1 = &thirteen;Now we have a pointer, pointing to thirteens memory store. and then the pointer is passed raw as an argument to the function:pointerfunction(p1);not with * or &. Cheers.

  7. You dont need to do a semicolon there. In fact I think you would even get a compile time error for doing it, since it is a function not a class. You can just make the curley braces and write the content in between and then call it. What he is doing is declaring it first in the top and the definining it in the bottom, something I dont prefer doing but many prefer to do so.

  8. LOL you could do like this too and its much easier:void functionname(BLAH HERE){ // Stuff here}; <- adding a semicolon would declare it so you dont have to voiding it twice!!

  9. Nice job, pointers are definitely one of the hardest things to comprehend in C++. I still only have a basic understanding of them. You did clear some stuff up for me.

Leave a Reply

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