• 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

    • Microsoft: Windows 11 KB5094126, KB5093998 finally stops trusting a critical system threat by Sayan Sen This week Microsoft released the Patch Tuesday updates for June 2026 with KB5094126 on Windows 11 25H2, 24H2, and KB5093998 on Windows 11 23H2. On Windows 10 22H2 it's under KB5094127. Alongside the announced release notes for the new builds, Microsoft has revealed another change that is coming to Windows with these new releases. It has been confirmed that custom folders are getting a significant change with the June 2026 updates as such folders or folder names defined by desktop.ini will no longer appear after this update is successfully installed. While you may inititally think this is a bug with the new release, Microsoft has stated that this is in fact "expected behaviour" in its new support article regarding this which Neowin spotted today while browsing. Essentially it's a security hardening measure such that custom folder presentations are treated as potentially unsafe whenever Windows is not sure about their origin and whether that desktop.ini folder can be trusted or not. Here is list of such untrusted files and folders: Files downloaded from the internet that carry Mark-of-the-Web (MOTW). Files copied from certain remote locations, such as some WebDAV or HTTP-based locations. Files on network paths that are not classified as intranet or trusted by zone policy. For those who may not be familiar, Desktop.ini is a special configuration file used by Windows to customize the appearance and behavior of individual folders. Basically Windows can read specific instructions stored in Desktop.ini instead of displaying every folder with the same default settings. This can be used to apply custom icons, thumbnail images, localized folder names, and such informational tooltips (infotip). The file can also influence certain folder-specific behaviors and properties. It is typically stored as a hidden system file within a folder that has been designated to support Desktop.ini customization. However, because Windows Shell automatically reads and applies these attributes whenever a customized folder is opened, they have historically (since the Windows XP days) presented an attack surface as a result of an unchecked buffer in the Shell component responsible for extracting custom attributes from Desktop.ini files. As such an attacker could create a specially crafted Desktop.ini containing a malicious or corrupted attributes and place it on a network share. So if a user were to browse that folder, Windows would automatically process the file, potentially triggering a buffer overflow. This could allow arbitrary code to run with the same permissions as the logged-in user. Hence a seemingly harmless folder could become a security risk when their contents are not properly validated. For admins and users alike looking to manage this behaviour, Microsoft has shared a few ways. One of them is to assign a trusted mark on the folder in case you are sure of its source. Secondly a policy can be used to revert back to the previous state. Finally, the MOTW can be removed too to indicate to Windows that this is a safe file. The company explains: Option 1: Add the source to Trusted Sites (Recommended) If the affected content is stored on a known internal or managed source, add that source to the Trusted Sites list. Once the source is treated as trusted, Windows processes desktop.ini from that source normally. This keeps the protection in place for other locations and is the lower-risk option. Option 2: Use policy to restore previous behavior Organizations that need broader compatibility can enable the policy Allow the use of remote paths in file shortcut icons.Enabling this policy restores the pre-June 2026 behavior for affected remote or untrusted scenarios. Option 3: Check for and remove the Mark of the Web (MotW) If the desktop.ini file has a Mark of the Web (MotW), Windows may treat it as coming from an untrusted source and block customization. Verify whether MotW is present and, if appropriate, remove it from the desktop.ini file. This can restore expected behavior, but should only be done for trusted content, as it removes the associated security protection. To remove the MotW tag, open PowerShell and run one of the following commands: For a single desktop.ini file: Unblock-File "C:\Your\Folder\Path\desktop.ini" For all desktop.ini files in a folder: Get-ChildItem "C:\Your\Folder\Path" -Recurse -Filter desktop.ini -Force | Unblock-File Microsoft has warned though against using a broad opt-out using the provided policy as it reduces protection against potentially malicious remote folder-customization content. As such the tech giant recommends trusting only controlled internal sources and keeping trust settings as strict as possible. You can check out the official support article here on Microsoft's website.
    • LAV Filters 0.82.0 by Razvan Serea LAVFSplitter is a multi-format media splitter that uses libavformat (the demuxing library from ffmpeg) to demux all sorts of media files. LAV Splitter is a Souce Filter/Splitter required to demux the files into their separate elementary streams. LAV Audio and Video Decoder are powerful decoders with a focus on quality and performance, without any compromises. Supported Formats: MKV/WebM, AVI, MP4/MOV, MPEG-TS/PS (including basic EVO support), FLV, OGG, and many more that are supported by ffmpeg! LAV Filters are based on ffmpeg and libbluray and is aimed to offer a all-around solution to perfect playback of file-based Media as well as Blu-rays. LAV Filters 0.82.0 changelog: LAV Splitter NEW: Support for demuxing Dolby Vision Enhancement Layer streams NEW: Support for Animated WebP images Changed: When demuxing Blu-ray discs, Dolby Vision metadata is available on the primary video stream LAV Video NEW: Support for Animated WebP images Changed: Hardware decoding support for DVDs has been removed Download: LAV Filters 0.82.0 | 15.5 MB (Open Source) View: LAV Filters Website | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • For some reason when EU forced Microsoft to allow users to change the default browser and search provider in Windows (also no ads for Office and the likes) - it was good. But when it comes to Apple - then it's bad. BTW, Apple would have gone out of business if Microsoft wasn't pressed by US government several decades ago. 😉
  • Recent Achievements

    • One Month Later
      Sopa flores earned a badge
      One Month Later
    • First Post
      StaticMatrix earned a badge
      First Post
    • 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
  • Popular Contributors

    1. 1
      +primortal
      506
    2. 2
      PsYcHoKiLLa
      207
    3. 3
      +Edouard
      156
    4. 4
      Steven P.
      88
    5. 5
      ATLien_0
      79
  • Tell a friend

    Love Neowin? Tell a friend!