Source: C++ 中的Overload、Override和Overwrite
在C++語言中有一組基礎的概念一直都容易混淆:Overload、Override和Overwrite分別表示什麼意思?下面把這三個概念整理一下:
Continue reading »Source: C++ 中的Overload、Override和Overwrite
在C++語言中有一組基礎的概念一直都容易混淆:Overload、Override和Overwrite分別表示什麼意思?下面把這三個概念整理一下:
Continue reading »Source: -static option for gcc?
I'm wondering what the -static option on gcc does. I need this option when compiling a certain application, however when I do I get the following error:
gcc -static -O3 -o prog prog.c
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
What needs installation?
Continue reading »Source: Detect if Visual C++ Redistributable for Visual Studio 2012 is installed
It depends on what version you are using. These two 2012 keys have worked well for me with their corresponding versions to download for Update 4. Please be aware that some of these reg locations may be OS-dependent. I collected this info from a Windows 10 x64 box. I'm just going to go ahead and dump all of these redist versions and the reg keys I search for to detect installation.:
Continue reading »Algorithms and Data Structures:
https://www.algolist.net/
Source: [Arduino] millis() 使用注意事項
最近在在Arduino上每隔五分鐘要用MQTT傳一次資料給SERVER,所以
用millis() 這個函式來取得arduino執行程式到目前過了幾個milliseconds
但這個值是用unsign long (32bit) 儲存的,所以大概在約50天左右就會overflow,
Source: C 語言緩衝區溢位攻擊範例程式碼
本篇以 C 語言的實際範例,解釋緩衝區溢位攻擊的原理。
緩衝區溢位攻擊是一種典型的攻擊方式,雖然這種手法已經有一段的歷史,不過還是有可能因為程式設計者的疏忽,讓程式存在這樣的漏洞。