ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Originally posted by __J
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)
read it again, obviously the "which you can do with the standard c++ library" was referring to "write files"
Originally posted by Hivemind I apologise, it should be clear to the OP what he can do with the core language now and what he can not.
no offense taken. I agree with you, he's gonna have to get the language down before he can move on to what he wants, off to a good start, but still a ways to go.....
Thanks guys,
I'll check out thoes links.
I wont be able to play with it much for a while.
I have SAT's and AP exams comming up.
Summer maby.
till then,
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.