Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 A couple of questions about C?
Index -> Programming, C -> C Help
Goto page 1, 2, 3, 4, 5  Next
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
php111




PostPosted: Fri Jan 02, 2009 11:03 pm   Post subject: A couple of questions about C?

1.) Would anyone refer C Primer Plus 5th editions for beginners?

2.) The reason why I stopped with C is because I refuse command line. I wasn't understanding it. I found it to hard. I gave up on a member in PM on here. He offered to try DrScheme, and a couple of others for GUI. I would really like to stick with one GUI app. Would DrScheme be good to learn from?

3.) What is a list of books to read and learn to understand C, starting from the basics to advanced? Like when would C Complete Reference would come in?

4.) What is the full name for the K&R book? I am aware it's honestly not to learn from. It's the writer or maker of C. I would like to know what is the full name of the book.

Thank you if someone can answer all 4 of my questions.
Sponsor
Sponsor
Sponsor
sponsor
Vertico




PostPosted: Fri Jan 02, 2009 11:52 pm   Post subject: RE:A couple of questions about C?

2. Take a few days to learn how to use command prompt. It may seem daunting at first, but when you get to know it, you'll begin to like it. Also, you could always considering moving over to Linux, but that another story.

3. The only C book I have is called "A book on C". It starts from the very beginning and moves all the way through. I would recommend it.
php111




PostPosted: Fri Jan 02, 2009 11:59 pm   Post subject: Re: RE:A couple of questions about C?

Vertico @ Fri Jan 02, 2009 11:52 pm wrote:
2. Take a few days to learn how to use command prompt. It may seem daunting at first, but when you get to know it, you'll begin to like it. Also, you could always considering moving over to Linux, but that another story.

3. The only C book I have is called "A book on C". It starts from the very beginning and moves all the way through. I would recommend it.


I tried the command line. I really don't like it. Would you recommend DrScheme, or something else?
wtd




PostPosted: Sat Jan 03, 2009 12:41 am   Post subject: RE:A couple of questions about C?

Ironically, DrScheme gives you another command-line of sorts in the form of its REPL (read-eval-print-loop).

But yes, Scheme is an awesome learning tool.
md




PostPosted: Sat Jan 03, 2009 3:23 am   Post subject: RE:A couple of questions about C?

Dr.Scheme is also not C Wink

The "K&R book" is called "The C Programming Language", by Kernighan & Ritchie. ISBN 0-13-110362-8 (Second edition), Published by Prentice Hall.
btiffin




PostPosted: Sat Jan 03, 2009 9:34 am   Post subject: RE:A couple of questions about C?

php11;

This might sound a little harsh. Dig in, grit your teeth and figure out the command line. Developers need to know CLI's.

Not knowing a command line interface (or two, or nine, or fifty) and using the crutch of a GUI is like trying to be a Writer without knowing the alphabet; really.

And md is correct, DrScheme is a Lisp language derivative, not C.

Dig in; get used to the command line and pick up a copy of Ch. Learn C by interacting with C. Then get gcc and sling code through a compiler.

Persistence is not futile.
Cheers
php111




PostPosted: Sat Jan 03, 2009 10:42 am   Post subject: Re: A couple of questions about C?

I tried to write hello, world

I get an error. Here is a copy of my output.



code:
                                   Ch
                  Standard edition, version 6.1.0.13691
              (C) Copyright 2001-2008 SoftIntegration, Inc.
                     http://www.softintegration.com
H:/Documents and Settings/baseball> hello, world
ERROR: variable 'hello,' not defined
ERROR: command 'hello,' not found
H:/Documents and Settings/baseball>


Vertico




PostPosted: Sat Jan 03, 2009 11:39 am   Post subject: Re: A couple of questions about C?

Can you show the code you tried to compile
Sponsor
Sponsor
Sponsor
sponsor
php111




PostPosted: Sat Jan 03, 2009 12:02 pm   Post subject: Re: A couple of questions about C?

Vertico @ Sat Jan 03, 2009 11:39 am wrote:
Can you show the code you tried to compile


I just tried hello, world. I don't know how to compile via command line. I was reading the Ch docs up to the hello, world. I don't understand it.
wtd




PostPosted: Sat Jan 03, 2009 1:48 pm   Post subject: RE:A couple of questions about C?

Compiling and running "Hello, world" is really quite simple. Assuming you have your code in a file called hello_world.c:

code:
C:\> gcc hello_world.c -o hello_world.exe

C:\> hello_world
Hello, world!

C:\>
php111




PostPosted: Sat Jan 03, 2009 1:53 pm   Post subject: Re: A couple of questions about C?

I still don't understand how to run it. It's not simple. If it was simple then why didn't it run for me? Why am I getting errors? It means it's not simple.

I stated this more then enough times. I state again, command line is NOT for me. Period. I don't understand it. I posted the message I got.
wtd




PostPosted: Sat Jan 03, 2009 2:53 pm   Post subject: RE:A couple of questions about C?

What errors are you getting?
php111




PostPosted: Sat Jan 03, 2009 3:12 pm   Post subject: Re: A couple of questions about C?

php111 @ Sat Jan 03, 2009 10:42 am wrote:
I tried to write hello, world

I get an error. Here is a copy of my output.



code:
                                   Ch
                  Standard edition, version 6.1.0.13691
              (C) Copyright 2001-2008 SoftIntegration, Inc.
                     http://www.softintegration.com
H:/Documents and Settings/baseball> hello, world
ERROR: variable 'hello,' not defined
ERROR: command 'hello,' not found
H:/Documents and Settings/baseball>





That is the error in my quote.
michaelp




PostPosted: Sat Jan 03, 2009 3:19 pm   Post subject: RE:A couple of questions about C?

You have to actually make a file with C code in it to run it. And it shouldn't have spaces in it either. (The name of the file and executable)
Tony




PostPosted: Sat Jan 03, 2009 4:24 pm   Post subject: RE:A couple of questions about C?

just so that we are clear...
code:

hello, world

is not a valid C program.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, C -> C Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 5  [ 72 Posts ]
Goto page 1, 2, 3, 4, 5  Next
Jump to:   


Style:  
Search: