码迷,mamicode.com
首页 >  
搜索关键字:delete void    ( 74275个结果
杨辉三角
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显示字符串
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
c语言 9-7
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
【ybt金牌导航4-6-2】【luogu P3835】可持久化平衡树
要你支持一些操作。 插入数,删除数,查询数排名,查询某个排名的数,查询数的前驱后继。 但是它要求可以可持久化,即每次会在给定的历史版本上改动。 ...
分类:其他好文   时间:2021-06-02 11:01:10    阅读次数:0
C# 日期格式化显示
日期显示代码如下: 1 // <summary> 2 /// 日期时间显示改变 3 /// </summary> 4 private void InitDateTimePickerUp() 5 { 6 //开始时间 7 this.dateTimePicker_start.CustomFormat = ...
分类:Windows程序   时间:2021-06-02 10:53:58    阅读次数:0
asp.net core 构造函数依赖注入
依赖注入的好处就是低耦合也可以说是少写了重复的代码 构造函数依赖注入分为三步: 1、先创建一个接口 2、创建一个类,用于实现接口 3、到配置服务类(Startup)的 public void ConfigureServices(IServiceCollection services){ } 方法中注 ...
分类:Web程序   时间:2021-05-25 18:33:22    阅读次数:0
c语言求输入的任一整数的各位数之和
源码: # 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
leetcode 200 岛屿数量
简介 使用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
74275条   上一页 1 ... 29 30 31 32 33 ... 7428 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!