• 0

Newbie C++ Help


Question

211 answers to this question

Recommended Posts

  • 0

C++ is a compiled language, so you'd need a compiler. Luckily, you can get one with the Dev-C++ IDE. Unfortunately you'd need to download the 9.0 MB package.

A tutorial would be the next logical step. :)

http://www.cplusplus.com/doc/tutorial/

cplusplus.com also has a reference for the most commonly used C libraries and the iostream library.

  • 0

Hey guys, been a very long time since i've posted here.. But here goes.

I've decided that i need new hobbies (you all know where this is heading). So im planning to learn C as one of them.

I just have a quick question. Would it be advisable to jump straight ahead into Visual C++, or should i learn basic C first? I only ask because it might be a different ball game between both, and learning vc may be "easier" or "better" due to its new age.

Cheers all.

  • 0

Hey guys, been a very long time since i've posted here.. But here goes.

I've decided that i need new hobbies (you all know where this is heading). So im planning to learn C as one of them.

I just have a quick question. Would it be advisable to jump straight ahead into Visual C++, or should i learn basic C first? I only ask because it might be a different ball game between both, and learning vc may be "easier" or "better" due to its new age.

Cheers all.

IMHO, learning C would be advisable since you can't do anything good without knowing how to use pointers well. C++ has too much built into it. It is easy, but if you need to do something like create your own data type, pointers are almost always, if not ALWAYS, going to be required.

  • 0

I'm having trouble compiled some source files with the C extension, I've used Dev to compile but keep getting some kind of error with a line being highlighted in red, the line is in every source file and is

#include"pul.h"

It's highlight when I compile.

There's an INSTALL file included with this and was wondering if it is compiled in a different method?

  • 0

I'm new to learning C++, so please excuse my noobness.

Would it be more worthwhile to learn Visual C++ or start with the C++ console applications.

I recently purchased Sames Teach Yourself C++ in 21 Days! (Second Edition) [isbn: 0-672-31070-8], and it starts off with console applications then as I was looking ahead went into object-orientanted programs (visual).

Just needed a starting foot. I just downloaded the recommended program from this thread: Bloodshed Dev-C++

  • 0
Just needed a starting foot. I just downloaded the recommended program from this thread: Bloodshed Dev-C++

Just a tip for the future: If you use a compiler other than Microsoft Visual C++ (.NET or not), it is not technically Visual C++. The term typically used for that type of application is a GUI application or in the case of Dev-C++, a Windows application.

IMHO, Dev-C++ is great for beginners, and I recommend sticking with it. I also recommend starting where you are "supposed" to start in the book. If you jump into GUI programming, you'll find the code overwhelming (start a new Windows Application project in Dev-C++ and see what the code skeleton looks like to see what I mean).

  • 0

I've found that CDT in Eclipse has a lot of really nice features. It managed to pick on the fact that I have Cygwin GCC installed and is now using that. Do you reckon that this is the best compiler, or are there better alternatives? Can you use other stuff with it apart from GCC?

  • 0

I have been interesting in programming for a long time but had no real utility for it till now. All I know is html, ssi, some javascript, some php and some mysql. Meaning I can deal with those scripts but not that I ever took the time to script any from the ground up, I have done some severe reverse engineering and restructuring scripts together when needed but other than that....

Anyways, I thought I might ask what language yall would suggest me learn so that I can eventually program programs similiar in function to these programs Spybot, Ad-aware, Y'z Dock, windowblinds, photoshop lol, etc. And even forms for users to fill out that then get entered into a database.

From what I can tell Visual Basic is too limited, and bulky and requires dependancies(aka VB to be installed). Same thing with Java although it can work across platforms. I feel the most important one to learn is C or C++? Assembly is also interesting.....

But I understand learning to program something like Y'z Dock requires much knowledge of API's and other things not just C++.

  • 0
I've found that CDT in Eclipse has a lot of really nice features. It managed to pick on the fact that I have Cygwin GCC installed and is now using that. Do you reckon that this is the best compiler, or are there better alternatives? Can you use other stuff with it apart from GCC?

Can you please show me the page with everything I need to download on it? I went to the eclipse site and the C++ page but I couldn't find a download link for the GCC....

I recently switched Java compilers so I uninstalled Eclipse for Java, but it hinted that I use the same one for C++... kind of weird but oh well.

Anyway, can you please tell me everything I need to download and show me a link? Thanks! I've been trying to start C++ for a while because I've heard it is the most useful and universal programming language, but I've been having trouble with compilers so I haven't been able to start..

  • 0

Nevermind.... actually, I'm sick of Eclipse. Can somebody please give me a link to a page to download a C++ compiler? Preferably with as few prerequisites as possible, or everything in one download. I tried the Dev-C++ but I couldn't figure out what I needed to download with it... If someone could just post links to downloads that I need, that would be greatly appreciated.

