J
JFS
I know most of you have probably read "The C Programming Language" (K&R)
at some point. Well here is something that is driving me crazy.
The exercises are impossible (most of them) for me to do. I am not even
done with the first chapter and I am already ripping out my hair trying
to get the exercises completed. It is driving me crazy and making me
very very angry. Here is an example of what I am talking about:
Chapter 1.6 Arrays
In this chapter a program that counts the digits, white spaces, and
others is introduced.. They go through the defining of an array (ndigit
= [10], yadda yadda), fairly simple stuff. They also give a very good
explaination of statement and condition testing for if's and else's.
These are the exercises.
"Exercise 1-13 Write a program to print a histogram of the lengths of
words in its input. It is easy to draw the histogram with the bars
horizontal; a vertical orientation is more challenging."
Ok , I am going through the book very slowly and I think I have just
enough comprehension to get the first part of the exercise right. BUT
they have gone over absolutley nothing about histograms , graphs , or
even damn tables of data. How in the world do they expect me to be able
to print the output in a histogram?
"Exercise 1-14 Write a program to print a histogram of the frequencies
of different characters in its output."
I can't even comprehend that one. It really makes me feel like a moron.
Honestly I don't even have enough comprehension to write a program that
measures the lengths of words. I thought I could go about it but
everything I tried doesn't work at all and I just can't do it. I am
beginning to think I am an idiot and programming may not be right for
me. Hell , I can't even finish the exercises in Chapter 1 of this book.
at some point. Well here is something that is driving me crazy.
The exercises are impossible (most of them) for me to do. I am not even
done with the first chapter and I am already ripping out my hair trying
to get the exercises completed. It is driving me crazy and making me
very very angry. Here is an example of what I am talking about:
Chapter 1.6 Arrays
In this chapter a program that counts the digits, white spaces, and
others is introduced.. They go through the defining of an array (ndigit
= [10], yadda yadda), fairly simple stuff. They also give a very good
explaination of statement and condition testing for if's and else's.
These are the exercises.
"Exercise 1-13 Write a program to print a histogram of the lengths of
words in its input. It is easy to draw the histogram with the bars
horizontal; a vertical orientation is more challenging."
Ok , I am going through the book very slowly and I think I have just
enough comprehension to get the first part of the exercise right. BUT
they have gone over absolutley nothing about histograms , graphs , or
even damn tables of data. How in the world do they expect me to be able
to print the output in a histogram?
"Exercise 1-14 Write a program to print a histogram of the frequencies
of different characters in its output."
I can't even comprehend that one. It really makes me feel like a moron.
Honestly I don't even have enough comprehension to write a program that
measures the lengths of words. I thought I could go about it but
everything I tried doesn't work at all and I just can't do it. I am
beginning to think I am an idiot and programming may not be right for
me. Hell , I can't even finish the exercises in Chapter 1 of this book.