Skip to content

DreamPearl/awesome-cpp-things

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published