Quantcast
Channel: C++博客-所有随笔
Browsing all 7882 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

2014年软件开发计划

一直想做个类似matlab的软件,支持矩阵运算,线代,微积分求解等功能大家有啥好的建议没?去年业余主要开发了GAudio今年开发了华佗中药大师业余版本,马上就要出入门版本咯一直想靠写软件发财ccsdu2009 2014-06-09 21:13 发表评论

View Article


Image may be NSFW.
Clik here to view.

MapReduce原理

转载自:http://www.cnblogs.com/wildman/archive/2008/08/22/1274175.html 我们为什么要关注MapReduce? 1.什么是MapReduce?        MapReduce 是由Google公司的Jeffrey Dean 和 Sanjay Ghemawat...

View Article


Image may be NSFW.
Clik here to view.

一个简单php日志类

转载自:http://blog.csdn.net/lxzo123/article/details/6371233 日志类如下,news目录为当前php文档根目录下子目录。 <?phpif( ! defined('BASEPATH') ) {    define ('BASEPATH', $_SERVER['DOCUMENT_ROOT'].'/news/');}require_once...

View Article

Image may be NSFW.
Clik here to view.

怎么表示同一对象

一些例子,我们创建符号表,当前的context的string_key去query一个对象,对同一对象的可表示为这个对象的引用和同一对象相关的数据结构封装得到的一个smart_ptr,    如在shared_ptr里,我们用对象&引用计数 指针,可得到同一对象,和同一对象的计数情况,    可用对象& 对象容器//,得到同一对象,并容易遍历所有同一对象,...

View Article

Image may be NSFW.
Clik here to view.

SGU 100 - 109 解题报告

     摘要: 100 A+B                                                测试题101 Domino   &nbs...  阅读全文英雄哪里出来 2014-06-10 13:43 发表评论

View Article


Image may be NSFW.
Clik here to view.

Twitter的分布式自增ID算法Snowflake实现分析及其Java、Php和Python版

     摘要: 转载自:http://www.dengchuanhua.com/132.html 在分布式系统中,需要生成全局UID的场合还是比较多的,twitter的snowflake解决了这种需求,实现也还是很简单的,除去配置信息,核心代码就是毫秒级时间41位+机器ID 10位+毫秒内序列12位。...

View Article

Image may be NSFW.
Clik here to view.

坚强的活着

每天都要坚强的,乐观的活着。即使遭受了天大的打击,或者被人打骂侮辱,也要坚强的活着。而后,就是努力工作,改变自己。---------------------------------------------是不是男人成熟了,就会有多话变成沉默寡言?在我的家庭生活里,似乎我沉默少语,才能让对方高兴。可是,那样,却让自己变得不再是原来的样子。痛苦,徘徊,沉默,煎熬。abcd2007 2014-06-11...

View Article

Image may be NSFW.
Clik here to view.

IsoAlgo Export Symbol Template

IsoAlgo Export Symbol Template eryar@163.com Key Words: IsoAlgo, Symbol Template When you want to check the symbol templates that you defined in IsoAlgoSymbolTemplate.xml, you can give the command...

View Article


Image may be NSFW.
Clik here to view.

(1)字符串复制

 1 #include "stdafx.h" 2 #include "iostream" 3 #include "assert.h" 4  5 using namespace std; 6  7 char* mystrcpy(char* dest, const char* src); // 1 const 8  9 10 int main(int argc, char* argv[])11 {12...

View Article


Image may be NSFW.
Clik here to view.

(2)字符串复制strncpy

 1 #include "stdafx.h" 2 #include "iostream" 3 #include "assert.h" 4  5 using namespace std; 6  7 char* mystrncpy(char* dest, const char* src, int n) 8 { 9     assert(dest!=NULL &&...

View Article

Image may be NSFW.
Clik here to view.

(3)判断回文字符串

 1 #include "stdafx.h" 2 #include "iostream" 3  4 using namespace std; 5  6 int isechol (const char* str) 7 { 8     const char *p = str; 9     const char *q = str + strlen(str) - 1;10     while (p <...

View Article

Image may be NSFW.
Clik here to view.

(4)字符串链接strcat

 1 #include "stdafx.h" 2 #include "iostream" 3 #include "assert.h" 4 #include "string" 5  6 using namespace std; 7  8 char* mystrcat(char* dest, const char* src) 9 {10     assert(dest!=NULL &&...

View Article

Image may be NSFW.
Clik here to view.

(5)字符串比较strcmp

 1 #include "stdafx.h" 2 #include "iostream" 3 #include "assert.h" 4  5 using namespace std; 6  7 int mystrcmp(const char* dest, const char* src) 8 { 9     assert (dest!=NULL && src!=NULL);10...

View Article


Image may be NSFW.
Clik here to view.

UINavigationController的使用,隐藏,定制

1.隐藏特定UIViewController的导航栏,在该视图控制器中加入代码:- (void) viewDidAppear:(BOOL)animated{    [super viewDidAppear:animated];    [self.navigationController setNavigationBarHidden:YES animated:YES];}- (void)...

View Article

Image may be NSFW.
Clik here to view.

SGU 110 - 119 解题报告

110 Dungeon                                                计算几何:射线和球体相交111 Very simple problem                             二分枚举112 a^b-b^a                                                二分求幂 113 Nearly...

View Article


Image may be NSFW.
Clik here to view.

不分配动态内存翻转单向链表

     摘要: 好久一段时间都没有写C/C++的代码,最近在做opencv的图像识别,昨天碰到一个特征点检测函数把ios的内存吃光了,导致我的ipad mini直接内存耗尽,我擦,不能运行。后来想了各种办法,最后只能把图像的分辨率降下来,然后内存就够用了。...

View Article

Image may be NSFW.
Clik here to view.

ios上opencv的图像特征点检测,核心代码。如果你做的更完善了,希望能反馈给我

////  simpleMatching.cpp//  openCV_test////  Created by mark on 14-6-3.//  Copyright (c) 2014年 mark. All rights reserved.//#include "simpleMatching.h"//#define DRAW_RICH_KEYPOINTS_MODE 1  //mark...

View Article


Image may be NSFW.
Clik here to view.

I;P : How to Hide System Key

      今天突然私信问'I;P怎么隐藏的系统虚拟键'的. 样子就如下图(对比).           可以看到三个系统虚拟键变成三个极小的点了. 实际I;P并没有达到'隐藏'的效果, 这应该只能算是'弱化'. 原因吗, 开始我没搞定'隐藏', 后来想着如果真隐藏了, 用户怎么操作系统按钮啊? 所以, '弱化'对于I;P也就够了...这个一点不难,...

View Article

Image may be NSFW.
Clik here to view.

mysql创建表

mysql创建表...

View Article

Image may be NSFW.
Clik here to view.

MySQL 存储过程初研究

转载自:http://www.open-open.com/lib/view/open1342179295542.html最近在做一个移动设备多类型登录的统一用户系统。其中记录用户资料的部分,因为涉及到更换设备的相同用户、同一个用户多类型同时具备的情况,所以想分辨出尽量少的用户去合理记录,就需要多次查询。于是决定研究一下 MySQL 存储程序。  MySQL 现在是 5.5 或者 5.6...

View Article
Browsing all 7882 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>