Advertising Console

    cpp.arrays.0: Using C++ To Create A Megamillions Program (Node 23)

    Djere University

    by Djere University

    ***This video neither promotes nor condones gambling.***

    This tutorial shows how solve a real-life problem with C++. We follow up on our C++ Megamillions program from the Node 23 Lesson. In this lecture, we will add the ability to print the generate lottery numbers out to a file.

    You can view this tutorial in its original context here:
    The LibreOffice Impress-generated presentation for this lecture is here:

    Learning Objectives:
    -Discuss the fstream header file.
    -Discuss the ofstream command.
    -Follow up on
    -Take the output of the C++ Megamillions program and print it to a file.