Hi! I want to execute a method without pressing the enter key, what I want to do is get the press key an save it in an array while the user is typing, but I dont know how to execute an event without pressing the enter key
here is my code:
void productor(){
char tecla=getchar();
while (contador<50){
buffer[contador]=tecla;
contador++;
}
}