码迷,mamicode.com
首页 >  
搜索关键字:int    ( 143001个结果
获取流的参数信息
System.IO.Stream s = System.Web.HttpContext.Current.Request.InputStream; int count = 0; byte[] buffer = new byte[1024]; StringBuilder builder = new S....
分类:其他好文   时间:2015-05-26 17:52:35    阅读次数:96
WebClient 使用
--post 请求public static string PostMsg(Guid orgid, int page, int rows) { System.Net.WebClient client = new System.Net.WebClient(); string postData = "{...
分类:Web程序   时间:2015-05-26 17:49:42    阅读次数:190
浅谈Java中的hashcode方法
哈希表这个数据结构想必大多数人都不陌生,而且在很多地方都会利用到hash表来提高查找效率。在Java的Object类中有一个方法: public native int hashCode();   根据这个方法的声明可知,该方法返回一个int类型的...
分类:编程语言   时间:2015-05-26 16:40:21    阅读次数:152
40. C# -- 泛型编程
泛型概念:通过参数化类型来实现在同一份代码上操作多种数据类型。利用“参数化类型”将类型抽象化,从而实现灵活的复用。例子代码:classProgram { staticvoidMain(string[]args) { intobj=2; Test<int>test=newTest<int>(obj); Console.WriteLine("int:"+test.ob..
分类:Windows程序   时间:2015-05-26 16:30:34    阅读次数:129
笔试题3
C++有哪些数据类型?为什么long和int都是4字节?char、int、byte、short、long、longlong、double、floatstruct对象类型long、int占多少字节,得看计算机cpu是多少位的。16位机器上,int2字节,long4字节,32位机器上二者都是4字节,64位机器上,int4字节,long8字节int是最基本..
分类:其他好文   时间:2015-05-26 16:21:23    阅读次数:189
UVA - 11526 H(n) (数学)
【题目链接】:click here~~ 【题目大意】 What is the value this simple C++ function will return? long long H(int n){ long long res = 0; for( int i = 1; i res = (res + n/i); } return res; } Input The f...
分类:其他好文   时间:2015-05-26 16:11:48    阅读次数:157
hihocoder1043 完全背包 完全背包的几种写法
题目链接: hiho1043 二维: #include #include #include #define MAXN 505 using namespace std; int dp[505][100005]; int need[505]; int value[505]; int main() { int n,v;...
分类:其他好文   时间:2015-05-26 16:10:16    阅读次数:114
JAVA学习之简单计算器——V1.0
今天简单的尝试了下java编程,写了一个简短的只包含+,-,*,/,的计算器。今天,对该计算器进行一个简单的总结。 首先计算器分为输入,计算,输出3个环节,首先来介绍下输入环节。 输入: 我们需要从键盘上敲击2个需要计算的数字,以及一个运算的运算符。暂时将计算的数字定为整型int。在这里我用的输入类是Scanner类(据了解这个类比BufferedReader更好)。通过Scanner类...
分类:编程语言   时间:2015-05-26 16:08:40    阅读次数:156
数据结构运动会分数统计实习报告源码
#include #include int n,m,w; struct Student { char name[20]; int mingci; int score; }; struct Xiangmu { int bianhao; char xiangname[20]; Student students[50]; int xiangscor...
分类:其他好文   时间:2015-05-26 16:08:08    阅读次数:124
数据结构约瑟夫环实习报告源码
#include int n,m; struct LinkList { int bianhao; int mima; struct LinkList* next; }LinkHuan[50]; void duru() { printf("请按编号顺序输入密码值:\n"); for(int i=1;i<=n;i++){ scanf("%d",...
分类:其他好文   时间:2015-05-26 16:07:08    阅读次数:135
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!