c - What's wrong with my program (getch function)? -


i'm learning c programming language & while doing practicing faced error getch() function!

here's code :

    #include <stdio.h> #include <stdlib.h>  int main(){     int size = 6;     int markers[size];     int counter;      (counter = 0; counter < size; counter++){         scanf("%d",&markers[counter]);     }      (counter=0; counter < size; counter++){         printf("the element @ %d %d\n",counter,markers[counter]);     }     getch();     return 0; } 

getch() not ansi c function. need include header file <conio.h> use it. or best of all, use ansi conformant function getchar().


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -