小提示 switch语句中的表达式只能是byte、short、char、int类型的值,如果传入其它类型的值,程序会报错。但上述说法并不严谨,实际上在JDK5.0中引入的新特性enum枚举也可以作为switch语句表达式的值,在JDK7.0中也引入了新特性,switch语句可以接收一个String类 ...
分类:
其他好文 时间:
2021-05-24 02:08:57
阅读次数:
0
Datatable 读取行数据 1. 创建结构体 继承自 FTableRowBase USTRUCT(BlueprintType) struct FSimpleStruct :public FTableRowBase { GENERATED_USTRUCT_BODY() public: UPROPE ...
分类:
编程语言 时间:
2021-05-24 02:00:47
阅读次数:
0
C 库函数 - strtok() C 标准库 - <string.h> 描述 C 库函数 char *strtok(char *str, const char *delim) 分解字符串 str 为一组字符串,delim 为分隔符。 声明 下面是 strtok() 函数的声明。 char *strt ...
分类:
其他好文 时间:
2021-05-24 01:50:57
阅读次数:
0
1.使用虚拟目录是,后端中的重定向等该如何处理 string path = filterContext.HttpContext.Request.ApplicationPath; if (path == "/") { path = ""; } filterContext.Result = new Re ...
分类:
Web程序 时间:
2021-05-24 01:38:02
阅读次数:
0
HelloWorld 随便新建一个文件夹,存放代码 新建一个Java文件 文件后缀名为.java Hello.java 【注意点】系统可能没有显示文件后缀名,需要手动打开 编写代码 public class Hello{ public static void main(String[]args){ ...
分类:
其他好文 时间:
2021-05-24 01:16:13
阅读次数:
0
static void Main(string[] args) { List<Man> list = new List<Man>(); for (int i = 0; i < 10; i++) { Man d = new Man(); d.Age = i ; d.Name = i.ToString( ...
分类:
其他好文 时间:
2021-05-24 01:06:23
阅读次数:
0
请求转发: 一种在服务器内部的资源跳转方式 1. 步骤: 1. 通过request对象获取请求转发器对象:RequestDispatcher getRequestDispatcher(String path) 2. 使用RequestDispatcher对象来进行转发:forward(Servlet ...
分类:
其他好文 时间:
2021-05-24 01:02:09
阅读次数:
0
当程序中有复合赋值运算符时,不同类型的数据会进行强制转换,比如下面例子:byte b += 2,是把int类型数据强制转换成byte,然后在进行赋值操作的! public class AssignOperator { public static void main(String[] args) { ...
分类:
编程语言 时间:
2021-05-24 00:59:35
阅读次数:
0
桌面新建一个文本文档(新建文本文档.txt)将文件名修改为 Demo01.java,内容如下: public class Demo01 { public static void main(String[] args) { int a = 10; System.out.println(a); } } ...
分类:
编程语言 时间:
2021-05-24 00:55:02
阅读次数:
0
package com.java1234.util; import java.sql.Connection; import java.sql.DriverManager; public class DbUtil { private String dbUrl="jdbc:mysql://localho ...
分类:
数据库 时间:
2021-05-24 00:29:07
阅读次数:
0