码迷,mamicode.com
首页 >  
搜索关键字:break point    ( 16971个结果
关于Break、Continue和Return的区别
1、break 直接跳出当前的循环,从当前循环外面开始执行,忽略循环体中任何其他语句和循环条件测试。它只能跳出一层循环,如果循环是嵌套循环,那么需要按照你嵌套的层次,逐步使用break来跳出;2、 continue 也是终止当前的循环过程,但它他并不跳出循环,而是继续往下判断循环条件执行语句。...
分类:其他好文   时间:2014-05-23 06:49:30    阅读次数:228
计算几何模板
1、典型的Point结构体 1 struct point { 2 double x, y; 3 point(double _x = 0, double _y = 0): x(_x), y(_y) { 4 } 5 void input() { 6 sca...
分类:其他好文   时间:2014-05-23 03:40:15    阅读次数:362
【SQL】检索满足条件的最大值的数据集合
是不是看题目觉的看不懂?其实我自己也看不懂,但是又找不到更好的词来形容。为了更好的表达我的意思,请看下。如果有一张成绩表(Points),学生(student)成绩(point)科目(subject)张三70英语张三80数学李四75语文李四85数学我想知道每个学生成绩最好的是哪一科,该怎么算??我们...
分类:数据库   时间:2014-05-21 20:43:22    阅读次数:316
13周 项目1 点,圆的关系
#include #include using namespace std; class Point { public: Point(double a,double b):x(a),y(b) {} double getx() { return x; } double gety() { ...
分类:其他好文   时间:2014-05-21 14:44:07    阅读次数:281
C++ 构造器 普通构造器 代理构造器
Point():Point(0,0){}...
分类:编程语言   时间:2014-05-21 13:54:57    阅读次数:228
13周 项目2 圆的比较
#include #include using namespace std; class Point { public: Point(double a,double b):x(a),y(b) {} double getx() { return x; } double gety() { return y; ...
分类:其他好文   时间:2014-05-21 10:09:26    阅读次数:309
[ACM] hdu 2717 Catch That Cow (BFS)
Catch That Cow Problem Description Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on a number li...
分类:其他好文   时间:2014-05-21 07:02:40    阅读次数:312
编程题:输入英文月份单词,输出对应月的数字形式。
编程题:输入英文月份单词,输出对应月的数字形式。#include<stdio.h>#include<string.h>intsearch(charlist[][20],charname[],intm){inti;for(i=0;i<m;i++) if(strcmp(list[i],name)==0)break; returni;}voidmain(){charmonth_list[12][20]={"January","Februa..
分类:其他好文   时间:2014-05-21 02:07:53    阅读次数:385
编程题:统计1~20之间不能被3整除的数的个数并输出这些数
编程题:统计1~20之间不能被3整除的数的个数并输出这些数以下程序是用break和continue语句来实现的。#include<stdio.h>voidmain(){intn,s;for(n=1,s=0;n<=20;n=n+1){if(n%3==0)continue; printf("%d\t",n); s=s+1;}printf("\ntotal:%d\n",s);}算法分析与流程图:运行..
分类:其他好文   时间:2014-05-21 01:12:16    阅读次数:844
编程题:学生成绩评分
编程题:学生成绩评分#include<stdio.h>voidmain(){intscore;printf("请输入学生分数:"); scanf("%d",&score); switch(score/10) {case10: case9:printf("成绩优秀\n");break;/*成绩在90~100分*/ case8:printf("成绩良好\n");break;/*成绩在80~89分*/ case7:print..
分类:其他好文   时间:2014-05-21 00:38:21    阅读次数:356
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!