会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
//Mendax
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
2020年3月12日
String和Char的相互转化//JAVA
摘要: Char——>String 1. String s = String.valueOf('c'); //单个字符 2. String s = String.valueOf(new char[]{'c'}); //转换数组 3. String s = Character.toString('c');//
阅读全文
posted @ 2020-03-12 18:22 //Mendax
阅读(817)
评论(0)
推荐(0)
2020年3月9日
基本数据类型所占字节数
摘要: 32位编译器:char short int long float double 指针 1 2 4 4 4 8 4 64位编译器:char short int long float double 指针 1 2 4 8 4 8 8 所以辨别编译器是几位的可以通过sizeof(long)来判断
阅读全文
posted @ 2020-03-09 14:51 //Mendax
阅读(313)
评论(0)
推荐(0)
C++中new的三种使用方法
摘要: C++ 中new 有三种用法,分别是:plain new, nothrow new, placement new。 plain new 1 void* operator new(std::size_t) throw(std::bad_alloc); 2 void operator delete( v
阅读全文
posted @ 2020-03-09 10:06 //Mendax
阅读(2052)
评论(0)
推荐(0)
2020年3月2日
某种排序
摘要: /*某种排序*/ #define Size 100 #include<iostream> #include<algorithm> using namespace std; int a[Size]; int Find(int l,int r){ if(r==l) return l; else{ int
阅读全文
posted @ 2020-03-02 16:55 //Mendax
阅读(136)
评论(0)
推荐(0)
快速排序
摘要: /*快速排序*/ #include<iostream> #include<stdlib.h> #include<algorithm> using namespace std; const int Max=1e4+5; int array[Max]; int Findout(int l,int r){
阅读全文
posted @ 2020-03-02 15:45 //Mendax
阅读(140)
评论(0)
推荐(0)
上一页
1
2
3
公告