码迷,mamicode.com
首页 >  
搜索关键字:else    ( 23991个结果
Ake杂货铺
Js得到选中的文字 (function getSelectionText() { if (window.getSelection) { return window.getSelection().toString(); } else if (document.selection && document ...
分类:其他好文   时间:2021-06-28 21:07:38    阅读次数:0
华为机试题 成绩排名
简介 对cmp的理解能力 常规题 code #include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; struct Student{ int idx; int n ...
分类:其他好文   时间:2021-06-28 21:01:31    阅读次数:0
用最少数量的箭引爆气球
题目链接:用最少数量的箭引爆气球 题目描述: 题解: class Solution { public: static bool cmp(vector<int> &a, vector<int> &b) //按右边界排序 { return a[1] < b[1]; } int findMinArrowS ...
分类:其他好文   时间:2021-06-28 20:44:14    阅读次数:0
前中后序遍历
前序遍历: result = [] st = [root] while st: node = st.pop(-1) if node.right: st.append(node.right) if node.left: st.append(node.left) result.append(node.v ...
分类:其他好文   时间:2021-06-28 20:43:55    阅读次数:0
【物理应用】基于matlab二维边界单元法计算腐蚀电位【含Matlab源码 523期】
一、简介 基于matlab二维边界单元法计算腐蚀电位 二、源代码 clear; fid=fopen('input.dat','r'); indat=fscanf(fid,'%g%g%d%g',[4,inf]); indat=indat'; xb=indat(:,1); yb=indat(:,2); ...
分类:其他好文   时间:2021-06-28 20:17:15    阅读次数:0
结构选择
选择结构 if eles 如果条件成立就进入到分支里面执行相应代码,如果不成立,则不会进入 if(条件){ 执行相应代码; }else{ 执行相应代码; } 多分支 if else if if{ }else if{ }else if{ }else{ ? console.log('请输入:');let ...
分类:其他好文   时间:2021-06-28 19:49:27    阅读次数:0
9.求整数序列中的主元素
1.题目如下 2.解题代码 #include<stdio.h> int majority(int a[],int n){ int i,count=1,c=a[0]; for(i=1;i<n;i++) { if(a[i]==c) count++; else { if(count>0) count--; ...
分类:其他好文   时间:2021-06-28 19:33:29    阅读次数:0
20193312朱文昱python综合实验报告
20193312 2021-6 《Python程序设计》综合实验报告 课程:《Python程序设计》 班级: 1933 姓名: 朱文昱 学号:20193312 实验教师:王志强 实验日期:2020年6月24日 必修/选修: 公选课 1.实验内容 内容: 贪吃蛇小游戏制作 要求: 能用电脑的方向键控制 ...
分类:编程语言   时间:2021-06-28 19:13:43    阅读次数:0
IComparer实现文件名排序
一、概要 本文主要分享在文件对象处理中需要根据文件名排序思路。主要基于.net框架内提供的IComparer对象,它主要将定义类型为比较两个对象而实现的方法。 二、详细内容 1.场景 在读取文件列表的时候,会遇到各种各样的文件名例如“xxx-01”,"1xx01-13"希望按照数字的大小进行排序;可 ...
分类:编程语言   时间:2021-06-28 19:07:26    阅读次数:0
IfElsePractise
/* 指定考试成绩,判断成绩的等级。 90-100 优秀 80-89 好 70-79 良 60-69 及格 60以下 不及格 */ public class IfElsePractise{ public static void main(String[] args){ int score = 98; ...
分类:其他好文   时间:2021-06-28 19:00:36    阅读次数:0
23991条   上一页 1 2 3 4 ... 2400 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!