This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#include <cmath> | |
#include <algorithm> | |
#include <random> | |
#include <cassert> | |
struct coordinates { | |
double x; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
int main() { | |
std::cout << "Hello, compiler!\n\n"; | |
std::cout << | |
#if defined(__clang__) | |
"Clang " << __clang_version__ << | |
#elif defined(__ICC) || defined(__INTEL_COMPILER) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace sf | |
{ | |
struct Vector2f { | |
float x; | |
float y; | |
}; | |
struct Shape { | |
const Vector2f& getPosition() const; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////////////////////////////////////////////////////// | |
// Headers | |
//////////////////////////////////////////////////////////// | |
#include <SFML/Graphics.hpp> | |
#include <SFML/Audio.hpp> | |
#include <cmath> | |
#include <ctime> | |
#include <cstdlib> |