Source Code Downloads

Download free C and C++ source code, projects, and example programs at MYCPLUS. Explore ready-to-use code for learning, development, and building real-world applications.

There are 32 files, weighing 1.3 MiB with 395,774 hits in .

Displaying 21 to 32 of 32 files.

  Shortest Path
» 109.7 KiB - 12,065 hits - October 7, 2008
Shortest Path

  Shuffle Game
» 4.5 KiB - 19,761 hits - February 2, 2024
The primary objective of the Shuffle Game is to arrange a set of numbers in ascending order within a grid. Players achieve this by making valid moves that swap the position of numbers in the grid. The game keeps track of the number of moves made by the player.

  Snake Game
» 18.8 KiB - 63,088 hits - October 10, 2008
This program simulates the game "snake". A string of characters moves on the screen according to arrow keys pressed by user. If it touches itself or screen boundary, the program terminates. When the snake moves, in arbitrary screen positions some digit (1-9) appears.

  Snake Game
» 17.6 KiB - 9,437 hits - February 1, 2018
This C++ program is a classic snake game called "SNAKEMAN". The core mechanics of the game involve controlling a snake that moves around the screen, consuming food while avoiding obstacles and self-collision. The game incorporates various mazes, including "Open," "Box," and "Twisted," adding variety to the player's experience. The program uses BIOS interrupts and graphics functions from the Turbo C++ BGI library for rendering, making it a DOS-based game. With its structured gameplay loop, food spawning mechanics, and scoring system, "SNAKEMAN" offers a nostalgic gaming experience reminiscent of early computer games.

  The Standard C++ Library: Generic algorithms
» 35.5 KiB - 11,145 hits - October 7, 2008
Algorithms are at the core of computing. To be able to write an algorithm once and for all to work with any type of sequence makes your programs both simpler and safer. The ability to customize algorithms at runtime has revolutionalized software development.

  The Standard C++ Library: Generic containers
» 50.3 KiB - 6,443 hits - October 7, 2008
Container classes are the solution to a specific kind of code reuse problem. They are building blocks used to create object-oriented programs' they make the internals of a program much easier to construct.

  The Standard C++ Library: IOStreams
» 24.6 KiB - 9,970 hits - October 7, 2008
The iostreams classes are usually the first part of the C++ library that new C++ programmers learn to use. This chapter discusses how iostreams are an improvement over C's stdio facilities and explores the behavior of file and string streams in addition to the standard console streams.

  The Standard C++ Library: Strings
» 24.5 KiB - 6,807 hits - October 7, 2008
Standard C++ not only incorporates all the Standard C libraries (with small additions and changes to support type safety), it also adds libraries of its own. The string class member functions provide a fairly comprehensive set of tools for creating, modifying, and searching in strings.

  The Standard C++ Library: Templates
» 17.5 KiB - 6,725 hits - October 7, 2008
The Standard C++ Library: Templates

  Tic Tac Toe Game
» 17.2 KiB - 4,599 hits - October 10, 2008
Basic version of Tic Tac Toe Game

  Tic Tac Toe Game pro
» 174.0 KiB - 34,274 hits - February 14, 2020
Pro version of Tic Tac Toe console Game. It has been fully ported to latest C++ standard and can be build/compiled for 32bit or 64bit windows architectures using Visual Studio 2017. Complete Visual studio project is provided with the source code, so just download the code, open up the solution in visual studio and run the program. Enjoy!

  Vigenere Encryption and Decryption in C++
» 9.0 KiB - 4,994 hits - January 1, 2021
In this C++ source code, we show classes capable of encoding and decoding messages according to the Vigenere cipher. Both classes i.e. VigenereEncrypt and VigenereDecrypt inherit from the EncryptedFileWriter and EncryptedFileReader classes respectively. Both these classes override the encrypt function of EncryptedFileWriter and decrypt function of EncryptedFileReader to achieve the desired results.

   

 Page 2 of 2  «  1  2 

Scroll to Top