• 0

Newbie C++ Help


Question

Recommended Posts

  • 0

Forget scripting/markup languages to begin with. Worry about them later. They're pretty much irrelevant when it comes to programming (i.e., don't worry about HTML, CSS, XML, XHTML, DHTML, etc...).

Honestly, start with a classic beginner's language, either C++ or Java. I learned C++ first, but Java is a good first language too. I would stay away from C until you get a handle on C++, then go to C to get the extra functionality C provides. Then, if you're serious about doing some web work (database driven sites and whatnot), PHP would be really easy to learn. Also, if you learn Java, JSP becomes a real viable option for database driven websites.

Paul.

  • 0
Forget scripting/markup languages to begin with. Worry about them later. They're pretty much irrelevant when it comes to programming (i.e., don't worry about HTML, CSS, XML, XHTML, DHTML, etc...).

Honestly, start with a classic beginner's language, either C++ or Java. I learned C++ first, but Java is a good first language too. I would stay away from C until you get a handle on C++, then go to C to get the extra functionality C provides. Then, if you're serious about doing some web work (database driven sites and whatnot), PHP would be really easy to learn. Also, if you learn Java, JSP becomes a real viable option for database driven websites.

Paul.

Don't you have that backwards on the C/C++ part? C++ is the one with extra functionality, C is the basics :huh:

  • 0
Forget scripting/markup languages to begin with. Worry about them later. They're pretty much irrelevant when it comes to programming (i.e., don't worry about HTML, CSS, XML, XHTML, DHTML, etc...).

Honestly, start with a classic beginner's language, either C++ or Java. I learned C++ first, but Java is a good first language too. I would stay away from C until you get a handle on C++, then go to C to get the extra functionality C provides. Then, if you're serious about doing some web work (database driven sites and whatnot), PHP would be really easy to learn. Also, if you learn Java, JSP becomes a real viable option for database driven websites.

Paul.

Don't you have that backwards on the C/C++ part? C++ is the one with extra functionality, C is the basics :huh:

i always thought C++ was higher level language and couldn't do certain complicated, lower level operations that C could. making C harder and more time consuming to learn/program in

  • 0
LOL, that's the book they use in almost all the schools in toronto. My old school too!!!<br />

<br />

<br />

Originally posted by DeathLace <br />

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<br />

Published by: Lawrenceville Press<br />

<br />

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.

they teach u c++, DUDE, AWESOME :D the best we got, or, were going to get was VB, then i mentioned to the teacher that i had been programming since i was 9 (started with qbasic) and programming VB for about 4 years, then i went home and completed the final year 12 (what he thought was very hard) project, that night, to prove that i was smart :p it was a program turning an A into a B, a B into a C, HAHAHA

newchar=chr(asc(curchar)+1)

:p

so now after me asking very nicely to do java or c++......were doing delphi - mastered it already :p

