Programming This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-29-2005, 04:03 AM
|
#1
|
|
Member
Registered: Dec 2004
Location: California
Distribution: Red Hat 9
Posts: 51
Rep:
|
New to C++. I need to learn system calls
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.
Thanks,
Matthew
|
|
|
|
04-29-2005, 04:31 AM
|
#2
|
|
Member
Registered: Sep 2004
Posts: 273
Rep:
|
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.
Last edited by Hivemind; 04-29-2005 at 04:33 AM.
|
|
|
|
04-29-2005, 04:35 AM
|
#3
|
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
http://developer.kde.org/~larrosa/tutorial/index.html
try this out. you might want to get a couple more c++ references, maybe The C++ Programming Language or try here:
http://www.mindview.net
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).
|
|
|
|
04-29-2005, 05:12 AM
|
#4
|
|
Member
Registered: Sep 2004
Posts: 273
Rep:
|
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.
|
|
|
|
04-29-2005, 05:37 AM
|
#5
|
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
Quote:
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"
|
|
|
|
04-29-2005, 05:41 AM
|
#6
|
|
Member
Registered: Sep 2004
Posts: 273
Rep:
|
I apologise, it should be clear to the OP what he can do with the core language now and what he can not. 
|
|
|
|
04-29-2005, 05:56 AM
|
#7
|
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
Quote:
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.....
|
|
|
|
05-01-2005, 09:34 PM
|
#8
|
|
Member
Registered: Dec 2004
Location: California
Distribution: Red Hat 9
Posts: 51
Original Poster
Rep:
|
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,
Chill,
-Matthew
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:05 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|