早教吧作业答案频道 -->其他-->
VS2012中调用类似fabs()和sqrt()函数,参数为double类型数函数有效,参数为变量或者复杂的数学表达式无效调试的时候一遇到这类数学函数都会有如下提示:(以sqrt函数为例)You need to find sqrt.asm to
题目详情
VS2012中调用类似fabs()和sqrt()函数,参数为double类型数函数有效,参数为变量或者复杂的数学表达式无效
调试的时候一遇到这类数学函数都会有如下提示:(以sqrt函数为例)
You need to find sqrt.asm to view the source for the current call stack frame
Try one of the following options:
-Browse and find sqrt.am...
You can view disassembly in the Disassembly window. To always view disassembly for missing source files,change the setting in the Option dialog.
Source search information
Locating source for 'f:\dd\vctools\crt_bld\SELF_X86\crt\prebuild\tran\i386\sqrt.asm'. Checksum: MD5 {dd e7 2b 95 3a 36 c9 63 55 5e 42 7 b1 83 9a 8d}
The file 'f:\dd\vctools\crt_bld\SELF_X86\crt\prebuild\tran\i386\sqrt.asm' does not exist.
Looking in script documents for 'f:\dd\vctools\crt_bld\SELF_X86\crt\prebuild\tran\i386\sqrt.asm'...
Looking in the projects for 'f:\dd\vctools\crt_bld\SELF_X86\crt\prebuild\tran\i386\sqrt.asm'.
The file was not found in a project.
Looking in directory 'D:\Visual Studio 2012\VC\crt\src\'...
Looking in directory 'D:\Visual Studio 2012\VC\crt\src\vccorlib\'...
Looking in directory 'D:\Visual Studio 2012\VC\atlmfc\src\mfc\'...
Looking in directory 'D:\Visual Studio 2012\VC\atlmfc\src\atl\'...
Looking in directory 'D:\Visual Studio 2012\VC\atlmfc\include'...
Looking in directory 'D:\XX\XXX\Visual Studio 2012\VC\atlmfc\src\mfc'...
Looking in directory 'D:\XX\XXXX\Visual Studio 2012\VC\atlmfc\src\mfcm'...
Looking in directory 'D:\XX\XXXX\Visual Studio 2012\VC\atlmfc\src\atl'...
Looking in directory 'D:\XX\XXXX\Visual Studio 2012\VC\crt\src'...
Looking in directory ''...
Looking in directory 'D:\XX\XXXX\Visual Studio 2012\VC\include'...
Looking in directory 'D:\XX\XX\Visual Studio 2012\VC\atlmfc\include'...
Looking in directory 'C:\Program Files (x86)\Windows Kits\8.0\Include\um'...
Looking in directory 'C:\Program Files (x86)\Windows Kits\8.0\Include\shared'...
Looking in directory 'C:\Program Files (x86)\Windows Kits\8.0\Include\winrt'...
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: f:\dd\vctools\crt_bld\SELF_X86\crt\prebuild\tran\i386\sqrt.asm.
The debugger could not locate the source file 'f:\dd\vctools\crt_bld\SELF_X86\crt\prebuild\tran\i386\sqrt.asm'.
没有人回答吗?只有小白我在做数值计算时碰到这种问题吗?求大神解救.
调试的时候一遇到这类数学函数都会有如下提示:(以sqrt函数为例)
You need to find sqrt.asm to view the source for the current call stack frame
Try one of the following options:
-Browse and find sqrt.am...
You can view disassembly in the Disassembly window. To always view disassembly for missing source files,change the setting in the Option dialog.
Source search information
Locating source for 'f:\dd\vctools\crt_bld\SELF_X86\crt\prebuild\tran\i386\sqrt.asm'. Checksum: MD5 {dd e7 2b 95 3a 36 c9 63 55 5e 42 7 b1 83 9a 8d}
The file 'f:\dd\vctools\crt_bld\SELF_X86\crt\prebuild\tran\i386\sqrt.asm' does not exist.
Looking in script documents for 'f:\dd\vctools\crt_bld\SELF_X86\crt\prebuild\tran\i386\sqrt.asm'...
Looking in the projects for 'f:\dd\vctools\crt_bld\SELF_X86\crt\prebuild\tran\i386\sqrt.asm'.
The file was not found in a project.
Looking in directory 'D:\Visual Studio 2012\VC\crt\src\'...
Looking in directory 'D:\Visual Studio 2012\VC\crt\src\vccorlib\'...
Looking in directory 'D:\Visual Studio 2012\VC\atlmfc\src\mfc\'...
Looking in directory 'D:\Visual Studio 2012\VC\atlmfc\src\atl\'...
Looking in directory 'D:\Visual Studio 2012\VC\atlmfc\include'...
Looking in directory 'D:\XX\XXX\Visual Studio 2012\VC\atlmfc\src\mfc'...
Looking in directory 'D:\XX\XXXX\Visual Studio 2012\VC\atlmfc\src\mfcm'...
Looking in directory 'D:\XX\XXXX\Visual Studio 2012\VC\atlmfc\src\atl'...
Looking in directory 'D:\XX\XXXX\Visual Studio 2012\VC\crt\src'...
Looking in directory ''...
Looking in directory 'D:\XX\XXXX\Visual Studio 2012\VC\include'...
Looking in directory 'D:\XX\XX\Visual Studio 2012\VC\atlmfc\include'...
Looking in directory 'C:\Program Files (x86)\Windows Kits\8.0\Include\um'...
Looking in directory 'C:\Program Files (x86)\Windows Kits\8.0\Include\shared'...
Looking in directory 'C:\Program Files (x86)\Windows Kits\8.0\Include\winrt'...
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: f:\dd\vctools\crt_bld\SELF_X86\crt\prebuild\tran\i386\sqrt.asm.
The debugger could not locate the source file 'f:\dd\vctools\crt_bld\SELF_X86\crt\prebuild\tran\i386\sqrt.asm'.
没有人回答吗?只有小白我在做数值计算时碰到这种问题吗?求大神解救.
▼优质解答
答案和解析
你把你的整型变量或者表达式乘以1.0,然后作为sqrt的参数,这样就可以了.
你没有sqrt的源程序,是无法对sqrt进行调试的.
你没有sqrt的源程序,是无法对sqrt进行调试的.
看了 VS2012中调用类似fab...的网友还看了以下:
下列各组数符合勾股数a²+b²=c²,观察勾股数abc3=1+24=2×1×25=2×1×2+15 2020-04-07 …
首先说下10分一题,三题.有的我已知道答案,只求说明为什么,请耐心看完.1、设P是一个数集,且至少 2020-05-13 …
等比数列an的前n项和味Sn,已知对任意的n属于正整数,点(n,Sn)均在函数y=b^x+r(b> 2020-05-13 …
七年级下册数学问题(二元一次方程).1.解下列方程组:(1)3x-y=5,5y-1=3x+5;(2 2020-05-17 …
进行下列数的数制转换(213)D=()B=()H=()O(69.625)D=()B=()H=()O 2020-05-21 …
人教版2012学年五下数学暑假作业第36页第2题答案如果a是b的倍数,那么(a,b)等于(),[a 2020-05-23 …
数轴上的有理数化简有理数a,b,c在数轴上的位置如下a大于-1小于0.b大于1.c大于b.化简|a 2020-06-06 …
实数a,b,c,d满足:a+b+c+d=1001,ac=bd=4,则:求下列式子解根号下(a+b) 2020-06-12 …
用反证法证明某命题时,对结论:“自然数a,b,c中恰有一个偶数”正确的反设为()A.a,b,c中至 2020-06-27 …
如果数A增加2,则它与数B的积比A、B的积大60;如果数A不变,数B减少3,则它们的积比A、B的积 2020-07-08 …