I have noticed that C++ programs intended for different platforms use slightly different languages eg printf instead of cout.
Does this mean that one needs to learn all these different variants?
Thanks
Michael
I have noticed that C++ programs intended for different platforms use slightly different languages eg printf instead of cout.
Does this mean that one needs to learn all these different variants?
Thanks
Michael
Huh? printf() and similar functions are C. cout and similar objects are C++.Originally posted by m.albert
I have noticed that C++ programs intended for different platforms use slightly different languages eg printf instead of cout.
Does this mean that one needs to learn all these different variants?
Thanks
Michael
I've started learning C++ but have the impression that this requires a lot of hard work.
Michael
Duh! Learning anything requires hard work. You can't just decide not to do something because it requires effort.
L33t sp3@k sux0rz (uZ it t@k3s 10 m1|\|ut3s 2 tr@nzl@te 1 \/\/0rd & th3n j00 h@\/3 2 g3t p@$t d@ m1zpelli|\|gz, @tr0(i0u$ gr@mm@r @|\|d 1n(0/\/\pr3#3|\|$1bl3 $l@|\|g. 1t p\/\/33nz j00!!
Speling is my faverit sujekt
I am a signature virus. Add me to your signature so that I may multiply.
Programming is hard. C++ is more difficult than BASIC. Most of us here enjoy it! (Others are "stuck" in a class.) I'd say you have to study C++ for at least a year before you're going to impress anyone with your programs. So, if you don't enjoy the process of learning to program, it is too much work!!!I've started learning C++ but have the impression that this requires a lot of hard work.
Learning to program is not simply learning a task, it's learning a skill. Maybe like learning to play a musical instrument... It's one thing to learn to play a simple song (a task) It's much more difficult to actually learn to play the instrument!
[EDIT]
There is ANSI/ISO standard C++ which is "portable". The platform specific stuff is additional. If you write to the standard, any compiler should work. You have to use platform specific functions if you want to interface with a mouse, or a sound card, or the windows operating system (which not all platforms have).
If you write standard C++, you can use a PC compiler to make an execuitable file for the PC, and recompile with an Apple compiler to make an execuitable file for the Apple. (It won't be a GUI program.)
Last edited by DougDbug; 03-04-2003 at 06:42 PM.
Reading albert's posts is fun!!
I am against the teaching of evolution in schools. I am also against widespread
literacy and the refrigeration of food.
Thanks DougDbug for the good advice.
I suppose that reading and writing code is the way to go about it.
Any other ways to progress quickly?
Michael
Read a good book and stop going to this site.
I am against the teaching of evolution in schools. I am also against widespread
literacy and the refrigeration of food.