c/c++ program demos