// Dream-OE.cpp : Defines the entry point for the console application.
//
#include <stdio.h>
#include <stdlib.h>
#include <iostream.h>
int askQuestion(char * string_)
{
printf("%s: ", string_);
getc(stdin);
printf("\r\n");
return 0;
}
int main(int argc, char *argv[])
{
int keyPress;
printf("Dream-OE 0.0.1.2pre-alpha Starting up!\r\n");
printf("press enter to continue\r\n");
getc(stdin);
printf("press 1 and press enter for a brief introduction.\r\n");
printf("press 2 and press enter to run a script.\r\n");
printf("press x and press enter to exit.\r\n");
askQuestion("poop"); /* TEST! */
/* needs testing, keyPress used to be of type char, now it's int */
keyPress = getch();
printf("the integer for the key you pressed is: %i and the char code is: %c\r\n",keyPress, keyPress);
if(keyPress == 50)
{
printf("the only current script you can run is the debugger.\r\n");
};
getc(stdin);
getc(stdin);
return 0;
}
just pewp for yew!
im not very good at programming with security in mind in c/c++ so i am thinking of trying to code my own security checking functions so that every string is checked, so that every pointer is verified. it would slow down my code, but i could also include a command line option to turn this feature off after the code is closer to stable. im still thinking of doing my OE in C#, Python, Perl, a downloadable html page with just javscript in it, i mean, i have LOTS of ideas. too me its kind just fun to think about it all and try to learn everything haha.
Comments
Post a Comment