Search Results

Search: Posts Made By: Jammer Six
Forum: OS X (Apple) 02-03-2010
10,659
Posted By Jammer Six
Okay, here we go. Life interfered, AGAIN,...
Okay, here we go.

Life interfered, AGAIN, with my programming.

This is the basic program, now I'm looking at the problems with printing the histogram vertically.

More planning, obviously....
Forum: OS X (Apple) 01-25-2010
10,659
Posted By Jammer Six
Oh, dear. I used more than two lines. I used...
Oh, dear.

I used more than two lines. I used more than two lines for the INTRODUCTION.

I re-wrote it this morning, with no functions.

Now it runs, but when you enter an EOF, it prints...
Forum: OS X (Apple) 01-25-2010
10,659
Posted By Jammer Six
Okay. :) You know this stuff awfully well....
Okay. :)

You know this stuff awfully well. You sound like you've been through it more than once. I don't remember textbooks I blew through ten years ago, let alone when K&R was written.

You...
Forum: OS X (Apple) 01-25-2010
10,659
Posted By Jammer Six
Okay, I've been working on 1-13. Once I...
Okay, I've been working on 1-13.

Once I broke it down into tasks, perhaps it isn't that difficult.

I have, perhaps, broken it down further than I needed to, but doing so helped me wrap my mind...
Forum: OS X (Apple) 01-20-2010
10,659
Posted By Jammer Six
Exercise 1-13, make a histogram. I would list my...
Exercise 1-13, make a histogram. I would list my problems, but ohmygod...
Forum: OS X (Apple) 01-18-2010
10,659
Posted By Jammer Six
I started thinking about what you said, and I...
I started thinking about what you said, and I realized that it doesn't matter.

The goal is to replace strings of blanks with single blanks, and then I realized I was over-thinking it, and making...
Forum: OS X (Apple) 01-17-2010
10,659
Posted By Jammer Six
Thank you, Franklin. I took your suggestion...
Thank you, Franklin.

I took your suggestion of a flag, and after wrestling with it for a few hours, came up with this:

/*
* copy.c
*
* Exercise 1-9. Write a program to copy it's input...
Forum: OS X (Apple) 01-16-2010
10,659
Posted By Jammer Six
Oh, for goodness sake. I see it. ...
Oh, for goodness sake.

I see it.

{sigh...}

So, it's not comparing anything in my code, it's assigning the values of space, tab and newline to the variable x, which is always successful, and,...
Forum: OS X (Apple) 01-15-2010
10,659
Posted By Jammer Six
Oh! The return character! Of course! duh... ...
Oh! The return character! Of course! duh...

Now, of course, I have another problem. I thought 1-8 would be easy, but not so much.

The code:

/*
* blank.c
*
* Exercise 1-8, write a...
Forum: OS X (Apple) 01-15-2010
10,659
Posted By Jammer Six
Okay, I'm back. :) I've been examining if. ...
Okay, I'm back. :)

I've been examining if.

For 1-6, I wrote this, thinking that perhaps I was just making it too complicated:

/*
* verify.c
*
* Exercise 1-6, Verify that the...
Forum: OS X (Apple) 01-14-2010
10,659
Posted By Jammer Six
Thanks to both of you. I see the problem...
Thanks to both of you.

I see the problem with the while loops.

I'll try the control-D combination, then I'll gnash my teeth and pull my hair for awhile on another way to test input.
Forum: OS X (Apple) 01-14-2010
10,659
Posted By Jammer Six
Text stream K&R exercises
Hello, ladies, gentlemen.

First I suppose I should introduce myself.

I've been poking at C since a long time ago, somewhere around 1990. (Don't misinterpret that. "Poking at C", in this...
Showing results 1 to 12 of 12

 
All times are GMT -4. The time now is 06:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy