• 0

Newbie C++ Help


Question

Recommended Posts

  • 0

Forget scripting/markup languages to begin with. Worry about them later. They're pretty much irrelevant when it comes to programming (i.e., don't worry about HTML, CSS, XML, XHTML, DHTML, etc...).

Honestly, start with a classic beginner's language, either C++ or Java. I learned C++ first, but Java is a good first language too. I would stay away from C until you get a handle on C++, then go to C to get the extra functionality C provides. Then, if you're serious about doing some web work (database driven sites and whatnot), PHP would be really easy to learn. Also, if you learn Java, JSP becomes a real viable option for database driven websites.

Paul.

  • 0
Forget scripting/markup languages to begin with. Worry about them later. They're pretty much irrelevant when it comes to programming (i.e., don't worry about HTML, CSS, XML, XHTML, DHTML, etc...).

Honestly, start with a classic beginner's language, either C++ or Java. I learned C++ first, but Java is a good first language too. I would stay away from C until you get a handle on C++, then go to C to get the extra functionality C provides. Then, if you're serious about doing some web work (database driven sites and whatnot), PHP would be really easy to learn. Also, if you learn Java, JSP becomes a real viable option for database driven websites.

Paul.

Don't you have that backwards on the C/C++ part? C++ is the one with extra functionality, C is the basics :huh:

  • 0
Forget scripting/markup languages to begin with. Worry about them later. They're pretty much irrelevant when it comes to programming (i.e., don't worry about HTML, CSS, XML, XHTML, DHTML, etc...).

Honestly, start with a classic beginner's language, either C++ or Java. I learned C++ first, but Java is a good first language too. I would stay away from C until you get a handle on C++, then go to C to get the extra functionality C provides. Then, if you're serious about doing some web work (database driven sites and whatnot), PHP would be really easy to learn. Also, if you learn Java, JSP becomes a real viable option for database driven websites.

Paul.

Don't you have that backwards on the C/C++ part? C++ is the one with extra functionality, C is the basics :huh:

i always thought C++ was higher level language and couldn't do certain complicated, lower level operations that C could. making C harder and more time consuming to learn/program in

  • 0
LOL, that's the book they use in almost all the schools in toronto. My old school too!!!<br />

<br />

<br />

Originally posted by DeathLace <br />

Vi3tboi911 if you don't mind spending a little cash to buy a intro book to C++ try "A Guide To Programming in C++" by Tim Corica, Beth Brown and Bruce Presley<br />

Published by: Lawrenceville Press<br />

<br />

When I started to learn C++ I used this book in school, a great book that will really get you going, very easy to learn from too.

they teach u c++, DUDE, AWESOME :D the best we got, or, were going to get was VB, then i mentioned to the teacher that i had been programming since i was 9 (started with qbasic) and programming VB for about 4 years, then i went home and completed the final year 12 (what he thought was very hard) project, that night, to prove that i was smart :p it was a program turning an A into a B, a B into a C, HAHAHA

newchar=chr(asc(curchar)+1)

:p

so now after me asking very nicely to do java or c++......were doing delphi - mastered it already :p

