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
// A big special thanks to 'bearophile' ( from dlang forum! ) | |
import std.c.windows.windows: WORD, LONG, DWORD, BYTE, UCHAR, ULONG; | |
struct IMAGE_DOS_HEADER | |
{ | |
WORD e_magic, | |
e_cblp, | |
e_cp, | |
e_crlc, |
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 <cstdio> | |
#include <string> | |
#include <vector> | |
#include <stdlib.h> | |
using namespace std; | |
typedef struct _SIZE_ | |
{ |
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
#define system. | |
#define extensions. | |
#class MyNumber | |
{ | |
#field theValue. | |
#constructor new : aValue | |
[ | |
theValue := aValue. |
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
using System; | |
using System.IO; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace bmpGenerator | |
{ | |
public class ColorX | |
{ |
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
/* | |
INPUT SAMPLE: | |
VAR TESTE = 25 | |
PRINT "ALEXANDRE" | |
PRINT TESTE | |
GETCHAR | |
*/ |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define ARRAY_SIZE 128000 | |
int main(int argc, char **argv) | |
{ | |
int casas = argc == 2 ? atoi(argv[1]) : 1000; | |
int x[ARRAY_SIZE]; |
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 <stdio.h> | |
#include <malloc.h> | |
#include <string.h> | |
#if __USE_SSE__ | |
void reverse(char *begin, char *end) | |
{ | |
_asm | |
{ | |
mov edx, DWORD PTR[begin] |
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
/* | |
Sample: | |
file: main.in | |
// Start with defines | |
@define basic = std'basic | |
@define type = sys'types |
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 <cstdio> | |
#include <vector> | |
#include <windows.h> | |
using namespace std; | |
class Buffer: public vector<unsigned char> | |
{ | |
public: | |
void push_dword(DWORD dw) |
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 <stdio.h> | |
int main(int argc, char **argv) | |
{ | |
int numero = 0; | |
int retorno = 0; | |
printf("Entre com um numero: "); | |
scanf("%d", &numero); | |
#if defined(__GCC__) |
OlderNewer