Some of the techniques I've used to learn languages quickly and thoroughly:
-
Shadowing
-
Scriptorium
-
Side-by-Side Reading
| cmake_minimum_required(VERSION 3.16) | |
| set(CMAKE_CONFIGURATION_TYPES Debug Release CACHE STRING "" FORCE) | |
| set(CMAKE_BUILD_TYPE Debug CACHE STRING "") | |
| project(cppgl) | |
| set(CMAKE_CXX_STANDARD 20) | |
| if (NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake") |
| #include <iostream> | |
| #include <exception> | |
| #include <functional> | |
| #include <vector> | |
| #ifdef __EMSCRIPTEN__ | |
| #include <emscripten.h> | |
| #endif | |
| #ifndef __EMSCRIPTEN__ |
| #include <exception> | |
| #include <functional> | |
| #ifdef __EMSCRIPTEN__ | |
| #include <emscripten.h> | |
| #include <SDL.h> | |
| #include <SDL_image.h> | |
| #include <SDL_ttf.h> |