发布时间:2013-04-22 22:24:33
1.//整数转换成字符串itoa函数的实现#include "stdafx.h"#include < iostream>using namespace std;void itoaTest(int num,char str[] ){ int sign = num,i = 0,j = 0; char temp[11]; .........【阅读全文】
发布时间:2013-04-21 23:10:33
1.Write a method which can remove the same unit from a Array which has been sorted.//在排序好的数组中移除相同的元素 <!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->public int [] RemoveCommon(int [] a){ &nbs.........【阅读全文】
发布时间:2013-04-20 14:08:34
动态分配资源的自动释放的英文是 Resource Allocation In Initialization,通常缩写成RAII。根据《C++ Primer》第4版:“During stack unwinding, the function containing the throw, and possibly other functions in the call chain, are exited prematurely. In general, these functions will hav.........【阅读全文】