C and C++ samples