• 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

    • We need a game update frequency setting. * Right now your recent games will be auto updated overnight, and your unrecent games won't be updated. The bifurcation of recent and unrecent is fine, but we should be able to control the update frequency for both, with any of the following options: 1. Don't auto update 2. Auto update weekly 3. Auto update overnight 3. Auto update immediately (push) i.e. When I'm playing a lot, I want my recently played games to have push updates, so if a dev releases an update at 4pm, it's already downloaded on my Xbox by the time I get home. The current overnight cadence leaves a lot of wasted time waiting for updates on slow connections. My infrequently played games in ok with deferring to overnight, or maybe weekly, but let the users control their frequency. Basing it on data and last played sounds smart but ignores the human reality that often when I'm busiest and have the least time for games is when it sucks the most to come home and find a huge update list waiting for you.
    • Genocide is intent to exterminate and both the Israeli government AND its people openly declare, even boast about their intent to exterminate Arabs. This society of sick psychopaths has even made songs about it. Zionist means believing Israel should exist as an religious ethno-state where only Jews have rights and everyone else is second class citizen. As for the blood libel thing, we already know zionists get off on killing children. We also know Israel is a safe heaven for all the pedophiles and rapists of the world. Honestly, after what we saw in the Epstein files, I wouldn't put anything past this depraved death cult. Of course all atrocities committed by tHe wOrLds mOsT mOrAl aRmY are always "unproven or taken out of context". Unfortunately for them, their soldiers are dumb enough to leave a trail of their war crimes all over social media. Then again, when you live in a society that's obsessed with death and destruction, posting videos of yourself in the act of ransacking homes and desecrating religious monuments earns you brownie points I guess. Israel is the only society in the world where people come out on the roads for the right to **** prisoners. Also claiming that the BBC said this and AP said that without so much as a link has gotten me curious. Are all zionists this dumb? I really hope you aren't getting paid for this because this is some low effort propaganda.
    • Microsoft is bringing big performance improvements to OneDrive on Mac by Taras Buria Microsoft has announced a major update for the OneDrive client on macOS. Today, the company released version 26.098, promising significantly faster sync, optimized CPU usage, a smaller memory footprint, and better energy efficiency. In a newly published blog post, Microsoft acknowledged that changes implemented in OneDrive for Mac in 2022 brought some unwanted side effects. Due to architectural changes and the need to keep the OneDrive sync engine unchanged, Microsoft created a hidden cache folder. With time, it would cause reliability and performance issues for customers. Now, Microsoft is ditching the old engine for native sync, delivering a faster, more reliable experience. As a result of this change, OneDrive for Mac now integrates more deeply into the operating system, offers about two times faster sync performance, and uses fewer system resources. While the hidden folder still exists, the app only uses it to store files that have not been uploaded yet, link file types, and macOS-related packages. In total, even when holding hundreds of files, the temporary folder does not take more than a couple of megabytes on the drive. Besides optimizations, the new sync engine enables external drive support, allowing you to keep your OneDrive folder on a removable drive (it should meet all the requirements). Microsoft is now rolling out the updated OneDrive client for Microsoft 365 Insiders. To check if your Mac has the new sync engine, go to the About tab and check the app version. If it ends with something like 26H, you are on the new engine. If not, you are on the old one. Microsoft says it will take a few weeks to complete the rollout to Insiders, but it won't say when to expect the update in the stable channel. Big performance updates for OneDrive on Mac came right after Microsoft confirmed it would soon kill document editing in Office 2019 for Mac due to expiring certificates. This change will force users to look for alternatives or switch to Microsoft 365.
  • 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
      517
    2. 2
      PsYcHoKiLLa
      211
    3. 3
      +Edouard
      147
    4. 4
      Steven P.
      92
    5. 5
      ATLien_0
      82
  • Tell a friend

    Love Neowin? Tell a friend!