This file contains hidden or 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
#!/bin/bash | |
# sdl 1.2 | |
apt-get install libsdl1.2-dev | |
apt-get install libsdl-image1.2 libsdl-image1.2-dev | |
apt-get install libsdl-ttf2.0-dev | |
# sfml |
This file contains hidden or 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 <SFML/Window.hpp> | |
#include <SFML/OpenGL.hpp> | |
void draw() | |
{ | |
gluLookAt(3,4,2,0,0,0,0,0,1); | |
glBegin(GL_QUADS); | |
glColor3ub(255,0,0); | |
glVertex3d(1,1,1); |
This file contains hidden or 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 <SFML/Window.hpp> | |
#include <SFML/OpenGL.hpp> | |
#include <map> | |
#include <string> | |
void draw(int angle1, int angle2, int length) | |
{ | |
glPushMatrix(); | |
/** first rectangle **/ |
This file contains hidden or 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 "Card.h" | |
/************** | |
* constructor * | |
**************/ | |
Card::Card() | |
{ | |
family = ""; | |
number = 0; |
This file contains hidden or 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 <bitset> | |
int main(int argc, char* argv[]) | |
{ | |
int a(0); | |
if(argc >= 1) a = atoi(argv[1]); | |
else cin >> a; | |
std::cout << a << " : " << std::bitset<sizeof(int)*8>(a) << std::endl; |
This file contains hidden or 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
ls -R / |
This file contains hidden or 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 "Randint.h" | |
Randint::Randint() | |
{ | |
srand(time(0)); | |
m_MIN = 1; | |
m_MAX = 10; | |
} | |
Randint::Randint(int min, int max) |
This file contains hidden or 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 <string> | |
#include <ctime> | |
#include <cstdlib> | |
using namespace std; | |
int main() | |
{ | |
srand(time(0)); |
This file contains hidden or 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 <fstream> | |
using namespace std; | |
int main() | |
{ | |
ofstream oom ("outOfMemory.txt",ofstream::app); | |
for(;;) oom << "outOfMemory "; | |
return 0; |
This file contains hidden or 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
++++++++++ | |
[ | |
>+++++++ 70 | |
>++++++++++ 100 | |
>+++++++++++ 110 | |
>+++++++++++ 110 | |
>+++++++++++ 110 | |
>+++ 30 | |
>+++++++++ 90 | |
>+++++++++++ 110 |
NewerOlder