摘要:
for (int i=1 ;i<N; i++) { 循环体; } if(){ 循环体; } 循环体内遇到break跳出最近的这个循环体。 1 2 3 for (int i=1 ;i<N; i++) { 4 5 if( ) 6 7 cotinue; // for循环内一旦遇到continue,则直接跳 阅读全文
posted @ 2019-08-26 14:48
Parallax
阅读(124)
评论(0)
推荐(0)
摘要:
1 #include <iostream> 2 #include <vector> 3 #include <algorithm> 4 5 using namespace std; 6 int main() 7 { vector<double> Vecdouble = {99.3,46.1,26.1, 阅读全文
posted @ 2019-08-26 14:42
Parallax
阅读(371)
评论(0)
推荐(0)
摘要:
char类型:8位,一个字节。 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 实际上第一位为符号位,不算的,第一位为0表示是正数,为1表示是负数。因此范围是2**7 而 unsigned char类型为 未标记类型, 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 第一 阅读全文
posted @ 2019-08-26 09:28
Parallax
阅读(229)
评论(0)
推荐(0)

浙公网安备 33010602011771号