码迷,mamicode.com
首页 >  
搜索关键字:compare    ( 1961个结果
C++文件操作,判断两个文件内容是否相等(被修改)
思路: 方法1:MD5校验文件内容。 方法2:获取文件最后修改时间。 这里介绍方法1下载MD5类库1、头部引用:#include "lib/md5.cpp"2、自己写成一个function,param输入文件路径,return md5字符串string compare(string fol...
分类:编程语言   时间:2014-11-10 15:28:21    阅读次数:185
MySQL中CASE的使用
语法说明:方式一:CASE value WHEN [compare_value] THEN result [WHEN [compare_value] THEN result ...] [ELSE result] END方式二:CASE WHEN [condition] THEN result [WH...
分类:数据库   时间:2014-11-09 23:27:26    阅读次数:245
Bubble Sort
We have 8 numbers. Sort as ascend.1st loop, we compare 7 times (for 8 numbers), and found the largest 8.2nd loop, we compare 6 times (for 7 numbers), ...
分类:其他好文   时间:2014-11-09 12:24:42    阅读次数:184
Treeview 排序
1. 继承 IComparer 2. treeView1.TreeViewNodeSorter = this; 3. 实现IComparer public int Compare(object x, object y) { TreeNode n1 = x as TreeNode; TreeNode ...
分类:编程语言   时间:2014-11-09 11:02:23    阅读次数:270
leetcode 9.Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space.Notes:1) Negative number is notpalindrome.2) Compare from head to tail, cons...
分类:其他好文   时间:2014-11-08 16:43:57    阅读次数:124
OpenCASCADE BRep vs. OpenNURBS BRep
Abstract. BRep short for Boundary Representation. First give the definition of the BRep, then compare the BRep mode between OpenCASCADE and OpenNURBS....
分类:其他好文   时间:2014-11-08 13:21:09    阅读次数:531
c# 字符串排序 (面试题)
将一些字符串,如:"bc","ad","ac","hello","xman","little","during","day"排序的结果:“ad”,"ac",“bc”,“during”,“day”,“hello”,“little”,“xman”采用框架自带的排序函数来调用自定义的Compare方法实现...
分类:编程语言   时间:2014-11-07 18:26:42    阅读次数:271
Java线程之三 AtomicInteger
AtomicInteger中用到的CAS(compare and swap)是整个concurrent的基石。上面分析了实现所用到的原理,其中缓存锁定方式只需要理解能够保证同步的原理即可。...
分类:编程语言   时间:2014-11-05 14:50:52    阅读次数:137
[译]为Unity制作WP8插件
前言: 在用Unity发布WP8应用时候,经常会遇到一些API不能用的情况,例如弹出MessageBox,无法使用string.Compare(string,string,bool)等等之类的问题。那么如何解决这些问题呢?解决方案之一就是制作插件。在Unity Manual中有这样一篇文章:htt....
分类:编程语言   时间:2014-11-04 22:32:03    阅读次数:306
【转】ACM高精度加减乘除模板
#include #include using namespace std;inline int compare(string str1, string str2){if(str1.size() > str2.size()) //长度长的整数大于长度小的整数return 1;else if(str1...
分类:其他好文   时间:2014-11-03 22:17:20    阅读次数:297
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!