Skip to content

Instantly share code, notes, and snippets.

View joegasewicz's full-sized avatar
🦧
🍾

Joe Gasewicz joegasewicz

🦧
🍾
View GitHub Profile
@joegasewicz
joegasewicz / pointers_to_constants.c
Last active November 23, 2022 13:25
C Pointers To Consts
/* ====================================================================== */
/* Pointers & consts */
/* ====================================================================== */
/* POINTERS TO CONSTS */
long value = 9999L;
long value2 = 1111L;
// only the value of what the pointer is pointing to is a constant
// we can still change the reference of what the pointer is pointing to
@joegasewicz
joegasewicz / wav.cpp
Last active November 23, 2022 13:24
Audio programming #1 Create & write to a WAV file
#include <iostream>
#include <fstream>
#include <cmath>
using namespace std;
// Riff Chunk
const string RIFF_CHUNK_ID = "RIFF";
const string RIFF_CHUNK_SIZE = "----";