Are you an EPFL student looking for a semester project?
Work with us on data science and visualisation projects, and deploy your project as an app on top of Graph Search.
This lecture covers the three main uses of static variables in C++. The first use is associated with a local variable, having limited scope and permanent lifetime. The second use is related to a global variable, making it confidential to the module. The third use is linked to an attribute, sharing its value among all instances of a class. Examples and syntax are provided to illustrate each use case.