C++ Tutorial continued (Part 5), going through pointers a little more in depth as people didnt really seem to get it.
25 thoughts on “C++ Programming Tutorial 5”
Leave a Reply
You must be logged in to post a comment.
Programming in PHP, C, C#, ASP.NET, Java, Objective-C, SQL also for MS SQL Server, Oracle & MySQL Development
C++ Tutorial continued (Part 5), going through pointers a little more in depth as people didnt really seem to get it.
You must be logged in to post a comment.
Thanks for this. Pointers have now stuck thanks to you, and I shall now move on 🙂
@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
@Raytzuno Learn memory editing with c++ and YES you can.
@benny21003 I like canadian accents >_>
@XXxZAKKxX wtf?
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?
Could you possibly say “out and about, i pout with a trout” in the next video?
So wat happened to the “big vid” u promised was going to come out?? *disappointed*
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
can i make game hacks with this programme??
lol Yes, actually
@ManOfMeans lol what is that, basic?
Interesting. . .
*sigh*I miss GOSUB and GOTO
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.
i luv pie :3
just a suggestion : please use comments on your code so we can follow them better instead of saying “you already know”.
Yes you do.
You don’t add a semicolon after declaring a function.
Weird number? MY MOTHER WAS A SAINT!
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.
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.
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.
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!!
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.