Skip to content

Instantly share code, notes, and snippets.

View cloderic's full-sized avatar

Clodéric Mars cloderic

View GitHub Profile
@cloderic
cloderic / main.cpp
Created February 9, 2012 13:45
WinMain to standard main
#ifdef WIN32
int WINAPI WinMain(HINSTANCE instance, HINSTANCE prev_instance, char* command_line, int show_command)
{
int argc;
char** argv;
char* arg;
int index;
int result;
// count the arguments
@cloderic
cloderic / pointInTriangle.cpp
Created October 19, 2011 14:10
Point in triangle test
struct Vector2
{
double x;
double y;
};
struct Triangle2
{
Vector2 v[3];
};
@cloderic
cloderic / Car.cpp
Created September 22, 2011 09:30
C/C++ bitsets
class Car
{
public:
Car()
:_status(0x00)
{
}
void setLocked()
{