Sonny

Sonny

Joined
Apr 22, 2010
Occupation
Programmer
Location
Ohio

Code Snippets

Sonny created a Page  -  Nov 08, 2011
241 

The $abc identifier will just return the corresponding position or letter of the English alphabet. Example: $abc(g) ;returns 7 $abc(24) ;returns x $abc(0) ;returns 26 (total letters in alphabet)

Sonny created a Page  -  Oct 26, 2011
1 370 

Check the About and How to Use in the script. Use the Help menu to get there.

Sonny created a Page  -  Jul 21, 2011
265 
Sonny created a Page  -  May 16, 2010

A hangman game based around references, also uses a base class as the body of the game, and nested classes for parts of the game. there are a few bugs, but they aren't annoyingly noticeable. i'll fix whatever you can find.

  3 Threads   C++  
Sonny created a Page  -  May 14, 2010
477 
Sonny created a Page  -  May 13, 2010

A simplified blackjack game played in a console window. This project is from a Mike Dawson book, so the source code is not 100% original. But with a few personal tweaks and some tidy-ups, the program is quite fun when you're bored. Very very basic AI, which tells the computer when it's a good idea to hit, and when it's a good idea to decide if an Ace is valued as 1 or 11.

  3 Threads   C++  
Sonny created a Page  -  May 12, 2010

A simple tic tac toe game using pointers. Just a simple example of how you can use pointers. Simple AI, as well. This was just a project i had to do when i first learned pointers.

  4 Threads   C++  
Sonny created a Page  -  Apr 25, 2010
93 

Just a basic example of a sorttok() function using the STL algorithm sort() and vectors.. It sorts in the order of symbol, number, letter. Just an example, I don't plan to add onto it.

 Respond   C++  
Sonny created a Page  -  Apr 24, 2010
1,561 

A very basic gettok() function i made from scratch for a contest.It's not to be used with loops, since it uses substr. Hasn't been fully tested, but works as needed in my experience. Post bugs, if you find any. I'll probably finish all the other tokens, if and when I have time.

 Respond   C++  
Sonny created a Page  -  Apr 24, 2010
1,735 

A very basic multiplication table former. It asks you to enter a number, then displays a 5x5 grid-like multiplication table with the base number you entered. It starts from 1. Useful for teaching younger kids their times tables, or people who aren't so good with multiplication. You can use it from the command line, I would recommend maximizing your screen when using big numbers. Command line usage: Windows:..

  3 Threads   C++  
Sonny created a Page  -  Apr 24, 2010
1 926 

old game I wrote. This was probably the first or second game I wrote using random numbers and enumerated types. The computer picks a number, and you try to guess it. Very basic and simple, but it was a beginner project. Now, looking back, I could think of a million ways to rewrite this game, with 100 more features and far more memory efficient. This is just an example code, all in all. So, if you..

  8 Threads   C++  
Sonny created a Page  -  Apr 22, 2010
663 

A simple function to check if a number is a prime or not. It will return true or false.

  7 Threads   C++  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.