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

边写代码边注释,修改代码同时修改相应的注释,以保证注释与代码 的一致性。不再有用的注释要删除。

 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	sin(x)"<<endl;
 9     for (int i=0;i<=180;i=i+30) 
10         cout<<i<<"	"<<sin(i*HD)<<endl;
11     return 0;
12 }
原文地址:https://www.cnblogs.com/borter/p/9413357.html