C++入門經典-例4.9-輸出不同生命週期的變量值

C++入門經典-例4.9-輸出不同生命週期的變量值 1:代碼如下: // 4.9.cpp : 定義控制檯應用程序的入口點。 // #include "stdafx.h" #include<iostream> using namespace std; void main() { int i,j,k;//此k的生命週期是整個主函數 cout <<"input the number:"
相關文章
相關標籤/搜索