0
私は結果コントラバー任意の数 のCOSを見つけるための小さなプログラムは、すべての奇妙 CMDたプログラムした:結果はどういう意味がありませんか?
種類数0.00
effincisy5
あなたのcos = 008C129E
キーを押して続行します。 。 。
コード:
#include <iostream>
#include <vector>
#include <cmath>
using namespace std;
float cos67 (float l,float j)
{
int k=0;
float sum=0,i=1;
while (k<=j)
{
sum +=i;
i*=(-l*l/((2*l)*(2*l-1)));
k+=1;
}
return sum;
}
int main(){
float l,j;
cout<<"type the number ";
cin>>l;
cout<<endl<<"effincisy" ;
cin>>j;
cout<<endl;
cos67(l,j);
cout<<"your cos ="<<cos67<<endl;
return 0;
}
ので、結果は数に手紙を持っている理由?
またはそれはどういう意味ですか?
Typo;あなたがあなたのcos = "<< cos67(l、j)<< endl;'にする必要があります ' cos67(l、j); 'それはそれ自身の行です。 – NathanOliver
結果の代わりに関数のアドレスを表示しているので... – Borgleader