package array.test;public class Test2 { public static void main(String[] args) { //1. 声明并初始化二维数组 int[][] arr = new int[10][]; //2.给数组元素赋值 for (int i = ...
分类:
其他好文 时间:
2021-06-02 11:17:11
阅读次数:
0
c语言中使用putchar显示字符串 1、 #include <stdio.h> int put(char x[]) { int i = 0; while(x[i]) putchar(x[i++]); } int main(void) { char str[128]; printf("str: ") ...
分类:
编程语言 时间:
2021-06-02 11:15:10
阅读次数:
0
1、 #include <stdio.h> void put(char x[], int n) { while(n-- > 0) printf(x); putchar('\n'); } int main(void) { char str[128]; int n; printf("str: "); s ...
分类:
编程语言 时间:
2021-06-02 11:11:52
阅读次数:
0
要你支持一些操作。
插入数,删除数,查询数排名,查询某个排名的数,查询数的前驱后继。
但是它要求可以可持久化,即每次会在给定的历史版本上改动。 ...
分类:
其他好文 时间:
2021-06-02 11:01:10
阅读次数:
0
日期显示代码如下: 1 // <summary> 2 /// 日期时间显示改变 3 /// </summary> 4 private void InitDateTimePickerUp() 5 { 6 //开始时间 7 this.dateTimePicker_start.CustomFormat = ...
依赖注入的好处就是低耦合也可以说是少写了重复的代码 构造函数依赖注入分为三步: 1、先创建一个接口 2、创建一个类,用于实现接口 3、到配置服务类(Startup)的 public void ConfigureServices(IServiceCollection services){ } 方法中注 ...
分类:
Web程序 时间:
2021-05-25 18:33:22
阅读次数:
0
源码: # include<stdio.h> int main(void){int a,i=0,sum=0;scanf("%d",&a);if(a<0) a=-a;//求负整数的while(a){sum+=(a%10);//sum存各位数之和a/=10;}printf("各位数字之和为:%d\n", ...
分类:
编程语言 时间:
2021-05-25 18:29:36
阅读次数:
0
简介 使用BFS算法 不知道莫名超时了 code class Solution { public: struct point{ int i; int j; point(int i_, int j_){ i = i_; j = j_; } }; void bfs(int i, int j, vecto ...
分类:
其他好文 时间:
2021-05-25 18:29:12
阅读次数:
0
先看下面的程序来售票 1 package thread; 2 3 public class Ticket { 4 public static void main(String[] args) { 5 SaleWindow saleWindow1 = new SaleWindow(); 6 SaleW ...
分类:
编程语言 时间:
2021-05-25 18:22:25
阅读次数:
0
public class Point { int x; int y; public Point(int x0, int y0) { super(); this.x = x0; this.y = y0; } public Point() { super(); } public void movePoi ...
分类:
其他好文 时间:
2021-05-25 18:20:04
阅读次数:
0