• 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

    • Microsoft releases PowerToys v0.100.1, fixes a bug that made remapped keys misbehave by Ivan Jenic Microsoft just released PowerToys v0.100.1, a patch update that addresses several stability and behavior issues found in v0.100.0. The v0.100.0 patch was a significant update for PowerToys, as it introduced all sorts of new features and additions, such as a rebuilt Shortcut Guide, a Command Palette Extension Gallery, webcam overlay support in ZoomIt, and more. However, the v0.100.0 version also introduced some bugs and stability issues. And now, Microsoft is addressing these issues in the new patch. The most impactful fix in this release perhaps is in Keyboard Manager, where remapped modifier keys were being delivered as system-key events, causing unexpected behavior in apps. The clearest example of this was Alt-to-Backspace remaps, deleting whole words instead of a single character. So, if you thought there was an issue with your keyboard, Microsoft just confirmed that it was PowerToys. Beyond the Keyboard Manager fix, v0.100.1 also addresses several other issues. It fixes a bug with Power Display that was preventing monitors from waking from standby correctly. Additionally, the new update patches Quick Access crashes on launch, and resolves a Shortcut Guide crash that occurred when switching between sidebar sections. Here’s the full changelog: Color Picker Fixed a bug where the main Color Picker window could appear inside the zoomed-in picker view Command Palette Fixed Run history initialization in AOT builds Fixed a bug where the Performance Monitor dock item could show ??? after restart Fixed the Hibernate command using the Sleep icon Limited the "pin to dock" dialog to displays where the dock is enabled Keyboard Manager Fixed modifier keys remapped to non-modifier keys being delivered as system-key events, which caused unexpected behavior in apps such as Alt-to-Backspace deleting whole words Power Display Fixed a bug where selecting On in the monitor power-state control did not wake a monitor from standby Fixed built-in display detection and brightness control on dual-GPU laptops where the internal panel is driven by the discrete GPU PowerToys Run Fixed VS Code Workspaces discovery after VS Code moved recently opened workspace data to shared storage Quick Access Fixed Quick Access flyout crashes caused by unhandled XAML exceptions during launch or page navigation Shortcut Guide Fixed a crash when navigating between Shortcut Guide sidebar sections Fixed number-key rendering in shortcut manifests and added a Postman shortcut manifest Updated bundled shortcut manifests to use the literal number-key token so number keys render correctly across apps ZoomIt Fixed a race condition in audio initialization for ZoomIt video recording You can download PowerToys v0.100.1 from the official GitHub releases page.
    • OBS Studio 32.2.0 Beta 2 by Razvan Serea OBS Studio is software designed for capturing, compositing, encoding, recording, and streaming video content, efficiently. It is the re-write of the widely used Open Broadcaster Software, to allow even more features and multi-platform support. OBS Studio supports multiple sources, including media files, games, web pages, application windows, webcams, your desktop, microphone and more. OBS Studio Features: High performance real time video/audio capturing and mixing, with unlimited scenes you can switch between seamlessly via custom transitions. Live streaming to Twitch, YouTube, Periscope, Mixer, GoodGame, DailyMotion, Hitbox, VK and any other RTMP server Filters for video sources such as image masking, color correction, chroma/color keying, and more. x264, H.264 and AAC for your live streams and video recordings Intel Quick Sync Video (QSV) and NVIDIA NVENC support Intuitive audio mixer with per-source filters such as noise gate, noise suppression, and gain. Take full control with VST plugin support. GPU-based game capture for high performance game streaming Unlimited number of scenes and sources Number of different and customizable transitions for when you switch between scenes Hotkeys for almost any action such as start or stop your stream or recording, push-to-talk, fast mute of any audio source, show or hide any video source, switch between scenes,and much more Live preview of any changes on your scenes and sources using Studio Mode before pushing them to your stream where your viewers will see those changes DirectShow capture device support (webcams, capture cards, etc) Powerful and easy to use configuration options. Add new Sources, duplicate existing ones, and adjust their properties effortlessly. Streamlined Settings panel for quickly configuring your broadcasts and recordings. Switch between different profiles with ease. Light and dark themes available to fit your environment. …and many other features. For free. At all. OBS Studio 32.2.0 Beta 2 changelog: Beta 2 Changes Fixed a CI deployment issue. There are no application changes since Beta 1. 32.2 New Features Replaced add source dropdown with new dialog [Warchamp7] Improved FPS selector UX [jcm93] Added missing file support for filters [exeldro] Added ability for plugins to set custom icons for new source types [cg2121] Included .webp files when adding a directory to Image Slide Show source [TarunCore] Added copy paste functions to frontend API [exeldro] Added filter to compose SDR into HDR [jpark37] Added delete as a hotkey to delete sources on macOS [PatTheMav] Added dynamic bitrate support to multitrack video [lexano-ivs] 32.2 Changes Forced Intel-based installations to update to Apple Silicon version on macOS [PatTheMav] This change means that OBS Studio versions built for Intel-based Macs but running on Apple Silicon Macs will automatically update to OBS Studio built for Apple Silicon Macs. If an installation was using third-party plugins, those plugins will no longer load until replaced with Apple Silicon versions. Fixed audio mixer state getting out of sync when changing settings via websockets or plugins [Warchamp7] Added theming for checked QToolButtons [glikely] Improved OpenGL performance slightly on low-end machines [kkartaltepe] Set minimum size for color source to 1 pixel [exeldro] Added minimum width to spinboxes [Warchamp7] Disallowed overwriting the crash handler [sebastian-s-beckmann] Applied process mitigation policies for Windows [notr1ch] Adjusted description of multitrack video [jhnbwrs] Changed new capture devices to use fallback frame rate by default [PatTheMav] Improved DLL loading behavior on Windows [notr1ch] Limited multitrack video config to Custom service [PatTheMav] 32.2 Bug Fixes Fixed OAuth and dock state save corruption [PatTheMav] Fixed group bounds not resizing when removing items [howellrl] Fixed canvas mixes not being restored after video reset [dsaedtler] Fixed some erroneous crashes during shutdown [Warchamp7] Fixed display capture sometimes capturing black after a duplicator failure [ThrowTop] Fixed color of controls dock output buttons in System theme [shiina424] Fixed virtual camera reset failures [stephematician] Fixed potential crash when user discards changes in the settings window [suogesi] Fixed incorrect return value in virtualcam filter [xtfo] Fixed source toolbar buttons not working after dragging a source into a group [Warchamp7] Fixed properties hint icon spacing [Warchamp7] Fixed potential crash when a video device reconnects on macOS [jcm93] Fixed an issue where PipeWire could fail on NVIDIA GPUs [hoshinolina] Fixed obs_canvas_get_video_info returning incorrect framerate [dsaedtler] 32.2 Deprecations Deprecated obs_properties_add_button [sebastian-s-beckmann] Download: OBS Studio 32.2.0 Beta 2 | Portable | ARM64 | ~200.0 MB (Open Source) View: OBS Studio Homepage | Other Operating Systems | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Is a fast food restaurant a good metric to compare against?
    • Grand Theft Auto VI pricing revealed alongside Ultimate Edition and pre-loading details by Pulasthi Ariyasinghe Last week, Rockstar revealed Grand Theft Auto VI pre-orders will be starting soon, and just a day ahead of that, now the studio has announced the official pricing for the highly anticipated game. This has been a hotly debated topic among fans and industry veterans for a long time, considering the game is expected to be the biggest entertainment product launch ever. The confirmed pricing for the Grand Theft Auto VI standard edition is $79.99, which Rockstar says gives access to the "single-player experience set in the biggest, most immersive evolution of the series yet." This follows what most of our readers thought would happen with the pricing too. At the same time, a $99.99 Grand Theft Auto VI: Ultimate Edition has been confirmed as well, which lands with "an exclusive collection of premium vehicles, weapons, apparel, and action threaded across all aspects of Jason and Lucia’s story." Pre-ordering will also give fans extra bonuses, including a Vintage Vice City Pack of cosmetic items as well as a free month of GTA+. Head to the official website of the game here to check out all the cosmetic rewards the Ultimate Edition and pre-orders bring. Interestingly, the studio does not mention Grand Theft Auto VI multiplayer at all in today's announcement. Perhaps this will arrive later, following the campaign launch, or the studio is keeping that reveal for a later date. Digital pre-orders for Grand Theft Auto VI will begin on June 25, 2026, at midnight local time across regions for Xbox Series X|S and PlayStation 5. The title is slated to launch on November 19 on those same platforms. Pre-loading for Grand Theft Auto VI will kick off on November 12, giving players a week to get the game ready on their consoles. As for the physical edition, Take-Two has confirmed that this will be available without a disc, with the box only containing a download code inside. This will be purchasable starting November 12, giving players who take this route time to pre-load the title as well.
  • Recent Achievements

    • One Year In
      OHI Accounting earned a badge
      One Year In
    • First Post
      Almohandis earned a badge
      First Post
    • Rookie
      DaviKar went up a rank
      Rookie
    • Dedicated
      HidekoYamamoto94 earned a badge
      Dedicated
    • One Month Later
      timbobit earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      474
    2. 2
      +Edouard
      172
    3. 3
      PsYcHoKiLLa
      122
    4. 4
      Michael Scrip
      83
    5. 5
      Xenon
      72
  • Tell a friend

    Love Neowin? Tell a friend!