可以使用//来注释一行。这种用法已经加入C99和ANSI C 2000中。
1 using namespace std; // Using the standard library namespace.
2 #include <iostream> // The iostream library is often used.
3
4 int main () // The program's main routine.
5 {
6 double a; // Declaration of variable a.
7
8 a = 456.47;
9 a = a + a * 21.5 / 100; // A calculation.
10
11 cout << a << endl; // Display the content of a.
12
13 return 0; // Program end.
14 }
原文链接: https://www.cnblogs.com/beforus/archive/2012/08/20/2648316.html
欢迎关注
微信关注下方公众号,第一时间获取干货硬货;公众号内回复【pdf】免费获取数百本计算机经典书籍
原创文章受到原创版权保护。转载请注明出处:https://www.ccppcoding.com/archives/60275
非原创文章文中已经注明原地址,如有侵权,联系删除
关注公众号【高性能架构探索】,第一时间获取最新文章
转载文章受原作者版权保护。转载请注明原作者出处!