摘要: package 内部类.访问权限;public class Outer { private int num=10; public static class Inner{ public static void Show(){ System.out.println("num"); } } public 阅读全文
posted @ 2022-06-03 21:31 藏进夜里躲在光下 阅读(25) 评论(0) 推荐(0)
摘要: 第一步:File - setting (最左上角 第二步:找到Plugins 点击设置的小图标 第三步;点击manage Pluugin Repositories 点击+号将 https://plugins.zhile.io 添加进去点击ok 第四步: 搜索 IDE 找到IDE Eval Reset 阅读全文
posted @ 2022-05-14 16:13 藏进夜里躲在光下 阅读(890) 评论(0) 推荐(1)
摘要: CLASSPATH .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar; JAVA_HOME C:\Program Files\Java\jdk-16.0.2 (这里是jdk 的安装路径 path变量中: 添加这个两个 %JAVA_HOME%\bin 阅读全文
posted @ 2022-05-14 16:01 藏进夜里躲在光下 阅读(21) 评论(0) 推荐(0)
摘要: #include <stdio.h>#include <malloc.h>struct S{ int n; int arr[0];//未知大小-柔性数组成员-数组的大小是可以调整的};int main(){ struct S* ps = (struct S*)malloc(sizeof(struct 阅读全文
posted @ 2022-05-10 15:13 藏进夜里躲在光下 阅读(46) 评论(0) 推荐(0)
摘要: char* GerMemory(void){ char p[] = "hello world"; return p;} void Test(void){ char* str = NULL; str = GerMemory(); printf(str);} int main() { Test(); r 阅读全文
posted @ 2022-05-09 22:28 藏进夜里躲在光下 阅读(43) 评论(0) 推荐(0)
摘要: //常见错误, //1.对NULL指针的解引用操作 //int* p = malloc(40); //*p = 10;//mallco开辟空间失败,-对NULL指针解引用,需要对p进行判断 //2.对动态开辟内存空间的越界访问 //3.对非动态开辟内存使用free释放 //4.使用free释放动态内 阅读全文
posted @ 2022-05-09 22:07 藏进夜里躲在光下 阅读(54) 评论(0) 推荐(0)
摘要: #include <stdio.h> enum Sex{ MALE, FEMALE, SECRET}; enum Color{ RED, YELLOW, BLUE};int main(void){ enum Sex s = MALE; return 0;} 联合公用体 阅读全文
posted @ 2022-04-29 18:41 藏进夜里躲在光下 阅读(23) 评论(0) 推荐(0)
摘要: #include <stdio.h> struct S{int a : 2; //a 只需要2个比特位int b : 5; // b 只需要5个比特位int c : 10;int d : 30; };int main(void){struct S s;printf("%d\n", sizeof(s) 阅读全文
posted @ 2022-04-29 17:50 藏进夜里躲在光下 阅读(35) 评论(0) 推荐(0)
摘要: #include <stdio.h>struct S1{ char c1; int a; char c2;}; struct S2{ char c1; char c2; int a;}; struct S3 { double b;char c1;int a;}; struct S4 { double 阅读全文
posted @ 2022-04-29 13:23 藏进夜里躲在光下 阅读(29) 评论(0) 推荐(0)
摘要: delimiter $$create procedure proc_12(in score int)begin if score <60thenselect '不及格';elseif score>=60 and score <=80thenselect '及格';elseselect '输入有误'; 阅读全文
posted @ 2022-04-27 17:09 藏进夜里躲在光下 阅读(30) 评论(0) 推荐(0)