程序输出:两数的和与差
#include<iostream>
using
namespace
std
int
main()
{
int
a,b,c,d
cout<<"输入两个数"<<endl
cin>>a
cin>>b
c=a+b
d=a-b
cout<<"c=a+b"<<"="<<c<<endl
cout<<"d=a-b"<<"="<<d<<endl
return
0
}
这个~!print("hello world")
就是hello world程序了。应该说R在统计方面比较牛的,有很多相应的R包进行各种各样的统计分析,还有强大的作图能力。这些我都还不怎么会,嘿嘿。如果想学R还是得找点资料学习。不是很难的。