This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void gen_rand_num_nondup(int *arr, int cnt, int s_num, int e_num) | |
{ | |
int range = e_num - s_num; | |
int in, im; | |
for (in = 0, im = 0; in < range && im < cnt; ++in) { | |
int rn = range - in; | |
int rm = cnt - im; | |
if (rand() % rn < rm) | |
arr[im++] = in + s_num; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A { | |
private: | |
A() {}; | |
public: | |
static A factory_A() { reutrn A(); } | |
} | |
// friend declaration for std::make_shared | |
// works on VS2010 | |
friend std::tr1::_Ref_count_obj<T> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Project Name : PHP Web Shell --> | |
<!-- Version : 0.01 --> | |
<!-- First development date : 2012/07/31 --> | |
<!-- This Version development date : 2012/07/31 --> | |
<!-- language : html, css, javascript, php --> | |
<!-- Developer : majorPE --> | |
<!-- Web site : http://blog.naver.com/xornrbboy --> | |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> |
NewerOlder