On Monday July 6th, the nanoHUB will be intermittently unavailable due to scheduled maintenance. All tool sessions will be shut down early in the morning. Home directories and tools will be unavailable most of the day. We apologize for any inconvenience this may cause. close


Support Options

Submit a Support Ticket


Playing with classes in C++

By David A Saenz

Purdue University

Published on


This is a simple example of how to use classes in C++. The program within the folder is a simple terminal TicTacToe game. It makes use of the TicTacToe class where all data and methods are defined.


David Saenz

Sponsored by

NCN Project, Purdue University

Cite this work

Researchers should cite this work as follows:

  • David A Saenz (2012), "Playing with classes in C++," http://nanohub.org/resources/14162.

    BibTex | EndNote


nanoHUB.org, a resource for nanoscience and nanotechnology, is supported by the National Science Foundation and other funding agencies. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.