码迷,mamicode.com
首页 >  
搜索关键字:int    ( 143001个结果
java 常见数据类型
int 4字节-2 147 483 648~2 147 483 647(正好超过20亿)short 2字节-32 768~32 767long 8字节-9 223 372 036 854 775 808~9 223 372 036 854 775 807byte 1字节-128~127char2字节...
分类:编程语言   时间:2015-04-13 22:28:17    阅读次数:140
软件工程第二次作业
1 int Count(int first,int second,char third) 2 { 3 switch(third) 4 { 5 case '+': 6 return (first+second); 7 case '-': 8 return (first-second);...
分类:其他好文   时间:2015-04-13 22:26:37    阅读次数:148
输入数字对应月份
#include "stdafx.h"#include #include #include int main(){int n;static char * monthName[] = {"Illegal month","January","February","March","April","May"...
分类:其他好文   时间:2015-04-13 22:23:33    阅读次数:146
希尔排序
希尔排序 1 //对每列元素进行插入排序 2 void sortInterval(int *arr, int beg, int increment, int len) 3 { 4 int first_unsorted;//第一个未排序的元素 5 int current;//暂存待插入...
分类:编程语言   时间:2015-04-13 22:21:50    阅读次数:141
理解冒泡排序
//之前写过一个排序的方法//两种方法的大体思路差不多,这个方法是两两比较,一个一个的冒出,冒泡....int[] a=new int[5]{9,5,6,2,7};//定义一个数组afor(i=1,i5 不满足条件 不换 b=a[j]; //然后是第二轮比较 5与6 52不满足条件 不换...
分类:编程语言   时间:2015-04-13 22:21:28    阅读次数:130
数组排序求平均
static void Main(string[] args){ while (true) { int[] al = new int[7]; for (int i = 0; i al[j - 1]) { int t = al[j]; al[j] = al[j - 1]; al[...
分类:编程语言   时间:2015-04-13 22:20:10    阅读次数:146
每天一点C语言
example1: 1 #include 2 #include 3 using namespace std; 4 5 int main () 6 { 7 unsigned int a = 998; 8 int b = -1; 9 if ( a b )14 {1...
分类:编程语言   时间:2015-04-13 22:18:28    阅读次数:138
15th浙大校赛 zoj3860-3868
比赛链接:here题目对应到ZOJ3860~3868AFind the Spy水#include#include#include#includeusing namespace std;mapmp;map::iterator it;int main(){ int T,n,x; scanf(...
分类:其他好文   时间:2015-04-13 22:16:52    阅读次数:173
【C语言】用结构体数组指针完成:有三个学生信息,存放在结构体数组中,要求输出全部信息
//用结构体数组指针完成:有三个学生信息,存放在结构体数组中,要求输出全部信息 #include struct Stu { int num; char name[20]; char sex; int age; }; int main() { struct Stu student[3]={{317,"han",'m',20},{318,"hun",'w',22},{311,"dan",'w...
分类:编程语言   时间:2015-04-13 21:00:30    阅读次数:895
字符串匹配KMP算法实现
由于KMP算法比较难,所以建议初学者分两个阶段学习。 第一个阶段先理解算法思想,可以参考这篇文章:点击打开链接 第二个阶段,理解算法的具体实现,本文主要讲解这部分,需要注意的地方都在程序里了,自己看吧 程序(调试通过): #include #include int KMP(char* s, char* pattern, int start, int next[]); void...
分类:编程语言   时间:2015-04-13 21:00:12    阅读次数:214
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!