Hi folks,
I have compiled and executed the code listed below, only to find that it crashed my MS-DOS prompt.
I would greatly appreciate any help from someone who knows where the error is. It comiles fine, with no errors or warning.
Code:/* interface.c: The include functions designed to control the I/O of the PowerMath System */ #include <stdio.h> mathInput() { int x; int input; char progInput[x]; do { x=1; progInput[x]=getc( stdin ); progInput[x]=input; x=x+1; } while (input!=10); } int main() { mathInput(); return 0; }