i need sm1 to help me with

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: May 2004
Posts: 19
Reputation: matika is an unknown quantity at this point 
Solved Threads: 0
matika matika is offline Offline
Newbie Poster

i need sm1 to help me with

 
0
  #1
Sep 28th, 2004
#define ENDFILE "CTRL-Z"

this end the file whenever the user enter CTRL-Z
what i need, i want the user 2 enter CTRL-X to end the program

#define ........ "CTRL-X" ( what could i write here)
so the program end whenever the user press CTRL-X
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 40
Reputation: coolmel55 is an unknown quantity at this point 
Solved Threads: 1
coolmel55 coolmel55 is offline Offline
Light Poster

Re: i need sm1 to help me with

 
0
  #2
Sep 28th, 2004
Are you using the

#ifndef CTRL-X_H
#define CTRL-X_H

#endif
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 4,393
Reputation: Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future 
Solved Threads: 244
Team Colleague
Dave Sinkula's Avatar
Dave Sinkula Dave Sinkula is offline Offline
long time no c

Re: i need sm1 to help me with

 
0
  #3
Sep 28th, 2004
Originally Posted by matika
#define ENDFILE "CTRL-Z"
You have them enter this text? Or are you meaning a single keystroke? (If you mean a keystroke, I'd guess you're not doing this right.)

Originally Posted by matika
what i need, i want the user 2 enter CTRL-X to end the program

#define ........ "CTRL-X" ( what could i write here)
so the program end whenever the user press CTRL-X
If you are trying to intercept keystrokes, you may be interested in signals.
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
Reply With Quote Quick reply to this message  
Join Date: May 2004
Posts: 19
Reputation: matika is an unknown quantity at this point 
Solved Threads: 0
matika matika is offline Offline
Newbie Poster

Re: i need sm1 to help me with

 
0
  #4
Sep 30th, 2004
hey tnx guys
i fixed the problem
tnx 4 yr effort
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC