Hi, I'm just starting out with C++, although I've been programming PHP for ages (so i know functions, looping, etc), and a little bit of C, but there's a few things i'm struggling with. I've just started working through a book "Beginning Game Programming", and while i understand 90% of the code itself, it's little things like the types of files (.h, .o etc), indeciferable compiler errors, loopbacks, ::, etc, should i buy a C++ book and start from scratch, or will i pick these things up as i go? I've looked through a LOT of tutorials, and all the ones i've read cover specifics like variables, looping, etc very clearly, except these little nuances tend to go unnoticed
One specific problem, everything I compile comes out huge, for example:
comes out at 463kb. I'm using the latest Bloodshed Dev-C++, everything at default. what might i be doing wrong before i get into making bigger stuff? Also, although it's compiling fine, i get warnings like "...at least one antiquated or deprecated header..."Code:#include <iostream.h> int main() { char x; cout << "Type c and press enter"; cin >> x; }
i hope at least something i said has made sense :S sorry



LinkBack URL
About LinkBacks



i'd read that line before, "using namespace std" but didn't know what it applied to, without it, it claims that the function isn't declared, so obviously the header is using that namespace to declare the functions.