Thinking in C++ 2.0书籍源码光盘

源代码在线查看: static.cpp

软件大小: 400 K
上传用户: ldh_ncu10
关键词: Thinking in 书籍 源码
下载地址: 免注册下载 普通下载 VIP

相关代码

				//: C03:Static.cpp
				// From Thinking in C++, 2nd Edition
				// Available at http://www.BruceEckel.com
				// (c) Bruce Eckel 1999
				// Copyright notice in Copyright.txt
				// Using a static variable in a function
				#include 
				using namespace std;
				
				void func() {
				  static int i = 0;
				  cout 				}
				
				int main() {
				  for(int x = 0; x < 10; x++)
				    func();
				} ///:~
							

相关资源