只有第一篇文章能看到代码正常格式?

 1 #include <iostream>
 2 int main()
 3 {
 4     // local objects of type int
 5     int value = 2;
 6     int pow = 10;
 7     int result = 1;
 8 
 9     // repeat calculation of result until cnt is equal to pow
10     for (int cnt = 0; cnt != pow; ++cnt)
11         result *= value;   // result = result * value;
12 
13     std::cout << value 
14               << " raised to the power of "
15               << pow << ": \t"
16               << result << std::endl;
17     return 0;
18 }
View Code

 

posted @ 2014-04-15 09:49  cosmicy  阅读(93)  评论(0)    收藏  举报