后在我抓住一个错误可以deleated如果你喜欢。嗯,这是你的网站,你知道。我只是说,你解决了这个问题,所以我现在有争议的评论。如果你想保持评论部分更清洁和更相关的问题,或者你有什么,知道,我不介意你删除我的审核意见。
顺便说一下,从我读到目前为止:
如果这个网站变成一本书,我肯定会买它。出色的工作在这里。
另外,我碰到过不少一般动词不一致等,但我没有指出来,因为它没有真正从学习经验。
我可能会读接下来的其他站点(以及如何过多久我)。如果你要我指出一般拼写错误等。我会的。
[通过各种手段,指出你所看到的。我希望这个网站是因为它可以作为很好的。作为生产一本书,我会做得很好,当我写完这本教程,如果这样做是经济可行的。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <iostream>
#include <math.h> // for sin() and cos()
void GetSinCos(double dX, double &dSin, double &dCos)
{
dSin = sin(dX);
dCos = cos(dX);
}
int main()
{
double dSin = 0.0;
double dCos = 0.0;
// GetSinCos will return the sin and cos in dSin and dCos
GetSinCos(30.0, dSin, dCos);
std::cout << "The sin is " << dSin << std::endl;
std::cout << "The cos is " << dCos << std::endl;
return 0;
}