- Game Development Patterns and Best Practices
- John P. Doran Matt Casanova
- 116字
- 2021-07-02 23:43:45
Static as a file global variable
As you may be aware, C++ is a programming language closely related to the C programming language. C++ was designed to have most of the same functionality that C had and then added more things to it. C was not object-oriented, and so, when it created the static keyword, it was used to indicate that source code in other files that are part of your project cannot access the variable, and that only code inside of your file can use it. This was designed to create class-like behavior in C. Since we have classes in C++ we don't typically use it, but I felt I should mention it for completeness.
推薦閱讀
- 程序員面試白皮書(shū)
- 數(shù)據(jù)結(jié)構(gòu)(Python語(yǔ)言描述)(第2版)
- Building Cross-Platform Desktop Applications with Electron
- Apache Mesos Essentials
- Express Web Application Development
- Visual Basic程序設(shè)計(jì)實(shí)驗(yàn)指導(dǎo)(第二版)
- Mastering Android Game Development
- Tableau 10 Bootcamp
- Couchbase Essentials
- Java EE企業(yè)級(jí)應(yīng)用開(kāi)發(fā)教程(Spring+Spring MVC+MyBatis)
- Getting Started with Python
- Lync Server Cookbook
- OpenCV:Computer Vision Projects with Python
- C#開(kāi)發(fā)之道
- 架構(gòu)寶典