摘要:
void _Assert(char* strFile, unsigned line){ fflush(stdout); fprintf(stderr, "\nAssert Failed %s, line:%u\n", strFile, line); fflush(stderr); abort();}#ifdef _DEBUG#define MY_ASSERT(f) \ if (f) \ NULL; \ else \ _Assert(__FILE__, __LINE__);#else#de... 阅读全文
posted @ 2012-09-06 21:57
小 楼 一 夜 听 春 雨
阅读(374)
评论(0)
推荐(0)
摘要:
from:http://www.udpwork.com/item/8032.html问题看以下代码:#include <algorithm>#include <ctime>#include <iostream>int main(){ // generate data const unsigned arraySize = 32768; int data[arraySize]; for (unsigned c = 0; c < arraySize; ++c) data[c] = std::rand() % 256; // !!! with this, t. 阅读全文
posted @ 2012-09-06 11:04
小 楼 一 夜 听 春 雨
阅读(329)
评论(0)
推荐(0)

浙公网安备 33010602011771号