Skip to content

pmengiba/cpp00

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

CPP Module 00

Introductory C++ module covering namespaces, classes, member functions, streams, and basic OOP concepts.

Exercises

Exercise 00: Megaphone

A simple program that takes command-line arguments and outputs them in uppercase.

Usage:

cd ex00
make
./megaphone "hello world"
# Output: HELLO WORLD

If no arguments provided, outputs: * LOUD AND UNBEARABLE FEEDBACK NOISE *

Exercise 01: My Awesome PhoneBook

A contact management system that stores up to 8 contacts and allows adding and searching them.

Usage:

cd ex01
make
./phonebook

Commands:

  • ADD - Add a new contact (prompted for: first name, last name, nickname, phone number, darkest secret)
  • SEARCH - Display all contacts in a table and view details by index
  • EXIT - Quit the program

Each field is displayed as 10 characters wide, truncated with a dot (.) if longer.

Compilation

Each exercise has its own Makefile. Simply run:

make      # Compile
make clean # Remove object files
make fclean # Remove all compiled files
make re    # Recompile

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors