Playing with shells in C++
05 Jun 2012 | Teaching Materials | Contributor(s): David A Saenz
Although simple, this example portrays the essential parts of a shell program. In this example we can appreciate how other examples like the tokenizer can get merged with new code to create a new program. Also a basic introduction to the creation of child processes is exemplified. Lastly, this...
Playing with classes in C++
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 SaenzNCN Project, Purdue University
Playing with tokens in C++
In this example, the use of a tokenizer function explains how the process of separating a string into tokens works. A programmer is usually interested in tokens because they serve as a raw input for terminal shells. David SaenzNCN Project, Purdue University
Playing with memory in C++
This resource contains a couple of programs exemplifying the use of the function "malloc" for static and dynamic memory allocation. For making the programs understandable, many details have been simplified, but the main idea, (i.e. memory allocation/deallocation) is perfectly portrayed.David...
Playing with structures in C++
Simple examples of how to work with structures in C++. The examples within the compressed folder include simple code which exemplifies their use to form more complex ones like linked lists. There is an example on simple linked lists and there is another one on doubly linked lists.David Saenz
Top 5 shown | See more results