• 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

    • Save 35% on Sony's SS-CS5M2 3-way high-res bookshelf speakers by Taras Buria Sony is currently offering a big discount on its SS-CS5M2 bookshelf speaker, saving you 35% on a set of high-quality audio equipment. The SS-CS5M2 is a passive 3-way bookshelf speaker with a 5.12-inch woofer, a 25 mm soft-dome tweeter, and a 19 mm super tweeter. This design allows different drivers to handle different parts of the sound spectrum for a clearer, more detailed audio when watching movies or listening to music. The compact cabinet size allows you to place these speakers on shelves, desks, or stands, making them a practical choice for apartments, bedrooms, and small living rooms. Despite its compact size, the SS-CS5M2 delivers up to 100 W of power. Note that since the speakers are passive, you will need an amplifier to drive them. However, if you do, you can use them for high-resolution music, thanks to a claimed frequency response of 53 Hz - 50 kHz. It is able to extend so far high in the spectrum as a result of those super tweeters. While they will work with most amplifiers and AV receivers, Sony says this pair is a perfect match for its AV receivers, such as STRDH190, 590, 790, or 1000. Sony CS Bookshelf Speakers SS-CS5M2 3-Way 3-Driver Hi-res - $178 | 36% off on Amazon US This Amazon deal is US-specific and not available in other regions unless specified. This is a first-party seller link (at the time of article publishing); ensure that you also purchase from a first-party seller link only. If you don't like it or want to look at more options, check out the previous deals that we have covered, OR you can also visit Amazon US deals page. Get Prime (SNAP), Prime Video, Audible Plus or Kindle / Music Unlimited. Free for 30 days. As an Amazon Associate, we earn from qualifying purchases.
    • So they somehow expect Apple to easily make it so that if I install say DeepSeek that DS can then handle all the tasks that Siri would be doing while integrated in the OS? That sounds like just rediculous.
    • For ray-tracing, the Radeon RX 9070 XT is better than the GeForce RTX 5070, but worse than the GeForce RTX 5070 Ti The Radeon RX 9070 XT is similar to the GeForce RTX 5070 Ti in rasterization Both AMD and NVIDIA have had serious issues with drivers in the past, so I can't say that one is better or worse than the other. Yes. AMD has better support Linux than does NVIDIA. Use Display Driver Uninstaller (DDU) to uninstall NVIDIA's drivers before installing AMD's drivers. That's up to you. Supplies of memory is unpredictable because AI using up a lot of memory. As a result, there is a lot of volatility in video card prices.
    • Promoting is fine - advertising, informing, whatever.  But interrupting your PAID OS experience is not.
  • Recent Achievements

    • 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
    • One Year In
      Primer1st earned a badge
      One Year In
    • Experienced
      JayZJay went up a rank
      Experienced
  • Popular Contributors

    1. 1
      +primortal
      510
    2. 2
      PsYcHoKiLLa
      215
    3. 3
      +Edouard
      145
    4. 4
      Steven P.
      88
    5. 5
      ATLien_0
      83
  • Tell a friend

    Love Neowin? Tell a friend!