> my program can pass the compile and link. but when I execute it, the
> dos window shows the following error:
> ===================
> run-time error M6201: MATH
> -sqrt: DOMAIN error
> Image PC Routine Line Source
> GSR.exe 004146B9 unknown unknown unknown
> kernel32.dll 7C816FD7 unknown unknown unknown
> Incrementally linked image--PC correlation disabled
> ===================
> I don't know how to do with the above information. Thanks in advance
> for your help.
> Thanks,
> Wenbin
Most probably, since the error message indicates that it failed with Look in your source code for places where sqrt() is used. Then try
to identify if there are situations where its argument might be
negative.