码迷,mamicode.com
首页 >  
搜索关键字:int    ( 143001个结果
C# Labmda表达式
本篇我们来讨论C#中的Lambda表达式。本篇会使用上一篇文章:C#委托中的Person类,代码如下public delegate void MyDelegate();public class Person { public string Name { get; set; } public int Age { get; set; } public void ZhuangBi(...
分类:Windows程序   时间:2015-04-16 10:21:31    阅读次数:213
Codeforces 492E Vanya and Field(拓展欧几里得)
题目链接:Codeforces 492E Vanya and Field 通过拓展欧几里得算法求出每个位置在移动过程中,在x为0时,y的位置。统计相应y坐标最多的即为答案。 #include #include #include using namespace std; const int maxn = 1e6 + 5; const int maxm = 1e5 + 5; typedef...
分类:其他好文   时间:2015-04-16 10:21:14    阅读次数:119
Loadrunner 连接SQL数据库,获取验证码脚本
1、脚本协议:选择web service 2、脚本: Action() {     int NumRows=0;       //建立连接     lr_db_connect("StepName=DatabaseConnection",         "ConnectionString=Data Source=192.168.1.251;Initial C...
分类:数据库   时间:2015-04-16 10:21:13    阅读次数:137
复制构造函数和析构函数经典例子
#include using namespace std; class A { public: A() { cout<<"this is construction"<<endl; } virtual ~A() { cout<<"this is destruction"<<endl; } }; A fun() { A a; return a; } int main() { ...
分类:其他好文   时间:2015-04-16 10:18:30    阅读次数:125
二维数组名做参数传递问题
在用二维数组名作为参数传递时容易出现Segmention Error。这是因为不能正确为二维数组中元素寻址的问题,正确的方法如下: #include #include #define N 4 void testArray(int *a, int m, int n) { for(int i = 0; i < m; ++i) for(...
分类:编程语言   时间:2015-04-16 09:11:14    阅读次数:130
第六周项目五——友元类
定义下面两个类的成员函数(为体验友元类,实际上本例并不一定是一个好的设计,将两个类的合并为一个DateTime,日期、时间都处理更好) class Date; //对Date类的提前引用声明 class Time { public: Time(int,int,int); void add_a_second(Date &); //增加1秒,1秒后可能会到了下一天,乃到下一月、下一...
分类:其他好文   时间:2015-04-16 09:09:03    阅读次数:145
STL学习--vector的学习
(一):学习目标: 1:模板,包括函数模板和类模板 2:容器及其分类,以容器中的数据结构 3:容器vector和迭代器的具体用法(二):学习 1:函数模板/** * 学习模板函数 */ int max(int a,int b){ return a > b?a:b; }float max(float a,float b){ return a > b?a:b; }char max(cha...
分类:其他好文   时间:2015-04-16 09:07:48    阅读次数:188
[Android]获取当前WIFI的ip地址
配置清单文件加上权限private String getLocalIpAddress() { int paramInt = ((WifiManager) getSystemService("wifi")).getConnectionInfo().getIpAddress(); ...
分类:移动开发   时间:2015-04-16 09:05:16    阅读次数:169
mysql 5.5和5.6版本关于timestamp not null类型字段关于null的处理
Server version: 5.5.33-31.1-log Percona Server (GPL), Release rel31.1, Revision 566mysql> CREATE TABLE `t1` ( `ID` int(11) NOT NULL DEFAULT '1', `NA.....
分类:数据库   时间:2015-04-16 09:01:33    阅读次数:291
LeetCode Bitwise AND of Numbers Range
Given a range [m, n] where 0 >=1; 9 n>>=1;10 }11 return res;12 }13 14 int bitvalue(int m, int n) {15 i...
分类:其他好文   时间:2015-04-16 09:01:22    阅读次数:356
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!