|
From: Gary W. <wa...@ee...> - 2008-03-12 17:25:42
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
kbhit() only returns true or false, not the key. Try<br>
while (1){<br>
if (kbhit())<br>
printf("key press: %d\n",getch());<br>
}<br>
Gary Watson<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:dev...@li...">dev...@li...</a> wrote:
<blockquote
cite="mid:mai...@li..."
type="cite">
<pre wrap="">Send Dev-cpp-users mailing list submissions to
<a class="moz-txt-link-abbreviated" href="mailto:dev...@li...">dev...@li...</a>
To subscribe or unsubscribe via the World Wide Web, visit
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/dev-cpp-users">https://lists.sourceforge.net/lists/listinfo/dev-cpp-users</a>
or, via email, send a message with subject or body 'help' to
<a class="moz-txt-link-abbreviated" href="mailto:dev...@li...">dev...@li...</a>
You can reach the person managing the list at
<a class="moz-txt-link-abbreviated" href="mailto:dev...@li...">dev...@li...</a>
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Dev-cpp-users digest..."
Today's Topics:
1. kbhit() (frederico schardong)
2. Re: kbhit() (Michal Molhanec)
3. Int. J. of Tomography & Statistics, Special Issue on Image
Processing - Call for papers (Jo?o Manuel R. S. Tavares)
4. computing info (KSB1265)
5. Re: computing info (Per Westermark)
6. Re: computing info (Vamsi Krishna Karamsetty)
7. Dev-cpp Book (sam Ruma)
8. Dev-cpp Book (sam Ruma)
----------------------------------------------------------------------
Message: 1
Date: Mon, 3 Mar 2008 16:21:32 -0300
From: "frederico schardong" <a class="moz-txt-link-rfc2396E" href="mailto:fre...@gm..."><fre...@gm...></a>
Subject: [Dev-C++] kbhit()
To: <a class="moz-txt-link-abbreviated" href="mailto:dev...@li...">dev...@li...</a>
Message-ID:
<a class="moz-txt-link-rfc2396E" href="mailto:c8f...@ma..."><c8f...@ma...></a>
Content-Type: text/plain; charset="iso-8859-1"
look this:
main(){
int a;
while (1){
if (a=kbhit())
printf("key press: %d",(char)a);
}
}
I need that: the program show me which keys are pressed in speed it reads..
I was tried some alternatives and no work.. one is at the top of the page..
What's happening is.. any key I press, printf go to the work and not
pause... if I don't press not, nothing works..
sugestions?
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 2
Date: Mon, 03 Mar 2008 22:43:52 +0100
From: Michal Molhanec <a class="moz-txt-link-rfc2396E" href="mailto:mi...@mo..."><mi...@mo...></a>
Subject: Re: [Dev-C++] kbhit()
To: frederico schardong <a class="moz-txt-link-rfc2396E" href="mailto:fre...@gm..."><fre...@gm...></a>
Cc: <a class="moz-txt-link-abbreviated" href="mailto:dev...@li...">dev...@li...</a>
Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:47C...@mo..."><47C...@mo...></a>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
frederico schardong napsal(a):
</pre>
<blockquote type="cite">
<pre wrap="">look this:
main(){
int a;
while (1){
if (a=kbhit())
printf("key press: %d",(char)a);
}
}
I need that: the program show me which keys are pressed in speed it reads..
I was tried some alternatives and no work.. one is at the top of the page..
What's happening is.. any key I press, printf go to the work and not
pause... if I don't press not, nothing works..
sugestions?
</pre>
</blockquote>
<pre wrap=""><!---->
the function you need to use is getch(), not kbhit()
------------------------------
Message: 3
Date: Thu, 6 Mar 2008 15:24:36 -0000
From: Jo?o Manuel R. S. Tavares <a class="moz-txt-link-rfc2396E" href="mailto:ta...@fe..."><ta...@fe...></a>
Subject: [Dev-C++] Int. J. of Tomography & Statistics, Special Issue
on Image Processing - Call for papers
To: <a class="moz-txt-link-rfc2396E" href="mailto:dev...@li..."><dev...@li...></a>
Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:0e7e01c87f9e$2fc921d0$8f5b6570$@up.pt"><0e7e01c87f9e$2fc921d0$8f5b6570$@up.pt></a>
Content-Type: text/plain; charset="iso-8859-1"
(Our apologies for cross-posting.
We appreciate if you kindly distribute this information by your co-workers
and colleagues.)
****************************************************************************
*******
Special issue on Image Processing
Gest Editors: Jo?o Manuel R. S. Tavares & Renato M. Natal Jorge ? UP -
Portugal
International Journal of Tomography & Statistics
ISSN 0973-7294 (Online) - 0972-9976 (Print)
<a class="moz-txt-link-freetext" href="http://www.isder.ceser.res.in/ijts.html">http://www.isder.ceser.res.in/ijts.html</a>
****************************************************************************
*******
Dear Colleague,
This special issue of the International Journal of Tomography & Statistics
(IJT&S) is devoted to promote a broad exchange of information on
technologies, applications, operations and quality assurance in the areas of
Computed Tomography, Statistics as well as of Image Processing.
This special issue on Image Processing is an opportunity for users,
scientists, image equipment suppliers and all who are interested to present
their works on image detectors and acquisition systems, signal processing,
image processing and analysis, medical imaging, pattern analysis and
recognition, volume scanning and reconstruction, features extraction and
classification, telemedicine, virtual and augmented reality, enhanced
computation and software applications of image processing.
Thus, if you are working on the related areas of the special issue ?Image
Processing?, It is an honour to invite you to submit your work to be
published in the IJT&S.
Important Dates and Instructions:
Deadline for papers submission: 30/06/2008;
Authors notification: 15/09/2008;
Final version of accepted papers: 1/11/2008;
If you intend to submit your work please notify as soon as possible the
guest editors of your intention (<a class="moz-txt-link-abbreviated" href="mailto:ta...@fe...">ta...@fe...</a>, <a class="moz-txt-link-abbreviated" href="mailto:rn...@fe...">rn...@fe...</a>);
Papers for the special issue should be sent to the guest editors
(<a class="moz-txt-link-abbreviated" href="mailto:ta...@fe...">ta...@fe...</a>, <a class="moz-txt-link-abbreviated" href="mailto:rn...@fe...">rn...@fe...</a>);
Instructions for authors are available at:
<a class="moz-txt-link-freetext" href="http://www.isder.ceser.res.in/ijts/instr4a.html">http://www.isder.ceser.res.in/ijts/instr4a.html</a>.
With kind regards,
Yours sincerely
The Guest Editors
Jo?o Manuel R. S. Tavares (<a class="moz-txt-link-abbreviated" href="mailto:ta...@fe...">ta...@fe...</a>)
Renato M. Natal Jorge (<a class="moz-txt-link-abbreviated" href="mailto:rn...@fe...">rn...@fe...</a>)
University of Porto, Portugal
------------------------------
Message: 4
Date: Mon, 10 Mar 2008 12:51:37 -0400
From: KSB1265 <a class="moz-txt-link-rfc2396E" href="mailto:ks...@ao..."><ks...@ao...></a>
Subject: [Dev-C++] computing info
To: <a class="moz-txt-link-abbreviated" href="mailto:dev...@li...">dev...@li...</a>
Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:7fd...@ao..."><7fd...@ao...></a>
Content-Type: text/plain; charset="us-ascii"
Hey all:
I am writing a program using C++ that computes employee info. How do I calculate the oldest employee and the employee with the most tax? I am also having a problem calculating the taxes. I have been trying with this for a while now. Please help. Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 5
Date: Mon, 10 Mar 2008 18:09:58 +0100 (CET)
From: Per Westermark <a class="moz-txt-link-rfc2396E" href="mailto:pw...@ia..."><pw...@ia...></a>
Subject: Re: [Dev-C++] computing info
To: KSB1265 <a class="moz-txt-link-rfc2396E" href="mailto:ks...@ao..."><ks...@ao...></a>
Cc: <a class="moz-txt-link-abbreviated" href="mailto:dev...@li...">dev...@li...</a>
Message-ID:
<a class="moz-txt-link-rfc2396E" href="mailto:Pin...@ia..."><Pin...@ia...></a>
Content-Type: TEXT/PLAIN; charset=US-ASCII
You really do have to add more information. Especially since you want help
with your school assignment.
What have you tried?
What did happen?
What did you expect to happen?
By the way - why not a plain text mail, instead of sending your text as
both text and HTML?
/pwm
On Mon, 10 Mar 2008, KSB1265 wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hey all:
I am writing a program using C++ that computes employee info. How do I calculate the oldest employee and the employee with the most tax? I am also having a problem calculating the taxes. I have been trying with this for a while now. Please help. Thanks.
</pre>
</blockquote>
<pre wrap=""><!---->
------------------------------
Message: 6
Date: Mon, 10 Mar 2008 14:28:37 -0500
From: "Vamsi Krishna Karamsetty" <a class="moz-txt-link-rfc2396E" href="mailto:vam...@gm..."><vam...@gm...></a>
Subject: Re: [Dev-C++] computing info
To: KSB1265 <a class="moz-txt-link-rfc2396E" href="mailto:ks...@ao..."><ks...@ao...></a>
Cc: <a class="moz-txt-link-abbreviated" href="mailto:dev...@li...">dev...@li...</a>
Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:814...@ma..."><814...@ma...></a>
Content-Type: text/plain; charset="iso-8859-1"
hi
do u have the date of joining for each employee. if your answer is yes, then
the one who joined first will be the oldest employee. and about the tax u
need to calculate all with the employee salary and the number of years or
days he is working.
On Mon, Mar 10, 2008 at 11:51 AM, KSB1265 <a class="moz-txt-link-rfc2396E" href="mailto:ks...@ao..."><ks...@ao...></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap=""> Hey all:
I am writing a program using C++ that computes employee info. How do I
calculate the oldest employee and the employee with the most tax? I am also
having a problem calculating the taxes. I have been trying with this for a
while now. Please help. Thanks.
------------------------------
Supercharge your AIM. Get the AIM toolbar<a class="moz-txt-link-rfc2396E" href="http://download.aim.com/client/aimtoolbar?NCID=aolcmp00300000002586"><http://download.aim.com/client/aimtoolbar?NCID=aolcmp00300000002586></a>for your browser.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
<a class="moz-txt-link-freetext" href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a>
_______________________________________________
Dev-cpp-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dev...@li...">Dev...@li...</a>
TO UNSUBSCRIBE: <a class="moz-txt-link-freetext" href="http://www23.brinkster.com/noicys/devcpp/ub.htm">http://www23.brinkster.com/noicys/devcpp/ub.htm</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/dev-cpp-users">https://lists.sourceforge.net/lists/listinfo/dev-cpp-users</a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
</body>
</html>
|