Yes, Borland C++ for DOS. Program of quicksort and there seem to be something wrong with the recursion.
Type: Posts; User: xianjianwuhen
Yes, Borland C++ for DOS. Program of quicksort and there seem to be something wrong with the recursion.
When I run my program, NTVDM CPU encountered an illegal instruction, why does this happen? CS:8eb0 IP:fd9c OP:8c fd 8c fd 98
I see... I am clear now, thank all of you for answering.
Why main should return something here?
I see...Thanks. But I wonder why this problem occurs. Since "enter" is interpreted as a escape character \n , it's not quite reasonable. However, I accept it now. Thank both of you again.
I don't think the value of EOF matters here. If you must know, it is -1.
Have you tried this program on your computer?
When I run the following program, I don't know how to terminate, it always requires me to enter something...
#include<stdio.h>
void main()
{
int c=getchar();
while(c!=EOF)
{
...