码迷,mamicode.com
首页 >  
搜索关键字:equal    ( 3393个结果
[4Clojure]解题记录-#80
Perfect NumbersDifficulty:MediumTopics:A number is "perfect" if the sum of its divisors equal the number itself. 6 is a perfect number because 1+2+3=6...
分类:其他好文   时间:2014-12-01 22:16:19    阅读次数:192
sicily 1500. Prime Gap
DescriptionThe sequence of n ? 1 consecutive composite numbers (positive integers that are not prime and not equal to 1) lying between two successive ...
分类:其他好文   时间:2014-11-30 14:00:35    阅读次数:192
HDOJ_ACM 2054 使用java
Problem DescriptionGive you two numbers A and B, if A is equal to B, you should print "YES", or print "NO".Inputeach test case contains two numbers A ...
分类:编程语言   时间:2014-11-27 20:29:03    阅读次数:224
Merge Sorted Array
Given two sorted integer arrays A and B, merge B into A as one sorted array. Note: You may assume that A has enough space (size that is greater or equal to m + n) to hold additional elements from ...
分类:其他好文   时间:2014-11-26 16:29:34    阅读次数:164
C++ 类型判断 typeid
class A{ virtual void f(){};};class B: public A{}; 在main方法中验证 Person* p = new son(); if (typeid(*p) == typeid(son)) { std::cout << "equal" << std::end...
分类:编程语言   时间:2014-11-25 23:10:36    阅读次数:159
[LeetCode] Merge Sorted Array
Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or equal...
分类:其他好文   时间:2014-11-25 16:00:36    阅读次数:165
第十一章:线程
pthread1、引言2、线程概念3、标示进程ID使用pid_t数据类型来表示,线程ID使用pthread_t数据类型来表示。#include int pthread_equal(pthread_t tid1, pthread_t tid2); // 用来比较两个线程ID是否相等pthread_t ...
分类:编程语言   时间:2014-11-25 10:42:24    阅读次数:186
《UNIX环境高级编程》读书笔记之线程(1)
1.线程标识 就像每个进程有一个进程ID一样,每个线程也都有一个线程ID。进程ID在整个系统中是唯一的,但线程ID不同,线程ID只在它所属的进程环境中有效。线程ID用pthread_t数据类型来表示,通过pthread_equal函数来比较两线程ID是否相同,通过pthread_equal函数可以得到当前线程的ID。 #include int pthread_equal(pthre...
分类:编程语言   时间:2014-11-24 20:58:02    阅读次数:289
STL之std::set、std::map的lower_bound和upper_bound函数使用说明
本文整理和介绍了STL中有序集合的lower_bound、upper_bound以及equal_range的功能及使用,梳理下相关知识。
分类:其他好文   时间:2014-11-23 21:38:32    阅读次数:205
==与equal()的区别
在看区别之前,首先来看下以下代码:public class TestEqual { /** * @param args * I am not responsible of this code. * They made me write it, against my...
分类:其他好文   时间:2014-11-22 12:00:39    阅读次数:141
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!