LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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



Reply
 
Search this Thread
Old 04-29-2005, 05:03 AM   #1
matazar42
Member
 
Registered: Dec 2004
Location: California
Distribution: Red Hat 9
Posts: 51

Rep: Reputation: 15
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
 
Old 04-29-2005, 05:31 AM   #2
Hivemind
Member
 
Registered: Sep 2004
Posts: 273

Rep: Reputation: 30
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 05:33 AM.
 
Old 04-29-2005, 05:35 AM   #3
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
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).
 
Old 04-29-2005, 06:12 AM   #4
Hivemind
Member
 
Registered: Sep 2004
Posts: 273

Rep: Reputation: 30
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.
 
Old 04-29-2005, 06:37 AM   #5
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
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"
 
Old 04-29-2005, 06:41 AM   #6
Hivemind
Member
 
Registered: Sep 2004
Posts: 273

Rep: Reputation: 30
I apologise, it should be clear to the OP what he can do with the core language now and what he can not.
 
Old 04-29-2005, 06:56 AM   #7
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
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.....
 
Old 05-01-2005, 10:34 PM   #8
matazar42
Member
 
Registered: Dec 2004
Location: California
Distribution: Red Hat 9
Posts: 51

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
System calls question alltime Programming 1 11-29-2005 09:31 PM
Making system calls in C++ harisund Programming 4 11-26-2005 06:58 PM
Some system calls Spooky Programming 1 11-24-2004 11:17 AM
counting system calls eltn Programming 2 10-15-2004 03:32 PM
System Calls file Hady Programming 1 12-13-2003 01:14 PM


All times are GMT -5. The time now is 01:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration