[参数详解]-c 只激活预处理,编译,和汇编,也就是他只把程序做成obj文件 例子用法: gcc -c hello.c 他将生成.o的obj文件-S 只激活预处理和编译,就是指把文件编译成为汇编代码。 例子用法 gcc -S hello.c 他将生成.s的汇编代码,你可以用文本编辑器...
分类:
其他 时间:
2015-01-25 08:40:37
收藏:
0 评论:
0 赞:
0 阅读:
198
Random Samples and Permutationssample(x, size, replace = FALSE, prob = NULL) sample.int(n, size = n, replace = FALSE, prob = NULL)Samples in Normal Di...
分类:
其他 时间:
2015-01-25 08:40:27
收藏:
0 评论:
0 赞:
0 阅读:
219
在使用面向对象的思想进行系统设计时,前人共总结出了7条原则,它们分别是:单一职责原则、开闭原则、里氏替换原则、依赖注入原则、接口分离原则、迪米特原则和优先使用组合而不是继承原则。1.单一职责原则(SRP) 单一职责原则的核心思想就是:系统中的每一个对象都应该只有一个单独的职责,而所有对象所关注的就....
分类:
其他 时间:
2015-01-25 08:40:17
收藏:
0 评论:
0 赞:
0 阅读:
284
问题:在网上看人写了这么一段代码: 1 class A 2 { 3 public: 4 A() 5 { 6 std::cout #include "A.h" 29 30 void* operator new[](size_t size) ...
分类:
编程语言 时间:
2015-01-25 08:40:07
收藏:
0 评论:
0 赞:
0 阅读:
283
精髓:operator new()完成的操作一般只是分配内存;而构造函数的调用(如果需要)是在new运算符中完成的。operator new和new 运算符是不同的,operator new只分配内存,而只要new出现无论是不是operator new都会调用new运算符从而调用析构函数。例子是:#...
分类:
编程语言 时间:
2015-01-25 08:39:57
收藏:
0 评论:
0 赞:
0 阅读:
336
gcc的编译流程分为四个步骤,分别为:预处理(Pre-Processing)编译(Compiling)汇编(Assembling)链接(Linking) 以hello.c为例子,在这四个步骤中可以设置选项分别生成hello.i, hello.s, hello.o以及最终的hello文件: he...
分类:
其他 时间:
2015-01-25 08:39:47
收藏:
0 评论:
0 赞:
0 阅读:
267
首先要注意:do..while(0)代表do里面的东西至少被执行一次,在这里仅仅执行一次。此种用法有三个用处:代替{}代码块,实现局部作用域。在某些宏定义时非常有用:#define f(x) do {\ some_code; some_code;} while(0)(while(0)...
分类:
其他 时间:
2015-01-25 08:39:37
收藏:
0 评论:
0 赞:
0 阅读:
353
1 unit Unit1; 2 3 interface 4 5 uses 6 Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, 7 Dialogs, StdCtrls, ...
分类:
Windows开发 时间:
2015-01-25 07:37:27
收藏:
0 评论:
0 赞:
0 阅读:
356
对一棵树黑白染色一定符合题意。图一定有生成树。因此,仅有一个孤立节点的联通块不合题意。DFS。#includeusing namespace std;int n,m,en,x,y,v[1000001],first[500001],next[1000001],cnt;bool vis[500001];...
分类:
其他 时间:
2015-01-25 07:37:17
收藏:
0 评论:
0 赞:
0 阅读:
261
Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another express...
分类:
其他 时间:
2015-01-25 07:37:07
收藏:
0 评论:
0 赞:
0 阅读:
183
#includeusing namespace std;int T,n,m,x,y;long long sum[100001],ans,d[100001];int main(){ scanf("%d",&T); for(;T;--T) { scanf("%d%d",&n,&m); f...
分类:
其他 时间:
2015-01-25 07:36:57
收藏:
0 评论:
0 赞:
0 阅读:
289
方法一:在my.ini的[mysqld]字段加入:skip-grant-tables重启mysql服务,这时的mysql不需要密码即可登录数据库然后进入mysqlmysql>usemysql;mysql>更新usersetpassword=password(‘新密码‘)WHEREUser=‘root‘;mysql>flushprivileges;运行之后最后去掉my.ini中的skip-gran..
分类:
数据库技术 时间:
2015-01-25 06:35:38
收藏:
0 评论:
0 赞:
0 阅读:
355
Redis最新版本是2.8.19cd/data/app_software/wgethttp://download.redis.io/releases/redis-2.8.19.tar.gztarzxvfredis-2.8.19.tar.gzmakemkdir-p/data/app_platform/redis/{bin,conf}cpsrc/redis-server/data/app_platform/redis/bin/cpsrc/redis-cli/data/app_platform/redis..
分类:
其他 时间:
2015-01-25 06:35:08
收藏:
0 评论:
0 赞:
0 阅读:
1342
如何把我们需要获取的信息按照想要的格式输出呢,这一节,主要讨论下关于格式化输出结果可以使用Format-List命令使用列格式显示Get-Mailboxrobin.pang|Format-List也可以对结果进行表格的样式进行输入Get-Mailboxrobin.pang|Format-Tablename,alias可以时候用autosize参数让表..
分类:
系统服务 时间:
2015-01-25 06:34:28
收藏:
0 评论:
0 赞:
0 阅读:
321
usingUnityEngine;usingSystem.Collections;//摄像机跟随publicclassFollowPlayer:MonoBehaviour{privateTransformplayer;//角色privateVector3offsetPosition;//位置便宜privateboolisRotating=false;//是否有在滑动publicfloatdistance;//向量长度publicfloatscrollSpeed=3;/..
分类:
编程语言 时间:
2015-01-25 06:33:37
收藏:
0 评论:
0 赞:
0 阅读:
420
//人物方向和判断点击事件加点击特效usingUnityEngine;usingSystem.Collections;publicclassplayerDir:MonoBehaviour{publicGameObjecteffect_click_prefab;privateboolisMoving=false;//鼠标是否被按下publicVector3targetPosition=Vector3.zero;//目标位置privatePlayerMovep..
分类:
移动平台 时间:
2015-01-25 06:33:28
收藏:
0 评论:
0 赞:
0 阅读:
1406
转载请注明出处:jiq?钦's
technical Blog
最近在自己写分布式注册中心的Web管理界面,需要点击左边树节点时,请求后台Action查询该节点的详细数据,然后异步刷新右边的节点信息区域。
异步刷新用了Jquery对Ajax的封装:
function zTreeOnClick(event, treeId, treeNode) {
$.ajax({...
分类:
Web开发 时间:
2015-01-25 06:32:37
收藏:
0 评论:
0 赞:
0 阅读:
428
一:OpenGL_ES怎么和操作系统原生窗口联系的?
OpenGL_ES应用程序运行linux,windows,MacOS或其他操作系统上的,这些操作系统都有自己的窗口系统,这些窗口都有一些配置参数,比如当前画刷颜色,窗口尺寸,状态信息等,这叫做窗口环境,Windows上又叫设备环境,同样OpenGL_ES要向窗口绘制内容,也需要有一个和应用程序窗口环境相匹配的渲染环境,叫Op...
分类:
其他 时间:
2015-01-25 06:31:37
收藏:
0 评论:
0 赞:
0 阅读:
330
如何在Spring框架中使用RMI技术...
分类:
编程语言 时间:
2015-01-25 06:31:07
收藏:
0 评论:
0 赞:
0 阅读:
350
Infragistics 汉化实例:Infragistics.Shared.ResourceCustomizer rc=Infragistics.Win.UltraWinGrid.Resources.Customizer; rc.SetCustomizedString("Sum...
分类:
其他 时间:
2015-01-25 06:29:57
收藏:
0 评论:
0 赞:
0 阅读:
420