Tags: Programming

Teaching Materials (1-8 of 8)

  1. Playing with pointers in C++

    05 Jun 2012 | Teaching Materials | Contributor(s): David A Saenz

    Two simple examples of how pointers and arrays relate to each other. These examples make a pointer point to every element of a 2D and 3D array and print their elements in order using pointer...

    http://nanohub.org/resources/14107

  2. Playing with structures in C++

    05 Jun 2012 | Teaching Materials | Contributor(s): David A Saenz

    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...

    http://nanohub.org/resources/14119

  3. 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...

    http://nanohub.org/resources/14179

  4. Playing with memory in C++

    05 Jun 2012 | Teaching Materials | Contributor(s): David A Saenz

    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...

    http://nanohub.org/resources/14157

  5. Playing with tokens in C++

    05 Jun 2012 | Teaching Materials | Contributor(s): David A Saenz

    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...

    http://nanohub.org/resources/14159

  6. Playing with classes in C++

    05 Jun 2012 | Teaching Materials | Contributor(s): David A Saenz

    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...

    http://nanohub.org/resources/14162

  7. Playing with arrays in C++

    28 May 2012 | Teaching Materials | Contributor(s): David A Saenz

    Two very simple examples on how to manage multidimensional arrays in C++. The compressed folder contains two examples. One on I/O of a 2D array and another on a 3D one. From these examples, an...

    http://nanohub.org/resources/14095

  8. C++ Programming Examples I

    02 Mar 2012 | Teaching Materials | Contributor(s): David A Saenz

    A set of simple C++ programming examples, from a basic Hello World to an example of the use of pointers. David Saenz, O'Reili book: Practical C++ programming Practical C++ Programming NCN Project,...

    http://nanohub.org/resources/13339