2012年2月22日

Visual Studio对无用引用(unused using)的处理方法

摘要: 以前以为添加到代码中的using都会被编译器编译,其实是不对的,微软有这样一段解释:Visual Studio notices when your code doesn’t use all of the libraries yourproject references, and automatically omits references to any unusedlibraries. This makes your binary slightly smaller than it would be ifunnecessary references were left in.翻译过来就是Visu 阅读全文

posted @ 2012-02-22 10:53 胡茂晓 阅读(732) 评论(0) 推荐(0) 编辑

C语言算法探究之(二):算法的准确性

摘要: 本篇是接着上一篇而写的。数学本身是非常严密的,在进行数学推导的过程中,一般要用到一些运算规则、恒等变换、公式变形等,而变换前后的式子是等价的。但在实际运算过程中,数学上完全等价的式子,其运算结果却差异很大。下面再举个例子说明:使用通常的求根公式,即:来求解一元二次方程:的两个实根。程序如下: 1 // exp2.cpp : Defines the entry point for the console application. 2 // 3 4 #include "stdafx.h" 5 #include "math.h" 6 7 int main(in 阅读全文

posted @ 2012-02-22 07:34 胡茂晓 阅读(294) 评论(0) 推荐(1) 编辑

导航