Message-Id: <3.0.6.32.19981002203408.02fab1d0@mail.geocities.com> X-Sender: john_meyer AT mail DOT geocities DOT com X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Fri, 02 Oct 1998 20:34:08 -0600 To: general-c-discussion AT makelist DOT com, djgpp AT delorie DOT com From: John Meyer Subject: Project Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Hi, I've got a project due in school. What the project is is to do the following: Accept and echo characters on screen using conio.h functions. Here's the catch, though. You have to accept three sentences, interpreting a sentence as whenever the return button is pressed, and you can't echo anything between two parentheses marks. Note: I DON'T WANT YOU TO SOLVE THE PROGRAM FOR ME. I like solving these things. I just need a push in the right direction. Here's what I got so far: #include void main() { int character_count, word_count; char store_char='a'; for (word_count = 1; word_count<=3; word_count++) { do { store_char=getche(); if (store_char='(') { putch('\b'); while (store_char != ')') { store_char=getch(); } } else character_count++; } while (store_char != '\r'); } } Any thoughts? --------------------------------------------------------------------------- John Meyer john_meyer AT geocities DOT com Life and Leisure Editor-USC Today http://www.uscolo.edu/usctoday "Anyone who fights for the future, lives in it today" -Ayn Rand "Bad Cop! No Donut!" ---------------------------------------------------------------------------