Skip to content

last-g/snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Snippets

This project contains simple snippets of C++ code and shows usage of CMake, stdlib and boost.

Common links

Structure

hello

Simple "hello world". Prints constant string to stdout and shows namespace usage.

tee

Reads all contents of one file and outputs it in file and stdout. Shows simple work with files and args.

btee

Reads all contents of one binary file and outputs it in file and stdout. Shows work with iterator.

fibbs

Reads number N from args and prints N fibonacci numbers. Shows usage of headers, boost library and vector.

Build

  • mkdir -p out
  • cd out
  • cmake ..
  • make

About

C++ snippets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published