anyway, thanks all of you for posting in this thread, its given me the urge to go an learn some more on c++ (i did a short course, but no1 else liked it, so it changed back to VB :( )

Does anyone have any good links for c++ in linux???

also, how do you compile, or test run a project using the gcc compiler???

  • 0

To the programming god above :rolleyes: who's already so hot on coding that they can't do a "man gcc", to get gcc to compile and link a program to an exectuable form you simply type "gcc -o whatever_the_hell_you_want_your_output_filename_to_be source.c"

Anyway, as an aside from that - I'm 22 now, been coding various things since the age of 5 on an Amstrad CPC 464, and the way I've found to learn about coding is NOT to do the crappy hello world type stuff, I mean cmon - which beaurocrat decided that the first week of coding school should be down with cout << "hello world" << endl;

The way I learned VB, Delphi, C++, Java and a little PHP was simply by hitting the help files, finding a function and writing a wrapper around it.

For example, in Delphi you get fundamental API access given to you, to figure this out I simply wrote a program that wrapped the API information returned (system info etc) into a nice neat box to show the user. All done using labels and about maybe 50 lines of code max.

C++, well - basic function-based C++ is dead easy to learn, it's procedural really...

OO can be a pain but once you've started it's only polite to carry on!

I wouldn't worry about memory allocation, or anything like that if you're new - read up on the bog basic functional stuff and it mushrooms from there, and from what I've seen so far if you run into trouble - there are a LOT of knowledgable bods around here to help!

Edited by CB-Dave
  • 0

Hi There,

I have been programming for about 9-10 years now, and proffesionally for about 5 years. My experience is that every person has his/hers own way of learning the best, personally what I find most effective is practical learning instead of theoretical learning. Then when I thought i was mastering a language at some level I have started to explore the theories more deeply.

In other words, im a "learn by example" kind of guy, I learned what some of the cpp language by just going thru various turtorials, and then my father bought me Bjarne Stoustrups (one of the great danes in programming :laugh:) first book, now i can only find the Oreilly C++ in a nutshell, on my bookshelf - I guess I lost Bjarne's book in a move.

For rookie programmers wanting to learn some OO based concepts could look into a language like Python, this language have proved to be one of my favorite tools, I love the powers of this language, and the way to implement it in other languages, if wanting to write performance critical parts in lower level languages. For instance the C/C++ api are incredible (python itselfes is implemented in c), but also the PythonForDelphi (cpp builder, delphi and kylix compliant) is great.

Maybe I got way of topic, I appologize for that, I just got carried away :D (my first post at neowin, but not last, hehe)

  • 0

C++:

- template functions

- template library, strings, vectors, lists, sorting, and so on.

- objects

- new and delete instead of malloc and free

- can do for (int n=0 ....) in a for loop without compiler bitching (i dunno if msvc does it, but gcc does.

well, there's a bunch more but that's the main difference.

I recommend to learn whatever the **** you wanna learn it for. If you're gonna be doing scripting use perl. Gonna write apps use C/C++.

  • 0

intersting to note that c ++ was, many moons ago, first called c with objects. C++ is an extention to C. Java is a progression from C ++ and is harder to understand for a newb then C.

C as a language is so easy that it takes some of the fun out of it. My lecturer at college used to say "if you could understand pointers then you knew the hardest bit of c" and pointers are easy to grasp if you have them explained to you properly.

c++ is a nice beast but is a beast and has lots of complicated parts to it which are good and in some situations usefull but i find i never use them. i prefere to keep code as low level and simple as possible as not to lag down code doing unneccesary work. Object Oriented program will seem alot easier to you is you have learn C's structure's, struct cast's. Memory management is easier then c's but if you programm in windows 3.0/1 then you carnt use it (doest get paged right in old version of windows).

Java after learning c++ is so quick to pick up it aint even a challenge, did my brother's university course work which had to be in jarva and ide only ever done c++.

Dont go the rounte of basic. if u can handle C/C++ then you can handle ANY language out there that is written with humans in mind. It may just be me but i like some challenge in the actually programming aspect.

Any way that just my point of view and shouldnt be set in gold..

  • 0

I just love the Primer Plus books. I have 2. C Primer Plus and C++ Primer Plus. They explain the language really well and i would suggest buying them if you have a few bucks to spend ($75 US for both). Also, I recommend learning C then C++, and then moving on to any other languages, cuz C and C++ are like the basics of programming. After you learn C++, all other languages should be a breeze. :D Hope this helped!

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

    • No registered users viewing this page.
  • Posts

    • Still 93% off: Microsoft Visual Studio Professional 2026 lifetime digital license by Steven Parker Today's highlighted deal comes via our Apps + Software section of the Neowin Deals store, where for a limited time you can still save 93% on Microsoft Visual Studio Professional 2026. Code Faster, Work Smarter with Visual Studio 2026 Visual Studio Professional 2026 is a fully featured development environment that developers around the world know & love — now enhanced with deeper AI integration, improved performance & more powerful collaboration tools. Built as a 64-bit IDE, it makes it easier than ever to work with very large solutions & complex workloads. Boost your productivity, write high-quality code & re-imagine team collaboration with an advanced suite of tools & built-in integrations designed to tackle the most demanding development workflows & deliver modern, cloud-connected applications. Build across languages and platforms Craft cross-platform mobile & desktop apps with .NET MAUI Build responsive Web UIs in C# with Blazor Build, debug, & test .NET & C++ apps targeting Windows, Linux & containers Use hot reload capabilities across .NET & C++ apps to apply code changes instantly Edit running ASP.NET/ASP.NET Core pages in the web designer view Integrate seamlessly with Azure, GitHub & other DevOps workflows Type less, code more with Intellicode and AI Understand your code context: variable names, functions, libraries & the type of code you’re writing Complete a line or block of code based on patterns learned from your codebase Get a ranked list of next best suggestions, helping you code more rapidly & accurately Use built-in AI-assisted refactoring & code suggestions to reduce bugs & boilerplate Gain deep insights into your code with codelens Reveal crucial information such as recent changes, authors, tests & commit history directly in the editor See test status & references without leaving your code Make informed decisions with a comprehensive overview of your codebase and activity Collaborate seamlessly with live share Run real-time collaboration sessions with teammates — no need for them to clone repos or install all dependencies Speed up your team’s edit & debugging cycles with personalized sessions, access controls & custom editor settings Keep everyone aligned so your team’s code stays consistent & maintainable Good to know Length of access: Lifetime License type: Professional, single-user license Redemption deadline: Redeem your code within 30 days of purchase Access options: Desktop installation on supported Windows operating systems Max number of device(s): 1 Version: Visual Studio Professional 2026 Languages supported: English, Chinese (Simplified), Chinese (Traditional), Czech, French, German, Italian, Japanese, Korean, Polish, Portuguese (Brazil), Russian, Spanish, and Turkish. Updates included: Minor updates and security fixes for the 2026 Professional release channel (according to Microsoft’s lifecycle policy) Activation method: Online activation with Microsoft account required Microsoft Visual Studio Professional 2026 normally costs $499.99, but this deal can be yours for just $34.97, that's a saving of $465. For full terms, specifications, and license info please click the link below. Get Visual Studio 2026 now for just $34.97 (was $499.99) Time limited deal Although priced in U.S. dollars, this deal is available for digital purchase worldwide. Support queries If you have queries or need support for any of the Neowin Deals, please use the contact form here. Neowin Deals are managed and sold by StackCommerce who represent Neowin on an affiliate basis. Why we post these deals We post these because we earn commission on each sale so as not to rely solely on advertising, which many of our readers block. It all helps toward paying staff reporters, servers and hosting costs. So for those that keep moaning and complaining, be thankful we're still online for you to even do that. Other ways to support Neowin Whitelist Neowin by not blocking our ads Create a free member account to see fewer ads Make a donation to support our day to day running costs Subscribe to Neowin - for $14 a year, or $28 a year for an ad-free experience Disclosure: Neowin benefits from revenue of each sale made through our branded deals site powered by StackCommerce.
    • My current phone, on left, is starting to go to sleep, and not turning on, even though I press the power button 100 times. Like CPR.   I tried factory resetting it, and nothing changed. So it's the hardware failing. I currently am using Twigby as my service provider. Cheapest I can get around here. But all their phones are carp.. https://www.twigby.com/shop/twigby-phones A friend warned me about the Moto G, as his neice has one, and isn't that good at $130. Also the Samsung A15 is laughable at best. Everything else is expensive af. I want android, (hate iOS) any version, that works with Twigby, under $100, please. Refurbished/Used is OK with me, as long as it isn't beat up.   If you know the IMEI number, you can see if it works with Twigby: https://www.twigby.com/page/byod
    • i not arguing that it isnt ######, only that it does support themes lol.
    • Bulk Crap Uninstaller 6.2 by Razvan Serea Bulk Crap Uninstaller is a free (as in speech) program uninstaller. It excels at removing large amounts of applications with minimal user input. It can clean up leftovers, detect orphaned applications, run uninstallers according to premade lists, and much more. Even though BCU was made with IT pros in mind, by default it is so straight-forward that anyone can use it effortlessly! Bulk Crap Uninstaller features: Detect and uninstall Windows Store apps Uninstall multiple items at once to speed up the process (with collision prevention) Uninstall any number of applications in a single batch Minimal user input is required during uninstallation Can find and remove leftovers after uninstallation Can uninstall some apps even if they don't have any uninstallers Detects applications with damaged or missing uninstallers Adds quiet uninstall options to some uninstallers, even if they do not support them by default Uninstall lists for automation Startup manager Verification of uninstaller certificates Fully portable, settings are saved to a single file Bulk Crap Uninstaller 6.2 changelog: Features Add invalid-uninstaller view preset by @breshinotestachegira in #903 Add certificate and integrity columns to app list by @breshinotestachegira in #894 Improve Scoop custom path detection by @breshinotestachegira in #892 Fixes Improve uninstall list load error handling by @breshinotestachegira in #895 Fix tweak visibility filtering by @breshinotestachegira in #898 Fix orphaned-only view preset by @breshinotestachegira in #899 Stabilize icon handle ownership by @breshinotestachegira in #902 Fix: Use Directory.GetLastWriteTime for install date fallback by @AniketDeshmane in #908 Do not offer to send "no way to uninstall" error messages by @Klocman in #922 Ignore ERROR_BAD_CONFIGURATION when listing MSI components by @Klocman in #924 Eat InvalidOperationException coming from ListViewGroupAccessibleObject by @Klocman in #925 Harden BCU console export and size detection - Fix BCU-console export failures by @breshinotestachegira in #897 Harden registry factory parsing by @breshinotestachegira in #893 Guard startup uninstall list loading by @breshinotestachegira in #927 Clean generated files on uninstall by @One-Simon in #928 Translations Updated Hungarian translation by @titanicbobo in #875 Updated Vietnamese translations by @wanwanvxt in #918 Fix : Swedish translation causes UI overflow in some windows by @Leise-Shadow in #865 Other Fix publish script after v6.1 by @tsiakoulias in #868 Updated the localization pack Repository Moved the repository under a new BCUninstaller organization (old links still work) Added two maintainers: @hazeliscoding and @One-Simon Added PR merge rules (require up-to-date approval and CI to pass) Updated CI script to also build the launcher (only for testing, not included in artifacts) Download: Bulk Crap Uninstaller 6.2 | 8.8 MB (Open Source) Download: Bulk Crap Uninstaller Portable | 11.6 MB View: Bulk Crap Uninstaller Home Page | GitHub | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • Rookie
      lamborghiniv10 went up a rank
      Rookie
    • One Month Later
      pinnclepd earned a badge
      One Month Later
    • First Post
      X-No-file earned a badge
      First Post
    • One Month Later
      johnjacobb40 earned a badge
      One Month Later
    • One Year In
      Primer1st earned a badge
      One Year In
  • Popular Contributors

    1. 1
      +primortal
      508
    2. 2
      PsYcHoKiLLa
      210
    3. 3
      +Edouard
      145
    4. 4
      Steven P.
      87
    5. 5
      ATLien_0
      81
  • Tell a friend

    Love Neowin? Tell a friend!