This page contains some of the C++ projects I have made over time. Each project has the source code and the compiled program in seperate links.
Tic Tac Toe - A Console Application
Download:
Created:
August 5, 2007
Changelog:
29/Sept/2007 - Colored text messages
26/Aug/2007 - Fixed crash, updated entire code for efficiency
20/Aug/2007 - Fixed minor bug
7/Aug/2007 - Added bot/added characters instead of integers for X and O
5/Aug/2007 - Version 1
Description:
This was my first program coded in C++. A simple Tic Tac Toe game using a command prompt.
A KeyLogger
Download:
Created:
August 26, 2007
Changelog:
10/Nov/2007 - Fixed some compiling issues.
25/Sept/2007 - Logs are now named after whatever the program was called. If you rename KeyLogger.exe to hello.exe and run it, the logs would be saved as hello.log
26/Aug/2007 - Version 1
Description:
This is a basic keylogger which writes everything you type into a log file. The keylogger window cannot be seen as it is running. If you don't like the log files to be saved as "KeyLogger.log" then rename the KeyLogger.exe file to something else.
Please do NOT use this program for illegal purposes.
If you want to close the keylogger window, open the windows task manager (ctrl+shift+esc) and go to processes, find the keylogger file in the window (named keylogger.exe by default) and end the task.
XLib - imhenrythe8thim's Library of C++ functions
Download:
Created:
September 4, 2007
Changelog:
10/Nov/2007
-String functions:
--[Fixed] Size()
---The string does not end with three dots if the string is less than the length to size it to.
-Math functions:
--[Added] int clamplower(int num, int min)
---Returns a number that is not lower than the min value.
--[Added] int clamphigher(int num, int max)
---Returns a number that does not exceed the max value.
27/Oct/2007
-Rewrote the example application to be more interactive.
-String functions:
--[Fixed] Left()
---Not ending with the correct amount of characters.
29/Sep/2007
-String function:
--[Added] char * Random(int len)
---This generates a random string with the given length.
26/Sep/2007
-Rewrote everything for stability and function.
-File function:
-[Added] WriteToFile()
---Now returns 1 if success, 0 if fail.
-String functions:
--[Fixed] Right()
---Now works correctly
--[Fixed] Size()
---Now sizes strings "correctly" and cannot size anything smaller than 3 (clamped just incase...)
4/Sep/2007
-Version 1
-String functions:
--[Added] char * Left(const char * String,int num)
---Returns num length characters of string, starting from the left.
--[Added] char * Right(const char * String,int num)
---Returns num length characters of string, starting from the right.
--[Added] char Mid(const char * String)
---Returns the middle character in a string
--[Added] char * Size(char * String,int maxlen)
---Sizes a string to a length and adds dots at the end to show that the string was sized.
--[Added] int CharCount(const char * String,char character)
---Returns the number of times the character is found in the string.
-Math functions:
--[Added] int is_even(int num)
---Returns 1 if the number is even, 0 if odd.
--[Added] int neg(int num)
---Returns the negative value of a number (the oppisite of the absolue value).
--[Added] int clamp(int num, int min, int max)
---Clamps a number so it cannot exceed the min or max value.
-Keyboard function:
--[Added] int is_down(int key)
---Checks to see if key is pressed down. Returns 1 if true, 0 if false.
-File function:
--[Added] void WriteToFile(const char * file, const char * text)
---Writes text to file.
Description:
This contains many useful functions that I have made for C++ programs. As I get more ideas, this script will be updating with new functions constantly. The .exe file is an example I made to test the functions.
Shortcuts - A Commandline Application
Download:
Created:
November 22, 2007
Changelog:
25/Nov/2007 - Added visual error if the file/folder could not be opened
22/Nov/2007 - Version 1
Description:
I was really frustrated about not being able to pin folders onto my start menu (I don't use my desktop) in Windows Vista (yes, I finally upgraded from XP). So I thought this would be an easy way to solve that problem. This simple little script will open any directory,program,website that you give it using commandline arguments.
Example:
-Create a shortuct of Shortcuts.exe from the download link.
-Right click it and click properties.
-Edit the target area like shown in
this screenshot and press OK.
-You can now pin it to the start menu by right clicking the shortcut and selecting "pin to startmenu".
The above example will open the "C:/Program Files" directory when clicked on in the startmenu.
OverwriteWarning
Download:
Created:
November 24, 2007
Changelog:
25/Nov/2007 - Removed the messagebox
24/Nov/2007 - Version 1
Description:
I know I hate it when I accidentally hit the insert key on my keyboard and without knowing, I've already typed over all my work. This program makes the computer beep to alert you that you have hit the insert key (whether you meant to or not).
If you want to close the program, open the windows task manager (ctrl+shift+esc) and go to processes, find the OverwriteWarning.exe item in the task manager and end the task.
MoniterOff
Download:
Created:
Dec 20, 2007
Changelog:
20/Dec/2007 - Version 1
Description:
This simple little program turns off the moniter of your computer. You can easily turn it back on by moving the mouse or clicking a key on the keyboard.