Skip to content

Ozar.net Developer Blog

Programming in PHP, C, C#, ASP.NET, Java, Objective-C, SQL also for MS SQL Server, Oracle & MySQL Development

Menu
  • Home
  • About
  • Tutorials
  • Contact
  • Privacy
Menu

C++ Programming Tutorial 5

Posted on September 28, 2010September 28, 2010 by OD


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”

  1. endacraigdotcom says:
    September 28, 2010 at 1:03 PM

    Thanks for this. Pointers have now stuck thanks to you, and I shall now move on 🙂

    Log in to Reply
  2. ANXIOUS117 says:
    September 28, 2010 at 1:57 PM

    @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

    Log in to Reply
  3. XXxZAKKxX says:
    September 28, 2010 at 2:35 PM

    @Raytzuno Learn memory editing with c++ and YES you can.

    Log in to Reply
  4. XXxZAKKxX says:
    September 28, 2010 at 3:27 PM

    @benny21003 I like canadian accents >_>

    Log in to Reply
  5. benny21003 says:
    September 28, 2010 at 3:52 PM

    @XXxZAKKxX wtf?

    Log in to Reply
  6. LaTarasque says:
    September 28, 2010 at 4:34 PM

    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?

    Log in to Reply
  7. XXxZAKKxX says:
    September 28, 2010 at 4:46 PM

    Could you possibly say “out and about, i pout with a trout” in the next video?

    Log in to Reply
  8. jis2507 says:
    September 28, 2010 at 5:23 PM

    So wat happened to the “big vid” u promised was going to come out?? *disappointed*

    Log in to Reply
  9. glenc70 says:
    September 28, 2010 at 5:41 PM

    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

    Log in to Reply
  10. Raytzuno says:
    September 28, 2010 at 6:36 PM

    can i make game hacks with this programme??

    Log in to Reply
  11. ManOfMeans says:
    September 28, 2010 at 7:11 PM

    lol Yes, actually

    Log in to Reply
  12. sodafountan says:
    September 28, 2010 at 7:20 PM

    @ManOfMeans lol what is that, basic?

    Log in to Reply
  13. Horrorfan309 says:
    September 28, 2010 at 8:11 PM

    Interesting. . .

    Log in to Reply
  14. ManOfMeans says:
    September 28, 2010 at 8:59 PM

    *sigh*I miss GOSUB and GOTO

    Log in to Reply
  15. douglarizethenation1 says:
    September 28, 2010 at 9:25 PM

    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.

    Log in to Reply
  16. TyranitarDraken says:
    September 28, 2010 at 9:48 PM

    i luv pie :3

    Log in to Reply
  17. gonzalezluis78 says:
    September 28, 2010 at 10:06 PM

    just a suggestion : please use comments on your code so we can follow them better instead of saying “you already know”.

    Log in to Reply
  18. OlloX3 says:
    September 28, 2010 at 10:58 PM

    Yes you do.

    Log in to Reply
  19. AES256bit says:
    September 28, 2010 at 11:16 PM

    You don’t add a semicolon after declaring a function.

    Log in to Reply
  20. Lemoncode says:
    September 29, 2010 at 12:00 AM

    Weird number? MY MOTHER WAS A SAINT!

    Log in to Reply
  21. FreddieBambino says:
    September 29, 2010 at 12:32 AM

    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.

    Log in to Reply
  22. FreddieBambino says:
    September 29, 2010 at 1:31 AM

    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.

    Log in to Reply
  23. FreddieBambino says:
    September 29, 2010 at 2:12 AM

    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.

    Log in to Reply
  24. OlloX3 says:
    September 29, 2010 at 2:28 AM

    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!!

    Log in to Reply
  25. jc987 says:
    September 29, 2010 at 2:58 AM

    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.

    Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Recent Posts

  • NSTableView with Core Data Tutorial using NSFetchedResultsController
  • CodeIgniter Wizard – a new PHP CRUD Code Generator for macOS
  • Installing Oracle Database 10g Express Edition and Changing the Default HTTP Port
  • Xcode Tutorial 2 – Putting iAd into your App (The Apple Approved Way)
  • Cocoa Programming: A Quick-Start Guide for Developers

Blogroll

  • All Systems GO
  • GOZmosis
  • Maclord's Blog
  • Ozar.net

Tags

.NET 2008 application ASP.NET basic Beginning best books business Business Objects C# Database Databases Development Edition Guide iPhone Java Java EE learn Learning Microsoft MS SQL Server MySQL Objective-C Programming objects Oracle Part PHP PL/SQL Professional Programming Server Software SQL T-SQL TSQL Tutorial Tutorials Using Video Visual Visual Basic .NET Web Programming Tutorials XCode
© 2026 Ozar.net Developer Blog | Powered by Minimalist Blog WordPress Theme

Powered by
►
Necessary cookies enable essential site features like secure log-ins and consent preference adjustments. They do not store personal data.
None
►
Functional cookies support features like content sharing on social media, collecting feedback, and enabling third-party tools.
None
►
Analytical cookies track visitor interactions, providing insights on metrics like visitor count, bounce rate, and traffic sources.
None
►
Advertisement cookies deliver personalized ads based on your previous visits and analyze the effectiveness of ad campaigns.
None
►
Unclassified cookies are cookies that we are in the process of classifying, together with the providers of individual cookies.
None
Powered by