anyway, thanks all of you for posting in this thread, its given me the urge to go an learn some more on c++ (i did a short course, but no1 else liked it, so it changed back to VB :( )

Does anyone have any good links for c++ in linux???

also, how do you compile, or test run a project using the gcc compiler???

  • 0

To the programming god above :rolleyes: who's already so hot on coding that they can't do a "man gcc", to get gcc to compile and link a program to an exectuable form you simply type "gcc -o whatever_the_hell_you_want_your_output_filename_to_be source.c"

Anyway, as an aside from that - I'm 22 now, been coding various things since the age of 5 on an Amstrad CPC 464, and the way I've found to learn about coding is NOT to do the crappy hello world type stuff, I mean cmon - which beaurocrat decided that the first week of coding school should be down with cout << "hello world" << endl;

The way I learned VB, Delphi, C++, Java and a little PHP was simply by hitting the help files, finding a function and writing a wrapper around it.

For example, in Delphi you get fundamental API access given to you, to figure this out I simply wrote a program that wrapped the API information returned (system info etc) into a nice neat box to show the user. All done using labels and about maybe 50 lines of code max.

C++, well - basic function-based C++ is dead easy to learn, it's procedural really...

OO can be a pain but once you've started it's only polite to carry on!

I wouldn't worry about memory allocation, or anything like that if you're new - read up on the bog basic functional stuff and it mushrooms from there, and from what I've seen so far if you run into trouble - there are a LOT of knowledgable bods around here to help!

Edited by CB-Dave
  • 0

Hi There,

I have been programming for about 9-10 years now, and proffesionally for about 5 years. My experience is that every person has his/hers own way of learning the best, personally what I find most effective is practical learning instead of theoretical learning. Then when I thought i was mastering a language at some level I have started to explore the theories more deeply.

In other words, im a "learn by example" kind of guy, I learned what some of the cpp language by just going thru various turtorials, and then my father bought me Bjarne Stoustrups (one of the great danes in programming :laugh:) first book, now i can only find the Oreilly C++ in a nutshell, on my bookshelf - I guess I lost Bjarne's book in a move.

For rookie programmers wanting to learn some OO based concepts could look into a language like Python, this language have proved to be one of my favorite tools, I love the powers of this language, and the way to implement it in other languages, if wanting to write performance critical parts in lower level languages. For instance the C/C++ api are incredible (python itselfes is implemented in c), but also the PythonForDelphi (cpp builder, delphi and kylix compliant) is great.

Maybe I got way of topic, I appologize for that, I just got carried away :D (my first post at neowin, but not last, hehe)

  • 0

C++:

- template functions

- template library, strings, vectors, lists, sorting, and so on.

- objects

- new and delete instead of malloc and free

- can do for (int n=0 ....) in a for loop without compiler bitching (i dunno if msvc does it, but gcc does.

well, there's a bunch more but that's the main difference.

I recommend to learn whatever the **** you wanna learn it for. If you're gonna be doing scripting use perl. Gonna write apps use C/C++.

  • 0

intersting to note that c ++ was, many moons ago, first called c with objects. C++ is an extention to C. Java is a progression from C ++ and is harder to understand for a newb then C.

C as a language is so easy that it takes some of the fun out of it. My lecturer at college used to say "if you could understand pointers then you knew the hardest bit of c" and pointers are easy to grasp if you have them explained to you properly.

c++ is a nice beast but is a beast and has lots of complicated parts to it which are good and in some situations usefull but i find i never use them. i prefere to keep code as low level and simple as possible as not to lag down code doing unneccesary work. Object Oriented program will seem alot easier to you is you have learn C's structure's, struct cast's. Memory management is easier then c's but if you programm in windows 3.0/1 then you carnt use it (doest get paged right in old version of windows).

Java after learning c++ is so quick to pick up it aint even a challenge, did my brother's university course work which had to be in jarva and ide only ever done c++.

Dont go the rounte of basic. if u can handle C/C++ then you can handle ANY language out there that is written with humans in mind. It may just be me but i like some challenge in the actually programming aspect.

Any way that just my point of view and shouldnt be set in gold..

  • 0

I just love the Primer Plus books. I have 2. C Primer Plus and C++ Primer Plus. They explain the language really well and i would suggest buying them if you have a few bucks to spend ($75 US for both). Also, I recommend learning C then C++, and then moving on to any other languages, cuz C and C++ are like the basics of programming. After you learn C++, all other languages should be a breeze. :D Hope this helped!

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

    • No registered users viewing this page.
  • Posts

    • Here's a good laugh for you then. My brother, his girl friend and my son all have the Galaxy A15 5g and they are working absolutely great. My wife and I both have the A16 and they are working great also. Maybe you are laughing at the specs, but for under $100 I would hope you aren't expecting much.
    • 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.
  • 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!