Skip to content

gityojo/MAC_cpp_Samples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

491 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MAC C/C++ Samples

C++ sample codes for MAC

Prerequisites

FileUtil

  • read and write Text File
  • parse file fullpath to dir name, file name, file extension

###ConsoleUtil emulater for kbhit function of Windows
display progress in stdout

Class

C++ Class Sample
display exam score of each students

signal

catch and handle POSIX signals

codecvt

convert UTF-8 to/from UTF-16

string

string to uppercase / lowercase

string_streams

the fmemopen and open_memstream functions allow you to do I/O to a string or memory buffer.

bind

bind function

map

map with int or string key

unordered_map

unordered map with string key or vector / class / enum

shuffle

shaffle vector / string

random

generate random number / string

search

find first matched element in int vector

sort

sort int vector using std::sort

input

input string from std::cin

system

get the path of the main executable for macOS

time

get formated local time

thread

run two threads

array

2-demension array

recursion

recursion sample

math

C mathematical functions

menu

CUI menu

mail builder

sample codes that create mail message

base64

base64 encoder decoder

sqlite

a small, fast, self-contained, high-reliability, full-featured, SQL database engine.

sqlitecpp

C++ SQLite3 wrapper.

berkeley-db

High performance key/value database

glib

low-level system libraries written in C

zlib

data-compression library
compress and decompress file

icu4c

C/C++ libraries for Unicode and globalization
read sjis file convrt to UTF-8

c11

C Sample since std C11
generate random number using random()

get_opt

parse commandline options

json-c

parse json using json-c

jsoncpp

parse json using jsoncpp

boost

split string

gflags

parse commandline flags

glog

write log to file

cctz

display local time

abseil

open source collection of C++ libraries

nss

Mozilla Network Security Services

tclap

test for command line parser

fftw

calc FFT

assimp

draw 3D model from file

cairo

draw arc to png file

gnuplot

plot sin wave

libiconv

convert text file codeset to UTF8

glad

Multi-Language GL/GLES/EGL/GLX/WGL Loader-Generator

glm

header only C++ mathematics library

http

https://github.com/ohwada/MAC_cpp_Samples/blob/master/http.md sample code for HTTP Client and Server

network

tcp server and client

libcurl

the multiprotocol file transfer library

curlpp

C++ wrapper for libcurl

openssl

toolkit for the TLS (Transport Layer Security ) and SSL( Secure Sockets Layer) protocols.

gnutls

library implementing the SSL, TLS and DTLS protocols

libmicrohttpd

C library to make it easy to run an HTTP server

cpp-httplib

A C++11 single-file header-only cross platform HTTP/HTTPS library

mail

https://github.com/ohwada/MAC_cpp_Samples/blob/master/mail.md sample code for mail

postfix

send mail using mail command or sensdmail command

libquickmail

C library for sending e-mail

vmime

C++ class library for working with RFC-822 and MIME messages and Internet messaging services like IMAP, POP or SMTP.

curlsmtp

A mail sending tool

curlsmtp2

this project is fork from curlsmtp

gmail api

send and recieve mail with Gmail API

AudioPlayer

https://github.com/ohwada/MAC_cpp_Samples/tree/master/AudioPlayer.md

OpenAL

play tone, wav file

PulseAudio

play audio file

irrKlang

play audio file

libsndfile

play audio file

beep

play beep sound


wav

play wav file

libmad

play mp3

libvorbis

play ogg

flac

play flac

fdk_aac

play aac

mp3lame

encode mp3

stb_vorbis

convert ogg file to wav file

id3lib

show id3tag in mp3 file

taglib

show id3tag in mp3 file

minimp3

mp3 player with OpenGL and SDL


FreeType

read font file
show text in OpenGL window

GTK

open GTK window and show image

SDL

open SDL window and show image

SDL_audio

play audio file

sfml

open sfml window and show image from file


sfml_audio

play audio fie

sfml_network

tcp server and client

ImageLoader Samples

https://github.com/ohwada/MAC_cpp_Samples/blob/master/ImageLoader.md

FreeImage

read and write Image File using FreeImage

Devil

read and write Image File using Devil

stb_image

read and write Image File using stb_image
https://github.com/ohwada/MAC_cpp_Samples/tree/master/stb


libjpeg

read and write JPEG format Image File

libpng

read and write oNG format Image File

libtiff

read and write tiff format Image File

bmp

read and write bmp format Image File
supported format: 24 bit bmp

bmp2

read and write bmp format Image File
supported format: 24 bit / 32 bit bmp

TGALoader

load Texture from TGA format image file

RawLoader

read Raw format image file

DDSLoader

read DDS format image file

nv_dds

read and write dds format Image File using nv_dds

OpenCV-ImageReadWrite

read and write Image File using OpenCV

OpenCV-GaussianBlur

process Image with OpenCV GaussianBlur API

OpenCV-Hisotgram

calculate Histogram with OpenCV calcHist API
'

OpenCLInfo

show OpenCL version and others

OpenCL-HelloWorld

operate simple addition with OpenCL

OpenCL-ImageFilter2D

this sample demonstrates performing Gaussian Filter (Gaussian Blur) on a 2D image using

OpenCL-GaussianFilter

process Image with Gaussian Filter (Gaussian Blur)

OPenCL-HPPーVectorAdd

this simple demonstrates use OpenCL C++ Wrapper API

OpenCL-Sobel

Sobel Edge Detection Filter

OpenCL-Histogram

calculate Histogram in RGB values

OpenGL-GLUT

open OpenGL window with GLUT
and draw teapot

OpenGL-GLFW

open OpenGL window with glfw
and draw triangle

OpenGL-GLSL

open OpenGL window with glfw and glad
and draw Triangle with GLSL

OpenGL-GLUT-Texture

dwaw Texture with image using GLUT

OpenGL-GLFW-Texture

dwaw Texture with image using GLFW

About

C++ Code Samples for MAC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 63.7%
  • C++ 18.3%
  • COBOL 17.4%
  • HTML 0.3%
  • Python 0.2%
  • Shell 0.1%