天天看点

边写代码边注释,修改代码同时修改相应的注释

1 #include <iostream>
 2 #include<math.h> 
 3 const double HD=3.1415926/180;
 4 /* run this program using the console pauser or add your own getch, system("pause") or input loop */
 5 using namespace std;
 6 
 7 int main(int argc, char** argv) {
 8     cout<<"x\tsin(x)"<<endl;
 9     for (int i=0;i<=180;i=i+30) 
10         cout<<i<<"\t"<<sin(i*HD)<<endl;
11     return 0;
12 }