Re: beginner c questions
- From: "Mike Wahler" <mkwahler@xxxxxxxxxxxx>
- Date: Thu, 03 Nov 2005 02:15:53 GMT
"matt" <mweppler@xxxxxxxxx> wrote in message
news:1130983167.023730.94340@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> > If I cant even express it in english, no way I can do it in any other
>> > language.
>
>> The exercise (as I understand it) asked for C syntax.
>
> I just read the chapter again and if they are not asking for it in
> english I need a new book. There is no reference anywhere in this
> chapter for converting a decimal to exponential, octal or hex. The only
> thing I get from this chapter is printing formatted text to the screen.
> In which case I would need to print strings printf(""); in english(...I
> think).
>
>
>> If you're having trouble with arithmetical concepts, perhaps you should
>> start with that before programming.
>
> I have limited experence with binary and no experence with octal or hex
> but have googled and think ive have a grip.
Good. Make sure you do understand at least binary and hex,
octal isn't used quite so much (but should come easily once
you understand the general concepts of number bases). Good
exercises to solidify that knowledge is to practice converting
among those number bases (2 (binary), 8 (octal), 10 (decimal),
and 16 (hexadecimal).)
>> >Maybe I wasnt clear on what I was asking in the first place
>>
>> I think it was clear. You posted questions from your book.
>> I would be astounded if the knowledge needed to answer them
>> were not in the same chapter as they are. However, as I
>> note in my other post, I believe that book is not a good
>> one for the beginner.
>
> Could you recommend a book?
You should read the reviews at www.accu.org for which I gave
the link in another message in this thread. Surprisingly to
me, the book I'd recommend isn't listed there: Kernighan
and Ritchie, "The C Programming Language" Second Edition.
It's the one I learned with, oh so many eons ago. :-)
Also don't feel you should restrict yourself to a single
book. Often seeing the perspectives of different authors
about the same subject can help greatly.
-Mike
.
- Follow-Ups:
- Re: beginner c questions
- From: matt
- Re: beginner c questions
- References:
- beginner c questions
- From: matt
- Re: beginner c questions
- From: Keith Thompson
- Re: beginner c questions
- From: matt
- Re: beginner c questions
- From: Mike Wahler
- Re: beginner c questions
- From: matt
- Re: beginner c questions
- From: Mike Wahler
- Re: beginner c questions
- From: matt
- beginner c questions
- Prev by Date: Re: Writing a for loop
- Next by Date: Re: variable sized unions
- Previous by thread: Re: beginner c questions
- Next by thread: Re: beginner c questions
- Index(es):
Relevant Pages
|
Loading