摘要: #include<stdio.h> #include<iostream> using namespace std; int main() { int i; cin >> i; if (i % 2 == 0){ cout << "偶数" << endl; } else{ cout << "奇数" << 阅读全文
posted @ 2019-10-29 17:54 liw66 阅读(2329) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<iostream> using namespace std; int main() { int i; cin >> i; int j; cin >> j; i = i + j; j = i - j; i = i - j; cout << i << 阅读全文
posted @ 2019-10-29 17:50 liw66 阅读(217) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<iostream> int main() { for (int i = 1; i <= 9; i++){ long k = 1; for (int j = 1; j <= i; j++){ k *= j; } printf("%d!的结果是:%d 阅读全文
posted @ 2019-10-29 11:25 liw66 阅读(819) 评论(0) 推荐(0)
摘要: @Configuration public class CorsConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") .allowCredentials(true) .allowedHeaders(" 阅读全文
posted @ 2019-10-23 15:21 liw66 阅读(145) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int main(){ //1.char[] to char * char c1[] = "aa"; char * c2 = c1; cout << c2 << endl; //2.char * to char[] c 阅读全文
posted @ 2019-10-17 16:36 liw66 阅读(191) 评论(0) 推荐(0)
摘要: import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.Statement; import java.util.UUID; import java.util.concurrent.CountDownLatch; import java.util... 阅读全文
posted @ 2019-10-15 10:05 liw66 阅读(4909) 评论(0) 推荐(0)
摘要: import java.text.MessageFormat; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Objects; import java.util.Set; public class test_20190924 { public static 阅读全文
posted @ 2019-09-25 13:49 liw66 阅读(168) 评论(0) 推荐(0)
摘要: public class test_20190923 { public static void main(String... as) { // 基本类型转换 低精度到高精度隐式转换 高精度到低精度显式转换 // 1.byte to any byte b = 1; short s = b; int i = b... 阅读全文
posted @ 2019-09-24 09:22 liw66 阅读(236) 评论(0) 推荐(0)
摘要: public class test_20190920 { public static void main(String[] args) { // 4种整数 2种浮点 1种字符 1种布尔 // 类内部成员变量 静态变量可以不用初始化,局部变量必须初始化 BaseType c = new BaseType(); System.o... 阅读全文
posted @ 2019-09-20 12:03 liw66 阅读(169) 评论(0) 推荐(0)
摘要: #include <Shlobj.h> #include <iostream> using namespace std; //获取当前用户AppData文件夹路径 string GetLocalAppDataPath(){ char szDir[1024]; char szDoc[1024]; LP 阅读全文
posted @ 2019-09-17 15:00 liw66 阅读(1236) 评论(0) 推荐(0)