![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
lllcfr1
这个作者很懒,什么都没留下…
展开
-
Generating random distributions
Related Materials: Generation of Random Variables (Computational Statistics)http://community.topcoder.com/tc?module=Static&d1=tutorials&d2=randomNumbershttp://community.topcoder.com/tc?modul转载 2013-01-01 02:03:19 · 760 阅读 · 0 评论 -
Beauty of Programming [Essentials]
编程之美 Beauty of Programming[Essentials]3.1 String Rotation ==> Concatenation3.2 Loop Recursive3.3 Levenshtein distance (Edit distance), computing: DP ***3.4 Singly linked list3.5 How t原创 2013-02-13 00:17:29 · 628 阅读 · 0 评论 -
Optimizing C++
http://en.wikibooks.org/wiki/Optimizing_C%2B%2BKeep vectors capacityTo empty a vector x object without deallocating its memory, use the statement x.resize(0);; to empty it and deallo转载 2014-01-08 16:08:45 · 797 阅读 · 0 评论 -
C++: Do { ... } While (0)
An example from http://webgpu.hwu.crhc.illinois.edu/mp/0#define wbCheck(stmt) do { \ cudaError_t err = stmt;转载 2014-03-12 23:19:44 · 586 阅读 · 0 评论 -
Effective STL
http://book.douban.com/subject/1456960/(items on) STL efficiency转载 2013-09-09 22:17:26 · 833 阅读 · 0 评论 -
SDL check in Visual Studio 2012
http://msdn.microsoft.com/en-us/library/vstudio/jj161081.aspxhttp://blogs.msdn.com/b/sdl/archive/2011/12/02/security.aspx[maybe obsolete] http://stackoverflow.com/questions/119578/disabling-warnin原创 2013-04-14 16:01:46 · 2304 阅读 · 0 评论 -
Effective Modern C++
Effective Modern C++42 specific ways to improve your use of C++11 and C++14Scott Meyers转载 2015-01-24 05:29:56 · 790 阅读 · 0 评论 -
Elements of Modern C++ Style
http://herbsutter.com/elements-of-modern-c-style/Elements of Modern C++ Style“C++11 feels like a new language.” – Bjarne StroustrupThe C++11 standard offers many useful new f转载 2015-06-21 08:09:39 · 967 阅读 · 0 评论 -
C++: abort, terminate or exit?
http://stackoverflow.com/questions/2820285/abort-terminate-or-exitabort indicates "abnormal" end to the program, and raises the the POSIX signal SIGABRT, which means that any handler tha转载 2015-06-20 04:30:53 · 1768 阅读 · 0 评论 -
Five Popular Myths about C++
www.stroustrup.com/Myths-final.pdfFive Popular Myths about C++Bjarne Stroustrup转载 2015-05-24 08:33:45 · 681 阅读 · 0 评论 -
《C Programming Language: A Modern Approach》
P4. underlying philosophy: (OS or system softwares)(1) low-level; (2) small; (3) permissiveStrengths: (1) efficiency (2) portability (3) power (4) flexibility (5) standard library (6) integration转载 2013-07-29 21:54:59 · 2130 阅读 · 0 评论 -
C++ Volatile Variables
http://en.wikipedia.org/wiki/Volatile_variablehttp://www.cplusplus.com/forum/beginner/7762/http://msdn.microsoft.com/en-us/library/12a04hfd%28v=vs.110%29.aspxhttp://www.cl.cam.ac.uk/teaching/111原创 2013-03-11 19:01:58 · 837 阅读 · 0 评论 -
C++ Namespace
related article:I don’t want to see another “using namespace xxx;” in a header file ever again-----------from google c++ style guide: http://google-styleguide.googlecode.com/svn/trunk/cppgui转载 2013-01-06 15:15:13 · 563 阅读 · 0 评论 -
Where to put the const?
In Google's C++ Style Guide, the location of const is described as follows.Some people favor the form int const *foo to const int* foo. They argue that this is more readable because it's more原创 2013-01-31 19:43:40 · 547 阅读 · 0 评论 -
_countof()
http://msdn.microsoft.com/en-us/library/vstudio/6ybhk9kc.aspxhttp://www.cnblogs.com/tigercopy/archive/2009/11/03/1595089.html转载 2013-02-05 10:07:52 · 599 阅读 · 0 评论 -
C++ inline functions
Function inlining problems: http://msdn.microsoft.com/en-us/library/78t98006.aspxThe -inl.h files: http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#The_-inl.h_Files转载 2013-02-04 20:10:49 · 389 阅读 · 0 评论 -
c++ struct new
http://www.cplusplus.com/forum/general/37962/The first constructor - without parenthesis - provides what is called default initialization (do not confuse with default constructor). Default initi转载 2013-02-05 15:38:00 · 1057 阅读 · 0 评论 -
c++ assertion
from usaco: usacoprobfix.htmPut sanity checks around all array indexing (Pascal does this by default). The assert() (from assert.h) routine is a nice tool for this. assert() fails if the paramet转载 2013-02-10 21:28:57 · 465 阅读 · 0 评论 -
Polymorphism
http://en.wikipedia.org/wiki/Polymorphism_(computer_science)http://en.wikipedia.org/wiki/Polymorphism_in_object-oriented_programminghttp://www.cplusplus.com/doc/tutorial/polymorphism/http://转载 2012-12-23 22:41:11 · 493 阅读 · 0 评论 -
QueryPerformanceCounter
about timershttp://msdn.microsoft.com/en-us/library/windows/desktop/ms644900%28v=vs.85%29.aspxhttp://support.microsoft.com/kb/815668http://support.microsoft.com/kb/172338http://msdn.mi转载 2013-02-05 14:45:02 · 1424 阅读 · 0 评论 -
Function object
http://en.wikipedia.org/wiki/Function_object#include #include #include #include using namespace std;class functor {public: void operator()(int k) { cout << "k = "转载 2013-04-25 10:48:31 · 658 阅读 · 0 评论 -
A Tour of C++
A Tour of C++Bjarne StroustrupChapter 1. The BasicsThe semantics of argument passing are identical to the semantics of copy initialization (type checked and implicit argument type conversi转载 2015-06-30 13:14:02 · 2165 阅读 · 0 评论