• 0

Newbie C++ Help


Question

Recommended Posts

  • 0

i use the bloodshed C++ compiler, i started with Qbasic in school during study hall and then moved on to VB 6.0 for a class. After that i went to the local college and signed up for a C++ class. The book we used was "Your first book of C++". Great book, teachs you all the way from cout to using vector graphics in a 3d enviorment.

  • 0

I started making webpages using WYSIWYG editors, then started looking at the code. I went to javascript, css, then php and mysql, now im having a go at C++

I defefinetly recommend the bloodshed devc++ and winprog.org/tutorial 's windows programming tutorial.

Of course, go with web tutorials if you dont want to spend money, but if you dont mind spending, I think a book is alot easier to learn from.

  • 0

1. ASM

I'd recommend you start with 80x86 ASM. There are several good tutorials and free books out there to learn assembly language. Learning assembly language first will give you insights into the computer that you wouldn't otherwise have if you were using a high level language.

There are several assemblers that are available for free:

1. FASM (The easiest to learn and use, Linux\Win32\DOS) (www.flatassembler.net)

2. MASM (The most popular assembler, Win32\DOS) (www.masm32.com) *

3. TASM (Unsupported, Win32\DOS) (Ask Google)

4. GoAsm (A down-to-earth assembler, Win32) (www.godevtool.com)

........

Art of Assembly Language (16/32-bit), Randy Hyde, is the most comprehensive book you'll find on assembly language for the Intel 80x86 processors.

Another good book is Assembly language for the IBM PC Family, William Jones.

C:

After you've learnt a good deal of assembly language and computer architecture, get yourself a good book to learn C. K&R was good.

C++:

If you want to learn C++, I'd say you look no further than C++ Programming Black Book, Steven Holzner. Da Best!

Good luck!

_______________________

* For MASM32, if you want to assemble 16-bit programs, you might need a 16-bit linker, which you can easily download from Iczelion's Windows assembly website.

  • 0
1. ASM

I'd recommend you start with 80x86 ASM. There are several good tutorials and free books out there to learn assembly language. Learning assembly language first will give you insights into the computer that you wouldn't otherwise have if you were using a high level language.

There are several assemblers that are available for free:

1. FASM (The easiest to learn and use, Linux\Win32\DOS) (www.flatassembler.net)

2. MASM (The most popular assembler, Win32\DOS) (www.masm32.com) *

3. TASM (Unsupported, Win32\DOS) (Ask Google)

4. GoAsm (A down-to-earth assembler, Win32) (www.godevtool.com)

........

C:

After you've learnt a good deal of assembly language and computer architecture, get yourself a good book to learn C. K&R was good.

C++:

If you want to learn C++, I'd say you look no further than C++ Programming Black Book, Steven Holzner. Da Best!

_______________________

* For MASM32, if you want to assemble 16-bit programs, you might need a 16-bit linker, which you can easily download from Iczelion's Windows assembly website.

You must be kidding.....

That is just stupid to start with ASM if you have no experience. Normally you start with something easy as Pascal or Java to learn things about loops, conditions, etc, etc. Then when you know how to do the simple things you go learn Object Oriented Programming. By that time you know how to think and how a computer reacts on your statements. Now it is a good time to dive into more complicated stuff like assembly language. If you do that first you have probably no idea what the hell you are doing anyways.

  • 0

If you want to learn computer programming and have no previous experience, read up some websites about a old old language called BASIC... it's basically a language that does line by line execution, like feeding instructions into a robot. All the fundamentals of programming are pretty much there - loops, conditions, subroutines, stuff like that.

Then once you have a good feeling about it, go ahead and move onto Java... Java is an object oriented language. It isn't the simple "go from the top-to-bottom" anymore, but it's a lot neater, and much more powerful.

Finally, after Java do take a hack at C++, and a book I suggest you should read is "C++ Primer Plus" by stephen prata. It's big and blue. C++ is also object oriented, but it has a lot of symbolic notation that is confusion yet confusing (yet powerful!)

  • 0

Hey Ive also been programming since I was in middle school, (9 to 13 - uk) and I started with BASIC! I agree thats HTML is a good starting point, (it gets you used to notepad for a start - lol!) but I think C is a valuable language. Half of C++ is C anyway! I learn't like so:

1) BASIC

2) HTML

3) A little JavaScript

4) C

5) C++

6) WinAPI for C (I prefer the raw code than the simplified C++)

Also I would like to add to whoever said use "C by Example" to learn C, I agree the book is great for getting the basics of Console based C apps.

Tarl

  • 0

