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 <string> | |
#include <stdio.h> | |
using namespace std; | |
string a{""}; | |
int main(){ | |
for(int i=1;i<=9;++i){ | |
a+=to_string(i); |
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 <math.h> | |
const char DName[3][10] = {"Easy","Casual","Hard"}; | |
double mul[3] = {0.125,0.25,0.50}; | |
int exppnt[3] = {10,10,10}; | |
// 12345679 |
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 <string> | |
using namespace std; | |
typedef unsigned long long ui; | |
int main() { | |
char t[20]; | |
for(ui i=1;i<=9;++i){ | |
for(char j=0;j<i;++j) {t[j]=(char)49+j; t[i+1]=0;} |
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
The picture itself was used in a game I scripted in Apollo which I coded in turn in C++. | |
However for some quick effects BlitzBasic is sometimes a wonderful language due to it's quick syntax and very easy to use compiler. | |
I used the Blitz3D compiler to be exact. |
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
Main | |
Const Cycles = 360 | |
Const Width = 1200 | |
Const Height = 1000 | |
Function Even(a%) | |
Return a Mod 2 = 0 |
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
Program ProtoType; | |
Uses Crt; | |
{ | |
I wrote this little program to prototype the geo effect. | |
I wasn't really sure what the best approach was, so I wrote this | |
program in Pascal, in DOS, as the DOS environment was the easiest | |
way to emulate what I needed. | |
} |
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 Test_EndianCheck | |
typedef union { | |
unsigned char b[4]; | |
int i; | |
} ucheck; | |
namespace TrickyUnits{ | |
bool IsLittleEndian(){ | |
ucheck chk; | |
chk.i=256; |
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
Init | |
For i='AZ' | |
Print(Chr(i)) | |
End | |
End | |
// The code above is for my new Neil programming language. | |
// The output will be that the computer will just sum up the alphabet putting ever letter on a new line. | |
// This was by the way also my intension, so it's not a bug. |
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
; This is a little bit of BlitzBasic code, I used to quickly | |
; create the targets Aziella can shoot with her crossbow in | |
; order to solve puzzles. | |
; | |
; In the end I used BlitzPlus to run the program (it should | |
; also work in Blitz3D, but for some odd reason the second | |
; flip command is systematically ignored by Blitz3D) | |
; | |
; I used this program also to create a bit of lighting effect | |
; in the target. |
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
/* | |
This was a study source on how to do indexes of my own in C#. | |
This study can really broaden my views on a few things in C#, and maybe also help me to get rid of a few issues I'm currently suffering in C# | |
*/ | |
using System; | |
class test { | |
public string this[string key] { |
NewerOlder