Re: C programing
Benak Istvan wrote: Hi! Someone tell me how can I find a doc about C programing (I downloaded the Programmer's Guide, but I can't programming under C, so I want to learn it!) So I need a doc for lammers! Thx for all the help! I'll buy a book, when I get my fee, but till than I found a web page which contain a good tutorial for Pascal, C, C++, Java, etc. It contains an example *.c programs, and the end of every chapter be some exercise, and there are the answer program too. The documentum is very useful, I couldn't write a program under C, but yesterday I readed that document, and I understood many thing. So thanks everybody! I can begin the learning! :) Ps.: http://www.swcp.com/~dodrill/ = It's that page :) -- Best regards! | Debian GNU/Linux Potato 200MMX/32MB/1.7Gb/S3VirgeDX4Mb | | Kernel: 2.2.9XFree86: 3.3.5 WM: WindowMaker | | e-mail: [EMAIL PROTECTED] |
Re: C programing
Although I am far from being a C expert I believe that standard C should not be so problematic. Perhaps you might want to post some specific questions ? Stephan Engelke wrote: Hi, On Mon, Oct 25, 1999 at 01:30:34PM +0200, Benak Istvan wrote: Someone tell me how can I find a doc about C programing (I downloaded the Programmer's Guide, but I can't programming under C, so I want to learn it!) So I need a doc for lammers! How 'bout Kerninghan, Ritchie: The C Programming Language. Sorry, forgot the publisher. There's a score of other good, allright, and bad books around. Check your local bookstore. cut snip After spending the last two days trying to convert a C program I wrote some 6 years ago in microsoft C into linux. I just have to echo this question. Is there no linux specific/best book that covers gcc and g++. One that includes all the standard library calls . I currently have four books on C (not the Kerninghan book though. I'll have to go look at it) and they're basically worthless. I'm not sure if it's that they're simply too old or too 'microsoft', but I'd love to find a book on gcc that would be a simple but complete reference for the occasional C programer. O'Reilly are you listening?? John --- Powered by the Penguin -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
Re: C programing
On Tue, Oct 26, 1999 at 05:11:45PM +, John Carline wrote: Ingles, Raymond wrote: On Mon, Oct 25, 1999 at 10:07:28PM +, John Carline wrote: [...] After spending the last two days trying to convert a C program I wrote some 6 years ago in microsoft C into linux. I just have to echo this question. This sort of question pops up on the C newsgroups and mailing lists a lot. There *is* no ANSI C way to, for example, clear the screen. The DOS functions from conio.h are completely separate from the C standard. (Indeed, they are heavily tied to real-mode 8086 and CGA/VGA graphics and PC hardware, and often can't even be *emulated* well on other hardware.) Yup! you've just described my plight. Naturally my code is *heavy* in calls to conio.h and graph.h. For simple plotting to a window, be sure to look at libplot from the plotutils package. It is rather basic, but easy to use if all you need is a simple plot. As a bonus, it has the same interface for plotting to a window as for plotting to postscript and various other file formats. Plotutils has info documentation. HTH, Eric -- E.L. Meijer ([EMAIL PROTECTED]) Eindhoven Univ. of Technology Lab. for Catalysis and Inorg. Chem. (SKA)
Re: C programing
John Carline ([EMAIL PROTECTED]) wrote: After spending the last two days trying to convert a C program I wrote some 6 years ago in microsoft C into linux. I just have to echo this question. Is there no linux specific/best book that covers gcc and g++. One that includes all the standard library calls . I currently have four books on C (not the Kerninghan book though. I'll have to go look at it) and they're basically worthless. I'm not sure if it's that they're simply too old or too 'microsoft', but I'd love to find a book on gcc that would be a simple but complete reference for the occasional C programer. What I do is look for books that cover ANSI C and have less on M$ and more on UN*X. Its hard I know, but that's what I do when I need a new book. HTH, Ron -- = = Ronald Burnett Farrer = = - mailto:[EMAIL PROTECTED] - - http://www.magnesium.net/~rbf/; - !! ! If you let Windows dominate, expect the worst: ! ! WORLD.SYS is corrupt, reboot UNIVERSE Y/n! !! ??? ? How could this [Y2K Bug] be a problem in a country ? ? where we have Intel and Microsoft? -- Al Gore ? ???
Re: C programing
On Mon, Oct 25, 1999 at 10:07:28PM +, John Carline wrote: cut snip [cut again ...] After spending the last two days trying to convert a C program I wrote some 6 years ago in microsoft C into linux. I just have to echo this question. Is there no linux specific/best book that covers gcc and g++. One that includes all the standard library calls . I currently have four books on C (not the Kerninghan book though. I'll have to go look at it) and they're basically worthless. I'm not sure if it's that they're simply too old or too 'microsoft', but I'd love to find a book on gcc that would be a simple but complete reference for the occasional C programer. [ standard comment: please limit your line length to = 72 characters ] For a good general overview of the standard C library install the glibcdoc debian package, and type `info libc' (or use your favorite info reader). It is quite readable and has a lot of info on programming with ANSI standard C library functions and on typical unix programming stuff like pipes, regular expressions, sockets, process control. If you need to control character input from the keyboard and position the cursor in a terminal window, then install the ncurses development package and read the man page (man ncurses) which is rather elaborate. HTH, Eric -- E.L. Meijer ([EMAIL PROTECTED]) Eindhoven Univ. of Technology Lab. for Catalysis and Inorg. Chem. (SKA)
Re: C programing
On Mon, Oct 25, 1999 at 10:07:28PM +, John Carline wrote: Stephan Engelke wrote: How 'bout Kerninghan, Ritchie: The C Programming Language. Sorry, forgot the publisher. There's a score of other good, allright, and bad books around. Check your local bookstore. After spending the last two days trying to convert a C program I wrote some 6 years ago in microsoft C into linux. I just have to echo this question. Is there no linux specific/best book that covers gcc and g++. One that includes all the standard library calls . I currently have four books on C (not the Kerninghan book though. I'll have to go look at it) and they're basically worthless. I'm not sure if it's that they're simply too old or too 'microsoft', but I'd love to find a book on gcc that would be a simple but complete reference for the occasional C programer. Kerninghan/Ritchie do not cover gcc as such - even though most of their examples are take from a UNIX system and some are based on UNIX systems. The C Programming Language is IMHO a book to learn the basics from. It's not the book you want to read to assist you in porting software from one system to another. For special needs regarding Linux systems refer to the library's info-documentation. So long -- Stephan -- Stephan Engelke[EMAIL PROTECTED]
Re: C programing
I have been reading the Linux Programming published by WROX press. It is a great set of books from Beginner to MasterClass. On Mon, 25 Oct 1999, John Carline wrote: Stephan Engelke wrote: Hi, On Mon, Oct 25, 1999 at 01:30:34PM +0200, Benak Istvan wrote: Someone tell me how can I find a doc about C programing (I downloaded the Programmer's Guide, but I can't programming under C, so I want to learn it!) So I need a doc for lammers! How 'bout Kerninghan, Ritchie: The C Programming Language. Sorry, forgot the publisher. There's a score of other good, allright, and bad books around. Check your local bookstore. cut snip After spending the last two days trying to convert a C program I wrote some 6 years ago in microsoft C into linux. I just have to echo this question. Is there no linux specific/best book that covers gcc and g++. One that includes all the standard library calls . I currently have four books on C (not the Kerninghan book though. I'll have to go look at it) and they're basically worthless. I'm not sure if it's that they're simply too old or too 'microsoft', but I'd love to find a book on gcc that would be a simple but complete reference for the occasional C programer. O'Reilly are you listening?? John --- Powered by the Penguin -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
Re: C programing
Ingles, Raymond wrote: On Mon, Oct 25, 1999 at 10:07:28PM +, John Carline wrote: [...] After spending the last two days trying to convert a C program I wrote some 6 years ago in microsoft C into linux. I just have to echo this question. This sort of question pops up on the C newsgroups and mailing lists a lot. There *is* no ANSI C way to, for example, clear the screen. The DOS functions from conio.h are completely separate from the C standard. (Indeed, they are heavily tied to real-mode 8086 and CGA/VGA graphics and PC hardware, and often can't even be *emulated* well on other hardware.) Yup! you've just described my plight. Naturally my code is *heavy* in calls to conio.h and graph.h. Thanks to all who responded with advice. I guess it's time to do some more reading. ;-) John -- Powered by the Penguin
Re: C programing
Hi, On Mon, Oct 25, 1999 at 01:30:34PM +0200, Benak Istvan wrote: Someone tell me how can I find a doc about C programing (I downloaded the Programmer's Guide, but I can't programming under C, so I want to learn it!) So I need a doc for lammers! How 'bout Kerninghan, Ritchie: The C Programming Language. Sorry, forgot the publisher. There's a score of other good, allright, and bad books around. Check your local bookstore. Cheers, Stephan -- Stephan Engelke[EMAIL PROTECTED] *** Soft drugs lead to hard drugs: You start with Marihuana and by the end of the night you'll be eating Big Macs.***
Re: C programing
Stephan Engelke wrote: Hi, On Mon, Oct 25, 1999 at 01:30:34PM +0200, Benak Istvan wrote: Someone tell me how can I find a doc about C programing (I downloaded the Programmer's Guide, but I can't programming under C, so I want to learn it!) So I need a doc for lammers! How 'bout Kerninghan, Ritchie: The C Programming Language. Sorry, forgot the publisher. There's a score of other good, allright, and bad books around. Check your local bookstore. cut snip After spending the last two days trying to convert a C program I wrote some 6 years ago in microsoft C into linux. I just have to echo this question. Is there no linux specific/best book that covers gcc and g++. One that includes all the standard library calls . I currently have four books on C (not the Kerninghan book though. I'll have to go look at it) and they're basically worthless. I'm not sure if it's that they're simply too old or too 'microsoft', but I'd love to find a book on gcc that would be a simple but complete reference for the occasional C programer. O'Reilly are you listening?? John --- Powered by the Penguin