Yeah, I've been programming since I was about 12, tought myself:

1. HTML (Notepad)

2. Some basic JavaScript

3. PHP and MySQL

a. Created basic admin system

b. Created Authentication with md5 passwords

4. C++

I must admit that if you teach yourself PHP, you should be in good stead with the language, as you could pretty much copy a basic helloworld script from PHP and get it working in C++ lol

Though this is about as far as I've gotten (haha :blink: )

I do need some guidance in this field to get me further,

1. What Compiler would be most benificial, if I was doing a game programming course in UNI, i.e. MS VB 7 .NET, Bloodshed's Compiler or another?

2. Also what Books would be best to start by introducing the librarys and what they do, where you include them. Also building basic projects in windows (not DOS) and creating games using C++ with OpenGL or DirectX 9, while providing more complex projects as it goes through.

Do the O'Reilly series provide a good c++ book?

Thanks this'd be really cool :D

Boz. :)

  • 0
yeah maybe you know alot of langauges but you might not now them well. plus you might not now everything.

How old are you now?

COme on at 12 years old no way you can master any language well

Well, I know HTML like the back of my hand usu attached to a book for reference, not much in Java, use PHP and MySQL continously, making forum at the moment much like this with avatars and alike so pretty good at that.

I'm 17 atm only 5months till 18 yay :D

  • 0
Quick question, what's the difference between iostream and iostream.h? Other than I don't have to type using namespace std;?

Why doesn't iostream.h recognize cout?

iostream.h is not the current standard library. It is deprecated.

iostream is the standard library.

I have no idea why iostream.h isn't recognizing cout. It should.

  • 0
im a real noob, i can almost make teh 'hello world' program and i understand it but i cant get the f**kn thing to run.

i used inscite to compile it and im not sure how to run it.

First of all, from looking at the inscite homepage, it appears inscite is just a code editor -- not a compiler.

If the "hello world" program was compiled correctly, then an .exe file should be created.

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

    • No registered users viewing this page.
  • Posts

    • Sorry but that makes no sense. What does using the same laptop have to do with anything? 
    • Playground drops 30 minutes of Fable gameplay, shows off life sim and morality system by Pulasthi Ariyasinghe Playground Games gave fantasy RPG fans a new look at its Fable reboot last Sunday at the Xbox Games Showcase. While that was a short cinematic trailer revealing the main villain of the storyline, played by Hayley Atwell, today, the development team released an entire gameplay demo to show off the game in action. There is some combat and action near the end of it, but most of the demo is focused on the game's NPC simulation, relationships, choices players can make, and the complex reputation system. The studio is touting over 1,000 hand-crafted NPCs who have jobs, homes, routines they follow in their villages and outskirts, and a memory of what is going on in the world and what actions the player has done. All of these are voiced by real people too. The demo begins with a short interaction with a butcher who wants to kill a talking pig named Colin. The protagonist chooses to save Colin by paying the butcher a bunch of gold for his troubles, giving the hero a rise in reputation for being shrewd, merciful, and virtuous. There were also options to simply let Colin get killed or even fight the butcher for the pig instead of paying him. How NPCs judge the player depends on how they interact with the world. https://www.youtube.com/watch?v=doV0yq4kAP0 Later, the demo shows off how purchasing and managing businesses work, where players can hire employees, change their wages, tweak the price of the shop items, and reap profits if they do well. Different NPCs react differently to each type of reputation the player is touting. One shop owner jacks up prices by 80% just because the player is rich and owns businesses. The demo even shows the player deciding to attack random villagers and causing a ruckus in the streets, turning the hero into a criminal. This is where the magic combat systems are shown off, where the player can teleport, turn enemies into chickens, sword-fight, and more. "This is how you’ll build an extraordinary life in Fable. It’s all about shades of grey – it’s not us or the game telling you what is good and what is bad," says Dan Greer, Lead Game Designer. "With the Living Population, it’s the NPCs themselves judging your actions." Fable is releasing across PC and Xbox Series X|S on February 23, 2027. Premium Edition owners will be able to play starting on February 18 instead. Xbox Game Pass subscribers will also be able to jump in at launch for no extra cost.
    • 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.
  • Recent Achievements

    • Week One Done
      StaticMatrix earned a badge
      Week One Done
    • 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
  • Popular Contributors

    1. 1
      +primortal
      516
    2. 2
      PsYcHoKiLLa
      210
    3. 3
      +Edouard
      147
    4. 4
      Steven P.
      92
    5. 5
      ATLien_0
      82
  • Tell a friend

    Love Neowin? Tell a friend!