• 0

Newbie C++ Help


Question

Recommended Posts

  • 0

[edit] wouldn't be bad to make this a sticky thread, so others may be able to use it without me repeating myself. This is a very common question here.[/edit]

if you don't have a compiler (to make .exe) go to http://www.bloodshed.net/dev/index.html download version 4, version 5 is a buggy beta. if you do dl ver.5, then update .exe using cvs at sourceforge.

As for books go, the best one is "The c++ programming language" by Bjarne Stroustup (the inventer of c++) is the best. Itis one of those books that from a beginner to Linus Torvalds (linux guy) and developpers use.

edit: the sites below all helped me in some way or another. First you should learn c programming, then move on to c++ and win32api and other api's.

http://www.cplusplus.com/doc/tutorial/ This site covers a lot! I learned a lot of Object Oriented Programming from here.

http://www.cplusplus.com/ref/ This is a handy site for beginners. This has examples and instructions for many standard library functions.

http://www.sgi.com/tech/stl/ This is handy resource. Most of functions show prototypes and explenations for all of STL.

http://www.allegro.cc This has an easy to use complete game programming library. It's well evolved and used. It supports directx hardware accel through its functions.

http://www.sourceforge.net This is for those of you interrested in developping open source, giving feedback, bug reporting, latest builds, and complete code of some of your favorite apps... and much much more.

http://oopweb.com/CPP/Files/CPP.html This has a list of many tutorials and other resources.

http://www.msdn.microsoft.com A developer's ultimate resource.

http://www.winprog.org/tutorial The best site for learning windows programming. The guy set out to make it easy and quick. I think he certainly achieved his goal.

http://www.cprogramming.com/tutorial.html another c tutorial

http://www.research.att.com/~bs/homepage.html The inventors home page.

Link to comment
https://www.neowin.net/forum/topic/22537-newbie-c-help/#findComment-193811
Share on other sites

  • 0

Learning C++ will be one of the best moves you ever make. However, before you dulge into this highly object powered, versitile and extremely complex language, it is important to understand the constituent language that powers it, you guessed it, C.

C, although tedeous and procedural, will provide you a basis on which to build further knowledge of the language. I started C when I was 12 and it was the first programming language I ever used. When I seriously started thinking about making the transition from C to C++, I was a little worried at the same position you are in now - however, I soon got over it.

There are some really good books you can find on both C and C++ - i;d suggest getting maybe 1 or 2 books on C and then focusing on C++. I have a book called C by example which is a great book for people who want a book that really explains stuff in a simplistic manner. There is no degree of complexity in the book though, which may become a problem when you start to want to explore a little further.

One of the best books I have read is The C++ Programming Language by Bjourne Stoustrap (the inventor and creator of C++). It is very complex though in the majority of the book and so I wouldnt recommend it to start of with.

In total, I have 6 books:

- C by example - Great for beginners in C

- Advanced C - More focused on the complex side of C

- C++ Primer Plus - Excellent book, teaches you the core of C++ but doesn't actually go into the VCL

- C++ Builder How-To - Ranges from Intermediate to Advanced in a question/answer format

- Sam's Teach yourself C++ Builder 3 in 21 days - good book for the basics of the VCL but assumes you have a knowledge of C++

- C++ Builder 4 Unleashed - very complex overall and is focused on COM server, MIDAS servers, database and the like.

If I were you, I would take around 2 to 3 months to familarise yourself with C, then move on to C++.

If you need any help, send me an e-mail or a personal message an i'll see what I can do.

Link to comment
https://www.neowin.net/forum/topic/22537-newbie-c-help/#findComment-194277
Share on other sites

  • 0

At first, I didn't really though many people would reply, Thanks. First, I think I am going to get started with C then move on to C++ and maybe create my first program(thinking too far ahead). Oh yeah, I am also 13 and I figure this is the best time to learn since I am yuong and I will get materials better. Again, Thanks for everything.

Link to comment
https://www.neowin.net/forum/topic/22537-newbie-c-help/#findComment-195205
Share on other sites

  • 0

No worries. Like I said though, if I were you I wouldn't take too much time on C - it's an older language now and is primarily used for DOS applications. You will find the transition between C and C++ easier though if you take the time to familiarise yourself with C. Are you going to use Borland's C and C++ languages or Microsoft's Visual C++ Language?

Link to comment
https://www.neowin.net/forum/topic/22537-newbie-c-help/#findComment-201946
Share on other sites

  • 0

Vi3tboi911 if you don't mind spending a little cash to buy a intro book to C++ try "A Guide To Programming in C++" by Tim Corica, Beth Brown and Bruce Presley

Published by: Lawrenceville Press

When I started to learn C++ I used this book in school, a great book that will really get you going, very easy to learn from too.

Link to comment
https://www.neowin.net/forum/topic/22537-newbie-c-help/#findComment-201955
Share on other sites

  • 0

It depends. VC++ 7 seems to have caught up on standards so I can't complain about that. ;) VC is great for programming anything ATL/COM or MFC. Builder is great, too. Its component architecture, VCL, is the best, and it is very easy to learn. Well, I thought it was easier than MFC or COM, but I'm sure there are others that prefer the MS way. BCB 6 has good standard support, as well. Their template library is also open source. http://www.stlport.org.

I'm sure you'll find that VC is the preferred tool in most workplaces. The only thing I really like about VC in total is the IDE. Although, with version 7, I'm finding less things to complain about... but it still doesn't support VCL! :p

Link to comment
https://www.neowin.net/forum/topic/22537-newbie-c-help/#findComment-256074
Share on other sites

  • 0

thanks for that. I bought a copy of BCB when I started to think about coding in C++ as I loved Delphi so much. From what I have seen though, I think I prefer VC. I suppose I just need to sit down with each one and spend some time with them. Its just awkward because I want to love BCB but we have VC at uni where I have to demo all my work etc so I really have to use that. Basically I think Ill be forced to get VC. I did aquire a copy of VS a while ago but it messed up my computer. I may try it again and hope.

Link to comment
https://www.neowin.net/forum/topic/22537-newbie-c-help/#findComment-256206
Share on other sites

  • 0

LOL, that's the book they use in almost all the schools in toronto. My old school too!!!

Originally posted by DeathLace

Vi3tboi911 if you don't mind spending a little cash to buy a intro book to C++ try "A Guide To Programming in C++" by Tim Corica, Beth Brown and Bruce Presley

Published by: Lawrenceville Press

When I started to learn C++ I used this book in school, a great book that will really get you going, very easy to learn from too.

Link to comment
https://www.neowin.net/forum/topic/22537-newbie-c-help/#findComment-257521
Share on other sites

  • 0

I?ve been programming since I was in 5th grade (yep I was like 11 or 12 when I started HTML). I learned HTML and all the things that went along with that (css, ssi, java script, xhtml, etc.), and then I started to learn perl, but abandoned that for PHP and MYSQL. After about 8 months with PHP I started to learn C++ and it was so easy for me. PHP taught me the basic syntax and all I had to do was learn the more advanced features. Also I highly recommend NOT learning C before C++, it'll just confuse you. So here's the order.

1) HTML and occupying languages (css, javascript (<-- just a little), etc.)

2)PHP and Mysql

3) C++

Don't jump into a high level language to quickley starts slow...

Link to comment
https://www.neowin.net/forum/topic/22537-newbie-c-help/#findComment-384326
Share on other sites

  • 0

I started learning HTML and the components when I was 7, but i'm trying to learn PHP/Perl and C++ at the same time. Does learning PHP and Perl take a while to learn, or should I start C++ first? I got enough money for books and such. And I only need a few more bucks towards my iBook savings.

(i'm 12 right now)

Link to comment
https://www.neowin.net/forum/topic/22537-newbie-c-help/#findComment-389646
Share on other sites

  • 0
Originally posted by DeathLace

Vi3tboi911 if you don't mind spending a little cash to buy a intro book to C++ try "A Guide To Programming in C++" by Tim Corica, Beth Brown and Bruce Presley

Published by: Lawrenceville Press

Does this book assume you will be using a Visual C++ program or doing everything in plain text? I was thinking it would be best for me to learn the language first before moving to a Visual program.

Link to comment
https://www.neowin.net/forum/topic/22537-newbie-c-help/#findComment-423405
Share on other sites

  • 0

If you want a bit of advice don't do what I did.

When I was 16-17 I used to copy straight out of a C++ book and not learn all the concepts (some of it stuck with me). I was learning on my own time and never expected todo computer science in school. Now I really have to know all the concepts soundly. If you're going to learn any comp language for any useful purpose, get a good book which will teach you the concepts really well.

DrunkenMasters C++ Programmer's book of the month is:

(its a bit old ;) )

