Just wondering about this...
Someone said this in one of the threads.
Note that there are no graphics, mouse, or sound, in standard C++. (All of these features are compiler and system specific.)
I'm new to C++, just thinking about starting to learn the language.
Does the quote above mean that with the standard version of C++ (not professional or the higher one, pro over 1,000 dollars), you cant have graphics or sound ?
or did I misunderstand ?
Since that was my quote... My 2 cents...
Standardization and portability:
If you write a program using only ANSI/ISO standard C++, you can re-compile it on any C++ compiler, and it will run on any computer (for which you have a C++ compiler.)** There are no special hardware requirements to run a standard C++ program. All that's required is a keyboard, a text display, and disk storage.
So, although you can't copy the executable (.exe) program, from a PC and run it on a Mac, you can re-compile the source code (.c or .cpp) and make an executable that will run on the Mac.
All C++ compilers have all of the standard libraries, and will compile standard C++ code.** . Most compilers have additional function libraries in addition to the standard ones. If you use any of these functions, your code may not compile on another compiler. Whenever someone posts a question here like "How do I draw a box?" the first response is "What operating system and compiler are you using?"
This means that very few (if any) commercial programs are written in pure standard C++. And, that is why most programs are available only for one platform. You can't just re-compile a Windows program for a Mac. You have to re-write all of the GUI, sound, printer output, etc.
The "normal" way to learn C++, is to learn the standard "part" first. Then you can move-on to system-specific stuff. It usually takes at least several months of studying standard C++, before you start learning how to make your programs "look cool".
**This is not really true... Most compilers try to be compliant, but most seem to have a few things that don't work correctly.
Re: Since that was my quote... My 2 cents...
You say there are no special hardware requirements, then you suggest some items of hardware that are required. None of those are.
Originally posted by DougDbug
There are no special hardware requirements to run a standard C++ program. All that's required is a keyboard, a text display, and disk storage.