1 2 3 4 5 6 7 8 9 10 F9 resume programe 恢复程序 Alt+F10 show execution point 显示执行断点 F8 Step Over 相当于eclipse的f6 跳到下一步,逐过程,不进入方法 F7 Step Into 相当于eclipse的f5 ...
分类:
其他好文 时间:
2020-11-23 12:23:41
阅读次数:
3
1.子类 1) 定义子类 //假设父类(也叫做超类)是Employee类,用extends来表示继承 public class Manager extends Employee{ //域和方法 private double bonus; //子类的域 ... private void setBonu ...
分类:
编程语言 时间:
2020-11-23 12:08:42
阅读次数:
7
Dart语言的控制语句跟其他常见语言的控制语句是一样的,基本如下:
- **if 和 else**
- **for 循环**
- **while 和 do-while 循环**
- **break 和 continue**
- **switch 和 case**
- **assert** ...
分类:
编程语言 时间:
2020-11-23 12:01:42
阅读次数:
8
double getDistance(cv::Point pointO, cv::Point pointA) { double distance; distance = powf((pointO.x - pointA.x), 2) + powf((pointO.y - pointA.y), 2); ...
分类:
其他好文 时间:
2020-11-23 11:51:01
阅读次数:
9
任务一 #include<stdio.h> #include<math.h> int main(){ float a, b, c, x1, x2; float delta, real, imag; printf("Enter a, b, c: "); while(scanf("%f%f%f", &a ...
分类:
其他好文 时间:
2020-11-21 12:42:08
阅读次数:
28
If switch do while while for 这些语句什么时候用? 1)、当判断固定个数的值的时候,可以使用if,也可以使用switch。 但是建议使用switch,效率相对较高。 switch(变量){ case 值:要执行的语句;break; … default:要执行的语句; } ...
分类:
编程语言 时间:
2020-11-21 12:29:33
阅读次数:
14
cf gym 链接 A. Kick Start 简单签到题。 code: #include<bits/stdc++.h> #define pi pair<int,int> #define f first #define s second using namespace std; const stri ...
分类:
其他好文 时间:
2020-11-21 11:48:03
阅读次数:
4
第一种方法:(冒泡排序)核心部分:for(i=0;i<=14;i++)//数组a[15]从零到十四一共十五个数{for(j=0;j<=14-i;j++)//循环一次能排出一个最大值因此需要循环14次,每次循环都有一个数排到最大,故每次减一即14-i.{if(a[j]>=a[j+1]){t=a[j+1];a[j+1]=a[j];a[j]=t;}}}排序好了之后,就把a[1]输出即为
分类:
编程语言 时间:
2020-11-21 11:43:21
阅读次数:
8
# -*- coding: utf-8 -*-import cv2import jsonimport numpy as npbase_path = "D:/Personal_Task/A3_ADASProject/Traffic_Line/dataset/train_set/"targetpath ...
分类:
Web程序 时间:
2020-11-20 12:21:54
阅读次数:
33
self.cr.execute(sql, ) # res = self.cr.fetchmany(1000) while True: res = self.cr.fetchmany(1000) print(len(res),res) if not res: break return res fetc ...
分类:
数据库 时间:
2020-11-20 12:06:46
阅读次数:
12