// C3_6.cpp : Defines the entry point for the console application. // // 輸出控制 #include "stdafx.h" #include using namespace std; int main(int argc, char* argv[]) { int nApple = 1 ; cout << "請輸入蘋果數目 : "; cin >> nApple; cout << endl << "目前共有 "<< nApple << " 個蘋果。" << endl; return 0; }