• Member Avatar for mohammad reza_1
    mohammad reza_1

    Replied To a Post in ctrl-z to end loop

    here is a code to read an array of characters until user press CTRL+C void read_ctrl_z(char *x){ int i = 0; while (true) { x[i++] = getch(); if(x[i-1] == 26) …
  • Member Avatar for mohammad reza_1
    mohammad reza_1

    Began Watching ctrl-z to end loop

    I would like to have the user enter ctrl-z to end the program...can someone tell me how to insert this into the following program? [CODE]//Program to calculate greatest common denominator …

The End.