Fortran Press Any Key to Continue
Press any key to continue?
Press any key to continue?
Author | Message |
---|---|
Press any key to continue? Sorry if this is a stupid question, but how do you do a "Press any key | |
Wed, 15 Sep 2010 09:33:50 GMT | |
Press any key to continue? Quote: > Sorry if this is a stupid question, but how do you do a "Press any key the answer varies by compiler. tell us which you use (and off chance -- Gary Scott fortran Library: http://www.fortranlib.com Support the Original G95 Project: http://www.g95.org If you want to do the impossible, don't hire an expert because he knows -- Henry Ford | |
Wed, 15 Sep 2010 10:37:43 GMT | |
Press any key to continue? Quote: >Sorry if this is a stupid question, but how do you do a "Press any key Why not just "Press RETURN to continue" ? People do seem to have trouble with the "any key" anyway :-) pozdrav | |
Wed, 15 Sep 2010 11:02:40 GMT | |
Press any key to continue? Quote: >>Sorry if this is a stupid question, but how do you do a "Press any key > Why not just "Press RETURN to continue" ? > People do seem to have trouble with the "any key" anyway :-) I always liked 'Q' for "quit". Quote: > pozdrav -- Gary Scott Fortran Library: http://www.fortranlib.com Support the Original G95 Project: http://www.g95.org If you want to do the impossible, don't hire an expert because he knows -- Henry Ford | |
Wed, 15 Sep 2010 11:08:28 GMT | |
Press any key to continue? Quote: > >Sorry if this is a stupid question, but how do you do a "Press any key > Why not just "Press RETURN to continue" ? Because I'm working on a homework which we are supposed to translate a Do Until Len(Inkey$): Loop It doesn't have to be a direct equivalent in code, but it should work | |
Wed, 15 Sep 2010 11:31:28 GMT | |
Press any key to continue? Quote: > > >Sorry if this is a stupid question, but how do you do a "Press any key > > Why not just "Press RETURN to continue" ? > Because I'm working on a homework which we are supposed to translate a > Do Until Len(Inkey$): Loop > It doesn't have to be a direct equivalent in code, but it should work FORTRAN does not actually even require your computer to have a #include <curses.h> int main() { initscr(); c = getch(); return 0; Quote: } To make a c function that is accessible in fortran, you put an void initscr_() { initscr(); } then you can do PROGRAM WHATEVER g77 whatever.f -c and that should work. | |
Thu, 16 Sep 2010 09:32:38 GMT | |
Press any key to continue? Quote: >>> Sorry if this is a stupid question, but how do you do a "Press any key > Because I'm working on a homework which we are supposed to translate a Interesting exercise. The instructor has you translating from one | |
Thu, 16 Sep 2010 21:30:00 GMT | |
Press any key to continue? Quote: > Interesting exercise. The instructor has you translating from one Yup. You can say that. :) | |
Thu, 16 Sep 2010 21:58:48 GMT | |
Press any key to continue? Quote: >>> Sorry if this is a stupid question, but how do you do a "Press any key > Because I'm working on a homework which we are supposed to translate a > Do Until Len(Inkey$): Loop > It doesn't have to be a direct equivalent in code, but it should work I think you might be able to use the getchar() function from the C library. print *,'Press any key to continue...' You will need to compile with a special option, i.e. | |
Thu, 16 Sep 2010 22:51:13 GMT | |
Press any key to continue? Quote: > I think you might be able to use the getchar() function from the C library. > print *,'Press any key to continue...' > You will need to compile with a special option, i.e. I'm sorry it didn't help. It was still asking for an Enter after any | |
Fri, 17 Sep 2010 09:22:28 GMT | |
Press any key to continue? Quote: >>I think you might be able to use the getchar() function from the C library. >> print *,'Press any key to continue...' >>You will need to compile with a special option, i.e. > I'm sorry it didn't help. It was still asking for an Enter after any Is there an equivalent peekchar()? In some compilers I remember a -- Gary Scott Fortran Library: http://www.fortranlib.com Support the Original G95 Project: http://www.g95.org If you want to do the impossible, don't hire an expert because he knows -- Henry Ford | |
Fri, 17 Sep 2010 09:37:14 GMT | |
Press any key to continue? (snip) Quote: > I'm sorry it didn't help. It was still asking for >an Enter after any key was pressed. :( You need something like getch(), which in unix is part This is not part of the Fortran standard, but your -- glen | |
Fri, 17 Sep 2010 10:30:03 GMT | |
Press any key to continue? Quote: >> Sorry if this is a stupid question, but how do you do a "Press any key > Why not just "Press RETURN to continue" ? > People do seem to have trouble with the "any key" anyway :-) My keyboard doesn't even *have* an "Any" key. cheers, paulv p.s. My keyboard also doesn't have a "Return" key. p.p.s. :o) | |
Fri, 17 Sep 2010 22:19:38 GMT | |
Press any key to continue? Quote: > > Why not just "Press RETURN to continue" ? > > People do seem to have trouble with the "any key" anyway :-) > My keyboard doesn't even *have* an "Any" key. > cheers, > paulv > p.s. My keyboard also doesn't have a "Return" key. > p.p.s. :o) I'd just want to add: when I was new using computers, I never had However I did have trouble finding the RETURN key. I had an ENTER key, At least telling a user to press "any" key had double meaning; one may | |
Sat, 18 Sep 2010 00:13:48 GMT | |
Press any key to continue? Quote: >>> Sorry if this is a stupid question, but how do you do a "Press any key >> Why not just "Press RETURN to continue" ? >> People do seem to have trouble with the "any key" anyway :-) > My keyboard doesn't even *have* an "Any" key. If you go to tacky enough gift shops, you can buy one. I have a Dick Hendrickson p.s. And yes, it was hard to glue the white letters to the keyboard! Quote: > cheers, > paulv > p.s. My keyboard also doesn't have a "Return" key. > p.p.s. :o) | |
Sat, 18 Sep 2010 00:14:18 GMT | |
Page 1 of 3 | [ 30 post ] | Go to page: [1] [2] [3] |
Source: http://computer-programming-forum.com/49-fortran/14e327a6c6ec9db8.htm
0 Response to "Fortran Press Any Key to Continue"
Post a Comment