20130812 wcdj (明天七夕,紀念結婚一周年)1 下載最新支援C++11的GCC編譯器http://gcc.gnu.org/http://gcc.gnu.org/gcc-4.8/(下載gcc 4.8.1)GCC 4.8.1 will beC++11 feature-complete[2013-04-01]Support for C++11 ref-qualifiers was added to the GCC 4.8 branch, making G++ the first C++
對技術執著的人,比如說我,往往對一些問題,不僅想做到“知其然”,還想做到“知其所以然”。C語言可謂博大精深,即使我已經有多年的開發經驗,可還是有許多問題不知其所以然。某天某地某人問我,C語言中函數參數的入棧順序如何?從右至左,我隨口回答。為什麼是從右至左呢?我終究沒有給出合理的解釋。於是,只好做了個作業,於是有了這篇小博文。#include <stdio.h>void foo(int x, int y, int z){ printf("x = %d at [%X]/n"
Adding a Custom System Call to Ubuntu Linux in [C]REQUIRES:Compiling a [C] program in LinuxToday we are going to add a custom “Hello World” system call toUbuntu 9.04 Linux using the kernel version: 2.6.28-11.First things first, we need to figure out
/*** This program reads input lines from the standard input and prints** each input line, followed by just some portions of the lines, to** the standard output.**** The first input is a list of column numbers, which ends with a** negative number.
C++ code coverage profiling with GCC/GCOVSubmitted by bobah on Wed, 01/27/2010 - 17:42http://www.bobah.net/d4d/tools/code-coverage-with-gcovThe coverage analysis with GCC/GCOV includes three following steps * instrumented application build —
今天聽到一個朋友來TX面試,又問到了生僻的C++關鍵字,那個汗,記得我那個時候面試的時候也被問到過,特總結如下: bad_typeid 很生僻,基本在幾年的開發中沒有用過,要理解bad_typeid這個關鍵字,首先得看下typeid這個關鍵字的使用,下面是一段英文描述:The typeid operator will accept a pointer when dereferenced evaluates to a type:typeid(*P); If