PDA

Click to See Complete Forum and Search --> : I quit...


Good Dreams
Jun 8th, 2001, 05:14 AM
This code doesn't work:#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?s=&threadid=68125&highlight=getch
No one replied though.

SteveCRM
Jun 8th, 2001, 05:54 AM
It works perfectly in VC++. Try this though:

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 :)

Good Dreams
Jun 8th, 2001, 05:59 AM
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*

adamcox
Jun 8th, 2001, 06:51 AM
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 adamcox@gtonline.net

parksie
Jun 8th, 2001, 06:47 PM
Ask Dennis if you want VSI, he'll sort it out for you :)