/awesome-cpp-things

This repo is all about some basic but cool CPP things.

Primary LanguageC++MIT LicenseMIT

awesome-cpp-things

CMake

yeslinux-nomac.cpp

A program that will print something according to the OS using Preprocessors macros( i.e. Linux/Mac/Windows). (CMake)

For Linux Output: This is linux
For Mac Output: This is mac

compile_time_variable.cpp

A program that assigns value to a variable at the compile time. (TODO:CMake)

Steps:
run g++ -DNAME=\"<Write your name here>\" compile_time_variable.cpp -o output
run ./output

For example:
run g++ -DNAME=\"Rakhi\" compile_time_variable.cpp -o output
run ./output

square.cpp

Demonstrate conditional preprocessor directives to manage the duplicacy of header files.