我在Visual C++ 2010中使用cout打印变量,它显示"1. $".这是什么意思?
谷歌不允许搜索,$所以我找不到意思.
编辑:
代码是这样的:
double func(...);
std::cout << func(...);
Run Code Online (Sandbox Code Playgroud)
我没有修改cout的默认值
这个符号是什么意思-1.$e+000?这些东西包含在哪个类别中,或者我可以搜索哪些关键字?

编辑:提高精度后,这是我得到的:

我正在使用此链接上的公式制作计算器: http://cereference.com/book/surveying-and-transportation-engineering/simple-curves-or-circular-curves#sthash.qrD1VOm6.08csgYq9.dpbs
和
https://www.easycalculation.com/engineering/civil/highways-horizontal-curve.php
编辑的问题!
所以我使用 math.h 库来使用 sin、tan、cos 和 sec 函数,但根据我的公式,答案不正确......所以为了测试,假设我有一个 36 度角和一个半径286...所以切线 (utangent) 的答案必须是 92.927。我的下一个问题是如何使用 sec 函数?我评论它是因为它无法编译...还有 tan、sin 和 cos。
#include<stdio.h>
#include<conio.h>
#include<math.h>
int main(){
double length, angle, radius, tangent, chord, midordinate, external, degree;
double pcurve, pintersection, ptangent;
double ulength, uangle, uradius, utangent, uchord, umidordinate, uexternal;
double pi;
double choice, choice2, given;
pi = 3.14159;
printf("Enter radius: ");
scanf("%lf",&radius);
printf("Enter angle: ");
scanf("%lf",&angle);
utangent = radius * (tan(angle/2));
uchord = 2*radius*(sin(angle/2));
umidordinate = radius - (radius*(cos(angle/2)));
//uexternal = …Run Code Online (Sandbox Code Playgroud)