C++语言基础 发表于 2017-12-22 | 分类于 coding | | 阅读次数 C++ Note参考文档:http://see.xidian.edu.cn/cpp/biancheng/cpp/jichu/ 12345678#include<stdio.h>int main(void){ /* code */ printf("Hello World!\n"); return 0;} 1234567891011121314151617#include "stdio.h"void main(){int x,y;for(x=1,y=1;y<50;y++){if(x>=10)break;if(x%3==1){x+=5;continue;}x+=3;}printf("x=%d,y=%d\n",x,y);} 123456789101112131415161718#include "stdio.h"void main(){ int x,y; for(x=1,y=1;y<50;y++) { if(x>=10) break; if(x%3==1) { x+=5; continue; } x+=3; } printf("x=%d,y=%d\n",x,y); return x,y;}