看了网上的许多博客,然后自己总结了下,谢谢大神们的贡献 public class MergeSort { public void sort(int[] arr, int lo, int hi) { if (lo >= hi) return; int mid = lo + (hi - lo)/2; s ...
                            
                            
                                分类:
编程语言   时间:
2021-06-02 11:26:03   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    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
                             
                    
                        
                            
                            
                                
                    转自:https://www.huaweicloud.com/articles/64e2a426a2d4fe45b7be305791fe2839.html 1.表示范围 https://blog.csdn.net/u013760665/article/details/98520702 正整数用原码表 ...
                            
                            
                                分类:
其他好文   时间:
2021-06-02 11:12:56   
                                阅读次数:
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
                             
                    
                        
                            
                            
                                
                    在MySQL的使用过程中遇见很多错误,比如由于操作系统引起的,文件或目录不存在,或SQL语句错误引起的。这些error会有相应的代码:error#,Errcode#。"#"代表具体的错误号。perror可以查看这些错误的详细内容。查看perror的使用方法:[root@YANG mysql]# pe ...
                            
                            
                                分类:
数据库   时间:
2021-06-02 11:08:00   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    ##多维数组 //[4][2] /* 1,2 array[0] 2,3 array[1] 3,4 array[2] 4,5 array[3] */ int[][] array = {{1,2},{2,3},{3,4},{4,5}}; // printArray(array[0]); // Syste ...
                            
                            
                                分类:
编程语言   时间:
2021-06-02 11:05:47   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                概述 python中的下划线主要分为如下几类: 前置单下划线,如_a,_variable,主要是用于将变量或方法定义为私有属性。这里的私有属性并非如java中的私有,而是一种约定俗成,想强行访问仍旧可以正常访问。 后置单下划线,如a_,val_,主要用于将变量区别,如变量名称和关键字冲突,后面加个下 ...
                            
                            
                                分类:
编程语言   时间:
2021-06-02 10:55:09   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                任务1#include <stdio.h> const int N=3; int main() { int a[N] = {1, 2, 3}; int i; printf("通过数组名和下标直接访问数组元素:\n"); for(i=0; i<N; i++) printf("%d: %d\n", &a ...
                            
                            
                                分类:
其他好文   时间:
2021-06-02 10:47:49   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                8.1 UPDATE作用 UPDATE语句用于更新表中的现有记录。 8.2 UPDATE语法 UPDATE table_name SET column1=values,column2=values2,... WHERE condition; 注意:更新表中的记录时要小心,要注意UPDATE语句中的W ...
                            
                            
                                分类:
其他好文   时间:
2021-06-02 10:47:12   
                                阅读次数:
0