PS I don't want the Eclipse SDK...

  • 0

I was recently given a copy of Visual Studio 2005 Pro by my dad to give C++ a whirl; Ive got experience with HTML, ADA, COMAL, BASIC, PHP and SQL programming to a limited level; but I really need to get into C++.

Is this all I need to get started with it up and running? I have plenty of books on it and these sites mentioned here are very good indeed it seems!

Is it just a matter of install VS2005 and off I go?

  • 0
I was recently given a copy of Visual Studio 2005 Pro by my dad to give C++ a whirl; Ive got experience with HTML, ADA, COMAL, BASIC, PHP and SQL programming to a limited level; but I really need to get into C++.

Is this all I need to get started with it up and running? I have plenty of books on it and these sites mentioned here are very good indeed it seems!

Is it just a matter of install VS2005 and off I go?

Pretty much. Initially, you'll be creating Win32 Console applications. If you have any specific questions and can't find the answer in MSDN, post 'em here.

  • 0

Hello everyone. Im taking intro to C++ at school and we're required to use the folllowing template file to begin our programs:

/************************************************************
*						 															  *
* Program:		(Program Name)														 *
* Program ID:		(filename.cpp)													 *
* Programmed by:	Adam Bailey												  *
* Date Completed:	(Date last edited)											   *
*																				  *
* Purpose:																		   *
*																					*
*																		   
*																				   *
******************************************************************/

//Compiler Directives
#include "stdafx.h"
#include "YOUR_FILE_NAME.h"  //Change to match .cpp file's name

#include <iostream>
#include <iomanip>
#include <string>
#include <cmath>

CWinApp theApp;   //The one and only application object

using namespace std;

/*********************************
*		MAIN							 *
*********************************/

int main( )
{
	return 0;
}

The problem is Visual Studio Express C++ or Dev C++ doesnt allow creation of the atl and mfc header files. Is there a way to fix this?

Thanks!

  • 0
How different is C# from C++? I'm a beginner to programming, and want to go into C#, but I'm wondering if it'd be best if I learnt C++ first...

Pretty different, and there's no real need to learn one before the other. If anything, it may frustrate you to learn about pointers in C++ and not have a safe equivalent in C#(other than delegates).

  • 0

mIRC Scripting (introduced me to If statements and the like), to HTML, to Perl (RAR!), to VB (lol ponies).... but I stopped there cause I just can't sit down for long enough and focus on learning stuff *brain short circuits*

  • 0

I'm gonna start teaching myself PHP/C/C++ soon and this thread is surely going to help me, but I'm a fair bit older than alot of the people in this thread looking to get into it too (20 as of last month) and I currently really only know HTML well. I was wondering, how long did it take some of you to learn C/C++/PHP to a somewhat decent level from scratch?

I'm curious how much time I might need to invest into learning. :)

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

    • No registered users viewing this page.
  • Posts

    • I just want to know why the volume control feature in the browser version keeps appearing then disappearing, here today - gone tomorrow. Now it's gone again. Annoying as hell.
    • When you have only lies and blood libels to present, you've lost. And how hard is it for you to look up BBC and AP? You hate Jews, just admit it.
    • This article does not make sense and it’s very evident, the bug wasn’t confirmed to exist, because the application itself runs on editions of Windows which make it impossible to run Hyper-V VMs on, “Basically, Claude Desktop on Windows spins up a 1.8GB Hyper-V virtual machine if you use Claude Cowork or agent mode even once.”, suggests the bug is caused by something else otherwise it would only happen to users with the capability of running Hyper-V VMs and that’s only if Hyper-V was enabled which is by default not enabled. The true issue is that the author who reported the bug used the incorrect terminology, it’s actually a container, not a VM that is being started by the way. There were users on macOS reporting the same issue, Hyper-V, doesn’t exist on that platform obviously. Every single user who confirmed the problem in the last week was either using macOS making this issue impossible to be relevant to them, or was a comment talking about WSL, which the author indicated 3 months ago was disabled.
    • “To prevent hallucination issues and keep the database clean, the platform uses a multi-agent verification loop to check code quality.” - This absolutely isn’t happening. ”Before the massive rise of LLMs, which tanked its traffic by about 50% over the last couple of years, Stack Overflow was the go-to website for millions of programmers seeking coding solutions.” - It still is trusted, because the community of users, blocked other users from submitting false and misleading answers generated by AI agents that can be convinced something it generated is actually incorrect even if it’s actually correct. The company itself doesn’t know what it wants to be so it keeps trying and failing to introduce AI features to the platform. This effort will also fail, already submitted one successful poison pill, look forward to generating more.
  • 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
      524
    2. 2
      PsYcHoKiLLa
      211
    3. 3
      +Edouard
      159
    4. 4
      Steven P.
      98
    5. 5
      ATLien_0
      83
  • Tell a friend

    Love Neowin? Tell a friend!