Skip to content

Instantly share code, notes, and snippets.

View arnemertz's full-sized avatar

Arne Mertz arnemertz

View GitHub Profile
////////////////////////////////////////////////////////////
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
#include <cmath>
#include <ctime>
#include <cstdlib>
namespace sf
{
struct Vector2f {
float x;
float y;
};
struct Shape {
const Vector2f& getPosition() const;
};
@arnemertz
arnemertz / compiler_version.cpp
Created May 18, 2017 18:09
print compiler name and version
#include <iostream>
int main() {
std::cout << "Hello, compiler!\n\n";
std::cout <<
#if defined(__clang__)
"Clang " << __clang_version__ <<
#elif defined(__ICC) || defined(__INTEL_COMPILER)
#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
#include <random>
#include <cassert>
struct coordinates {
double x;