Results 1 to 5 of 5

Thread: I quit...

  1. #1

    Thread Starter
    Banned
    Join Date
    Feb 2001
    Location
    Back to sh*tland
    Posts
    294

    I quit...

    This code doesn't work:
    Code:
    #include <iostream.h>
    #include <conio.h>
    
    void main(){
     	cout<<"Press any key."<<endl;
    	getch();
    }
    It gives me one error: implicit declaration of function `int getchar(...)'
    I'm in a point of blaming my header files or my compiler. I'm using Dev-C++4.
    I also tried getchar();, a=getch(); with a as an integer. I don't know what to do more.

    I've tried also other examples posted in the forum and I saw other guy having the same problem as me. http://161.58.186.97/showthread.php?...ighlight=getch
    No one replied though.

  2. #2
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    It works perfectly in VC++. Try this though:
    Code:
    int a
    getch(a);
    don't know if that will work but its worth a shot. I haven't gotten getch to work in some other compilers either. Thats why I use VC++.

    Good Luck

  3. #3

    Thread Starter
    Banned
    Join Date
    Feb 2001
    Location
    Back to sh*tland
    Posts
    294
    Doesn't work with me. It was a luck for to get VB 6 in a perfectly legal way, I didn't say it was illegal, I said it was legal, yes, legal.*ahem*

  4. #4
    Addicted Member
    Join Date
    Aug 2000
    Posts
    181
    where did you "legally" get VB6 from? And would it be possible for you to tell me the Product ID so i can download VSI??? If so, you can email it to me [email protected]

  5. #5
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Ask Dennis if you want VSI, he'll sort it out for you
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width