Image

Imagezerozephr wrote in Imagecpp

Learning C++

I've been programming in php for some 3 years now, and I figured it was time to start learning a client-side, 'real' language.

I understand the basics of programming, but I don't see a whole bunch of really good tutorials online. They do great to teach you the syntax, but nothing to explain how to really use the language, no real-world examples, etc.

Anyway, to push myself a bit, I've been trying to code my first 'useful' program - a utility that will convert bytes to Kilobytes to Megabytes to Gigabytes and anything inbetween. Right now it's using a menu (ech) instead of arguments, but I'm not that good yet.

Well, it's not working. I was wondering if anyone could point out to me why. I'm not even sure if I'm using the correct variable types...

Anyway, it's here. Any suggestions would be appreciated. I've been putting off trying to get someone to help to see if I can figure it out, but I'm just at a loss now.

Is there any good online tutorials that teach you the language, while showing example programs that are actually useful?