码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果
实验六
#include<stdio.h> #include<stdlib.h> #include<string.h> #define N 2 // 运行程序输入测试时,可以把N改小一些输入测试 typedef struct student { int id; /*学生学号 */ char name[20] ...
分类:其他好文   时间:2021-06-10 17:57:57    阅读次数:0
类型转换
类型转换 public class Demo02 { public static void main(String[] args) { //强制转换 (类型)变量名 高-->低 int i = 128; byte b = (byte) i;//内存溢出 System.out.println(i); ...
分类:其他好文   时间:2021-06-10 17:53:43    阅读次数:0
SQL IMAGE字段读取
SQL IMAGE字段读取出来,需要转换成二进制字符串否则是乱码 var stext,sTextA :String; begin sTextA :=ADOQuery.FieldByName('well').AsString; //功图二进制数据 for j:=1 to Length(sTextA) ...
分类:数据库   时间:2021-06-10 17:44:09    阅读次数:0
JavaSE: FileOutputStream类 & FileInputSteam类
FileOutputStream类 <1> 基本概念 java.io.FileOutputStream类:用于将图像数据之类的原始字节流写入到输出流中。 <2> 常用的方法 方法声明 功能介绍 1.FileOutputStream(String name) 根据参数指定的文件名来构造对象 2.Fil ...
分类:编程语言   时间:2021-06-10 17:40:43    阅读次数:0
class Class, package java.lang; rt.jar
java文件中包含3700行 /** * Returns the {@code Class} object associated with the class or * interface with the given string name. Invoking this method is * e ...
分类:编程语言   时间:2021-06-09 10:31:41    阅读次数:0
实验六
1 // P280例8.15 // 对教材上的程序作了微调整,把输出学生信息单独编写成一个函数模块 // 打印不及格学生信息和所有学生信息程分别调用 #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 4 // 运行程序 ...
分类:其他好文   时间:2021-06-08 23:46:49    阅读次数:0
LLVM 获取Value Type
void llvtype(std::string_view k, Value* v) { std::cout << std::format("{}:{}:{}", k, (int)v->getType()->getTypeID(), v->getName().str() ) << "\n"; } . ...
分类:其他好文   时间:2021-06-08 23:38:58    阅读次数:0
实验六
实验任务一: #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 3 // 运行程序输入测试时,可以把N改小一些输入测试 typedef struct student { int id; /*学生学号 */ char n ...
分类:其他好文   时间:2021-06-08 23:29:04    阅读次数:0
贪心算法
本算法采用广播电台覆盖区域来做演示,设置五个电台集合,存放可以覆盖的区域,再设置一个总集合,存放所有的区域,然后只要未全覆盖,则每次都选择能包括最多未覆盖区域的电台,这就是一个最优解。代码如下: public static void main(String[] args) { HashMap<Str ...
分类:编程语言   时间:2021-06-08 23:28:46    阅读次数:0
32. 最长有效括号
class Solution { //二刷没想到用动态规划。 public int longestValidParentheses(String s) { if(s.equals(""))return 0; int[] dp=new int[s.length()]; char[] ss=s.toCh ...
分类:其他好文   时间:2021-06-08 23:23:49    阅读次数:0
95377条   上一页 1 ... 22 23 24 25 26 ... 9538 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!