Skip to content
This repository has been archived by the owner on Apr 9, 2019. It is now read-only.

remel19/randomProjectsCpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

randomProjectsCpp

These are some random C++ projects from my free time.

Each file is an individual and standalone project.

Each File can be compiled and run from terminal/cmd.

To compile run(assuming complier is setup correctly):

$ g++ filename.cpp

This will output an a.out executable file. To run the program use this command:

$ ./a.out

Description of the each program files

Adder.cpp

  • This Program return the sum of any number of parameters. It uses Variadic Templates and recursion to get the sum of the parameters.

Quadraric_Equation.cpp

  • This program solves and returns the value of x using a quadraric equation upon providing the coefficients of a,b,c. It takes in the coefficients and return the values of x with appropriate imaginary numbers.

TicTacToe.cpp

  • This is a game. Upon running, this program asks the user to input Integer for their moves and prints the current state of the box after each moves in the terminal. It will keep asking for users input till someone wins or it's a draw.

Counting_ones.cpp

  • This program takes in an Integer as an input and returns the number of ones in that Integer.