SuzalShrestha / practice-cpp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

C++ Workspace

This workspace contains various C++ programs demonstrating different concepts.

Structure

The workspace is organized with each program in its own directory. Here are some of the programs included:

  • arrayofobject: A program that demonstrates the use of an array of objects.
  • arrayofpointers: A program that demonstrates the use of an array of pointers.
  • basicToClass: A program that converts a basic C++ program to a class-based program.
  • binaryOperatorOverloading: A program that demonstrates the overloading of binary operators in C++.
  • class: A program that demonstrates the basic structure and usage of a class in C++.
  • classTemplate: A program that demonstrates the use of class templates in C++.
  • ClasstoBasic: A program that converts a class-based C++ program to a basic C++ program.
  • complex: A program that demonstrates the implementation of complex numbers in C++.
  • constructor: A program that demonstrates the use of constructors in C++.
  • employee: A program to write information of employee in a file and display in console.
  • exception: A program that demonstrates the use of exception handling in C++.
  • fileHandling: A program that demonstrates file handling in C++.
  • friend: A program that demonstrates the use of friend functions and friend classes in C++.
  • inheritance: A program that demonstrates the concept of inheritance in C++.
  • multipleCatch: A program that demonstrates the use of multiple catch blocks for different exceptions in C++.
  • namespace: A program that demonstrates the use of namespaces in C++.
  • objectArgument: A program that demonstrates the use of objectsas function arguments in C++.

Running the Programs

Each program can be run individually. For example, to run the fileHandling program, navigate to its directory and run the following command:

g++ fileHandling.cpp -o fileHandling
./fileHandling

About


Languages

Language:C++ 99.5%Language:C 0.5%