码迷,mamicode.com
首页 >  
搜索关键字:int    ( 143001个结果
Java中 复合赋值运算符 的 类型转换(属于强制类型转换)
当程序中有复合赋值运算符时,不同类型的数据会进行强制转换,比如下面例子:byte b += 2,是把int类型数据强制转换成byte,然后在进行赋值操作的! public class AssignOperator { public static void main(String[] args) { ...
分类:编程语言   时间:2021-05-24 00:59:35    阅读次数:0
Java 执行命令解析总结
桌面新建一个文本文档(新建文本文档.txt)将文件名修改为 Demo01.java,内容如下: public class Demo01 { public static void main(String[] args) { int a = 10; System.out.println(a); } } ...
分类:编程语言   时间:2021-05-24 00:55:02    阅读次数:0
Pytest测试框架(2)
pytest参数化与数据驱动实现—— 1. 使用@pytest.mark.parametrize进行参数化和数据驱动 import pytest @pytest.mark.parametrize("test_input, expected", [('3+5', 8), ('1+5', 6), ('3 ...
分类:其他好文   时间:2021-05-24 00:42:51    阅读次数:0
java排序之-简单选择排序
public class selectSort { //基本思想:在要排序的一组数中,选出最小的一个数与第一个位置的数交换; 然后在剩下的数当中再找最小的与第二个位置的数交换,如此循环到倒数第二个数和最后一个数比较为止。 public selectSort(){ int a[]={1,54,6,3, ...
分类:编程语言   时间:2021-05-24 00:38:10    阅读次数:0
java冒泡排序算法
package test; public class BubbleSort { public void bubble(Integer[] array,int from,int end) { for(int k=1;k<end-from+1;k++) { for(int i=end-from;i>=k ...
分类:编程语言   时间:2021-05-24 00:31:25    阅读次数:0
从零开始的C++学习札记
前言 看的书是:C++ Primer Plus 第六版 第1章 预备知识 没啥要点 第2章 开始学习C++ 2.1 进入C++ 2.1.1 main()函数 main() //original C style 在C语言中,省略返回类型相当于说函数的类型为int,但是C++淘汰了这种用法 也有这种变体 ...
分类:编程语言   时间:2021-05-24 00:21:04    阅读次数:0
shiyansi
#include <stdio.h> #include <stdlib.h> #define N 1000 int fun(int n,int m,int bb[N]) { int i,j,k=0,flag; for(j=n;j<=m;j++) { flag= 1; for(i=2;i<j;i++) ...
分类:其他好文   时间:2021-05-24 00:15:41    阅读次数:0
A. Sum of Odd Integers(水题)
题意:输入t个测试,每个测试输入n,k;判断n是否能使用k个不相同的奇数表示出来。 最开始想得太复杂,分了好多种情况,写了很多没用的代码。 题解:应该想什么样的数才能被表示出来: 奇偶对应(n为奇数,k也应该是奇数) n>=k*k(当不满足这个条件时,是找不到k个奇数的和等于n的) 有了这两个条件, ...
分类:其他好文   时间:2021-05-24 00:10:39    阅读次数:0
[ AGC003 D ] Anticube
题目 Atcoder 思路 代码 #include <iostream> #include <algorithm> #include <cmath> #include <map> #define int long long using namespace std; const int N = 100 ...
分类:其他好文   时间:2021-05-24 00:04:21    阅读次数:0
PDF转HTML工具——用springboot包装pdf2htmlEX命令行工具
Convert PDF to HTML without losing text or format. 用springboot把pdf2htmlEX命令行工具包装为web服务, 使得PDF转HTML更方便。 pdf2htmlEX命令行工具详情见: https://github.com/pdf2html ...
分类:编程语言   时间:2021-05-23 23:53:36    阅读次数:0
143001条   上一页 1 ... 71 72 73 74 75 ... 14301 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!