码迷,mamicode.com
首页 >  
搜索关键字:int    ( 143001个结果
【JAVAWEB学习笔记】08
今天晨读单词: CRUD:增删改查(create/read/update/delete)create:新增项目read:查询update:修改delete:删除 desc 表名:查看表结构drop:删除表primary key :主键 modify:修改(修改表中列的类型和长度) decimal:泛 ...
分类:编程语言   时间:2017-05-29 00:29:09    阅读次数:266
leetcode_sum4
#include #include #include #include using namespace std; int main() { int tar; cin >> tar; int a1[5] = { 1,2,3,-1,0 }; vectornum(a1, a1 + 5); vector >... ...
分类:其他好文   时间:2017-05-28 23:18:25    阅读次数:176
poj 2492 a bug's life 简单种类并查集
题意大致为找同性恋的虫子。。。。 这个比食物链要简单些。思路完全一致,利用取余操作实现关系之间的递推。 个人感觉利用向量,模和投影可能可以实现具有更加复杂关系的并查集。 1 #include<cstdio> 2 using namespace std; 3 const int MAXN=50010; ...
分类:其他好文   时间:2017-05-28 23:18:12    阅读次数:196
python中的万能分页
若是使用django这个框架,这个框架自带了一个分页的功能! Paginator对象 方法init(列表,int):返回分页对象,参数为列表数据,每面数据的条数 属性count:返回对象总数 属性num_pages:返回页面总数 属性page_range:返回页码列表,从1开始,例如[1, 2, 3 ...
分类:编程语言   时间:2017-05-28 23:16:39    阅读次数:197
TryCatchTest
public class TryCatchTest { public static void main(String[] args) { System.out.println("程序开始"); try { System.out.println("程序 1"); String str=null; st ...
分类:其他好文   时间:2017-05-28 23:15:47    阅读次数:199
leetcode_remove_distance
#include #include #include using namespace std; int main() { int a[5] = { 1,2,-1,3,5 }; vectornum(a, a + 5); int tar; cin >> tar; cout << distance(num... ...
分类:其他好文   时间:2017-05-28 23:15:38    阅读次数:196
数据结构——八大排序算法
驱动程序: public class Main { public static void main(String[] args) { int[] array={2,0,3,4,1,9,6,8,7,5}; print(Sort.bubbleSort(array, true));//冒泡 print(S ...
分类:编程语言   时间:2017-05-28 23:12:33    阅读次数:347
排序算法<三>快速排序
#include #include using namespace std; void swap(int arr[], int i, int j){ int t=arr[i]; arr[i]=arr[j]; arr[j]=t; } int partition(int arr[], int low, ... ...
分类:编程语言   时间:2017-05-28 23:12:24    阅读次数:312
vmware 克隆 clone 虚拟机之后,克隆的虚拟机的网卡可能会不能正常工作
克隆产生的虚拟机启动会出现提示信息 "interface eth0 doesn't exist" 解决方案1:删除文件 /etc/udev/rules.d/70-persistent-net,然后reboot 解决方案2(未测试):在vmware虚拟机的设置界面中将网卡直接删除,然后重新添加新的虚拟 ...
分类:系统相关   时间:2017-05-28 23:11:47    阅读次数:253
排序算法<四>希尔排序
#include using namespace std; int arr[]={11,12,51,23,64,23,68,1,12}; void shellsort1(int arr[]) { int i, j, gap; for (gap = 9 / 2; gap > 0; gap /= 2) ... ...
分类:编程语言   时间:2017-05-28 23:09:33    阅读次数:282
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!