C++ Primer Plus by Steven Prata is my personal fave. Its one of the few complete programming books which really goes through the basics very clearly in plain language to start which is what you really need. Avoid the 24 hour or dummies books.

Link to comment
https://www.neowin.net/forum/topic/22537-newbie-c-help/#findComment-451798
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • That lens of history will burn if you hold it at the right angle... Warn users too late: Shame, Microsoft! That extremely minor update to an obscure Control Panel widget required 2 years of warning. Warn users too early: Shame, Microsoft! We've got better things to do. Pipeline and process be damned, we'll just always be disappointed, eh?
    • Microsoft Paint used to be my favorite Windows app as a kid, and it's still pretty good by Usama Jawad I have been using Windows since the early 2000s, when I was around 10 years old or so. I vaguely remember playing around with Windows 98 and Windows 2000, but that may have been on school PCs which had old operating systems installed. My main OS on the home PC, and the one I recall spending most time with, was Windows XP. At that time, I used the home PC to create Word and PowerPoint documents for school, but a lot of the time, I simply used it to play games. My dad would bring game discs which we would try and install on the PC, sometimes unsuccessfully, and sometimes, we would rely on flash games in the browser, like Bubble Trouble on Miniclip. However, the problem with the latter approach was the internet speed. On a good day, our dial-up internet would offer us speeds of 56 kbps, but on most days, it was closer to 33 kbps. This did not facilitate online gaming as I would often have to wait minutes for a game to load or "draw" on the screen, and trying to download pirated games wasn't simple either. I remember getting tired of waiting for online games to load and just downloading simulator games from the Big Fish Games website instead, only to be disappointed after finding out that I was just being given access to trial versions of the title, and I needed to fork out money to pay for the full version. All of this is to say that it wasn't very easy to find entertainment options on the home PC when I was a kid, due to a number of reasons, mostly outside of my control. This situation pushed me towards a rather unconventional ally: Microsoft Paint. Whenever the internet wasn't working as good as I expected, I would simply spin up Paint and draw complete rubbish on the canvas. Of course, that wasn't always the intention, but it usually happened when I messed up drawing a straight line or something, and then I would give up on that particular piece and simply draw a random collection of objects. Microsoft Paint was extremely accessible and easy to use. Even if you weren't an artist, you could quickly understand the tools at your disposal and how to leverage them on a canvas. The absolute breadth on offer ensured that each painting was truly unique, as you could utilize various combinations of tools like the pencil, paint, spray paint, and more to truly personalize your creation. Since I wasn't particularly good at drawing both on digital screen or a physical screen, I remember that my main style of art would be to insert a bunch of randomly intersecting lines and then fill them with random colors through the paint can. I have trying to replicate that art style in the latest version of Paint below, and as you can see, it's truly Pablo Picasso-esque. The human imagination truly knows no bounds Microsoft Paint kept me occupied for hours and was my best friend when video games on the home PC were inaccessible for one reason or the other. There was no academic or professional reason for which I would need to use Paint, but I still loved using it in my personal time, even if what I created wasn't worth being shown to anyone. It was simply fun. Fast-forward to today, and the situation is mostly the same. Now that I am almost 29 years old, and I still have no reason to use Microsoft Paint in a professional capacity. In fact, I don't even use it in a personal capacity, except to dabble with it from time to time, just to see if core functionalities are still intact. And I'm happy to say that I think Microsoft Paint still offers the same accessibility and inviting experience that it did to me a couple of decades ago, even though its UX has been refreshed and it's been integrated with Copilot features. Interestingly, things could have been a lot different, had Microsoft had its way. Microsoft Paint was marked for deprecation with the Windows 10 Fall Creators Update in 2017, and even began displaying a product retirement alert, urging customers to shift to Paint 3D instead. Fortunately, after consumer backlash, Microsoft reversed course on this decision, and Paint continues to be a native app inside Windows installations that can also be updated quite frequently through the Microsoft Store. Instead, Paint 3D ended up on the chopping block, which is for the better, I think. I have intermittently played around with Microsoft's refreshed Paint experience in the past few years, and I do think it has received worthwhile upgrades. the UI and the UX has been modernized while retaining core functionality, and the app is still fairly easy to use. It doesn't meet any of my use-cases, but I've never really had any use-cases ever, as described previously. Of course, the elephant in the room is the Copilot integration. Personally, I believe that this is one place where Copilot does make sense, environmental concerns aside. I know that a lot of creatives use AI to generate images, and while some may be using professional alternatives, Paint still offers a decent casual experience, with the power of Copilot. Of course, you do need to have a valid Microsoft 365 Copilot license and available credits to use it, but even if you don't, you still get the big Copilot button in the toolbar, unfortunately. All in all, I am glad that Microsoft Paint continues to be a native feature in Windows 11, and a piece of software that has evolved to meet modern needs without cutting off its own roots. It's just an iconic piece of Windows history that was an essential part of my childhood, and while I don't use it anymore, I'm just glad it is still there.
    • 2TB WD_Black SN7100 PCIe Gen4 NVMe SSD drops to its lowest price in over three months by Fiza Ali Amazon is currently offering the 2TB WD_Black SN7100 internal solid-state drive at its lowest price in over three months, so you may want to check it out, if you have been considering a storage upgrade, before the deal dries up (purchase link is toward the end of the article). Featuring a PCIe Gen 4.0 interface and M.2 2280 form factor, the SN7100 promises to deliver sequential read speeds of up to 7,250MB/s and sequential write speeds reaching 6,900MB/s, offering as much as a 35% improvement in performance compared with the previous generation. It also achieves random read speeds of 1,000,000 IOPS and random write speeds of 1,400,000 IOPS. The drive uses Western Digital’s TLC 3D NAND technology for reliable performance and is further supported by a five-year limited warranty. It also offers strong endurance, rated at up to 1,200TBW, making it suitable for demanding workloads such as gaming, content creation, and high-speed recording. Moreover, its DRAM-less architecture claims to improve power efficiency (the SSD relies on system memory for caching via HMB), while the WD_Black Dashboard software enables users to monitor drive health, install firmware updates, and activate Game Mode for potentially better performance. Finally, it operates within an operating temperature range of 0°C to 85°C, and can withstand storage temperatures from -40°C to 85°C. 2TB WD_Black SN7100 PCIe Gen4 NVMe SSD: $242.96 (Amazon US) Check this deal out if you want a 4TB option. Good to know This Amazon deal is U.S. specific, and not available in other regions unless specified. We only use first-party seller links (at the time of article publishing); ensure that you purchase from a first-party seller link only. Check out Today's Deals on Amazon | or our recent tech deals. Become a Prime member (for Students or SNAP) via Neowin Get Prime Access - Prime for half price (for qualifying Medicaid, EBT, SNAP) Subscribe to Prime Video, Audible Plus, Music Unlimited or Kindle Unlimited via Neowin As an Amazon Associate, we earn from qualifying purchases.
    • Hopefully this will fix the issue of no sound I have since last months stupid, and non-removable, Microsoft Corporation AudioProcessingObject Driver Update (1.0.3.56670)
    • It IS confusing! What channel are you in on each device? I'm guessing your 16GB device is on Experimental (formerly known as Dev) and your 128GB is on Beta.
  • Recent Achievements

    • Week One Done
      Supreme Spray LV earned a badge
      Week One Done
    • One Month Later
      Genuinetonerink- Dubai earned a badge
      One Month Later
    • Week One Done
      Genuinetonerink- Dubai earned a badge
      Week One Done
    • One Year In
      hhgygy earned a badge
      One Year In
    • Week One Done
      AMV earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      514
    2. 2
      +Edouard
      163
    3. 3
      PsYcHoKiLLa
      87
    4. 4
      Steven P.
      74
    5. 5
      Michael Scrip
      73
  • Tell a friend

    Love Neowin? Tell a friend!