Think in C++ 2nd

源代码在线查看: static.cpp

软件大小: 4587 K
上传用户: huajunun
关键词: Think 2nd 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();

				} ///:~

							

相关资源