ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I wanted to learn C++ so I got one of thoes learn C++ in 24 hours books (Though I doubt any one's ever done it that fast) and started learning.
I can make variables, functions, loops, objects, and a bunch of other stuff.
But I'm still waiting for the fun part. So far I can only write to standard out.
The book dosn't go into writing files, plaing sound, making windows, Anything like that.
I hear to do this you need to know operating system calls.
Great, so where do I go to learn that.
Are there online tutorials?
Do I have to buy another book?
Point me some where.
Working with files, both binary and text files, is specified by the C++ standard, and any decent book claiming to teach C++ should include information about that.
The other things you mention, gui-applications, sounds are platform-dependent. You need to tell us which platforms you will be working on if we are to help you. Despite the name of this forum, many of our posters, especially in the programming forum I'd say, are targeting other platforms than Linux.
Right now, I'm studying wxWidgets (wxWidgets is available for all major platforms) and with it I can create GUI-applications that, in theory, are directly portable between, say, Windows and Linux (provided you don't use other platform-specific things). If you feel you know the core C++ language well, you might want to look into it. And I'm not saying this applies to you, but I think many people try to learn a big library too soon, and when you try to help them with it, it soon becomes clear that they really have problems mastering the core parts of the language, not the library itself.
for Bruce Eckels Thinking in C++ book, it's pretty good ( and free).
you don't need to use system calls to make windows, play sounds or write files (which you can do with the standard c++ library), but if you really want to get dirty fire up xman, go to manual->sections and go into level 2, thats where all the system calls are ( section 3 is where you will want to be for the functions you will be using).
No, sounds and windows are not specified by the the C++ standard. Any libraries providing them are not part of the C++ standard library. File handling is part of the C++ standard, however. Just because a call isn't a system call doesn't mean it's part of the C++ standard.