C++ Code Snippets

Jan 17, 2013
Building an ZNC module for #centravi on onlinegamesnet. It make you able to sends raws to your ZNC, and make it do anything you want; Join channels, part channels, send messages, changes..
Jul 18, 2012
got a little bored and thought i would make something useless to most....to simply show my method it handles 3 coord systems. sphere , rectangular and cylinder systems.
May 06, 2012
This is my first C++ Script, Don't laugh at it, Give me tips instead! This is a ZNC module. It will turn your bouncer into a bot. But you need to compile it. Find a way to Replace..
May 01, 2012
A dynamic array is an array data structure that can be resized and which allows elements to be added or removed. 7-11-12 UPDATE Optimization HELP by FirstMate :) leave comments
11 comment(s)  ·   ·  C++ Snippet
Feb 22, 2011
prevents the screen from closing after the program is finished this is small but incredibly useful, especially if your IDE doesn't have have support for this example:
Feb 21, 2011
calculates the standard devation and variances of the given data set and determines whether a number is an outlier in the set
5 comment(s)  ·   ·  C++ Snippet
Feb 15, 2011
haven't touched C++ for almost a year so I'm a bit rusty but this is basically in C++
3 comment(s)  ·   ·  C++ Snippet
Dec 20, 2010
You put it in your calculator and it displays the periodic table.
Oct 10, 2010
CD tray opener I made for mIRC DeluXe 1.5.82+. In mIRC DeluXe you press F5 (or select it from the popup menus) and it launched the program and opens the CD tray, you place in or remove the..
Oct 05, 2010
Simple console dice roller made in C++ Works great, ready to compile and run.
Oct 01, 2010
Hawkee doesnt have the Platform that this is really written on, so i just put " C++ " again. The real code is in a from of basic(TI).This program draws a Series or Parallel circuit..just..
Sep 30, 2010
^_^ Besides mIRC code, I also program the TI83,TI84 calculators.I put the Platform as C++ Because i don't know what this code language is..kinda sad because i know how to code it, but anywho...
4 comment(s)  ·   ·  C++ Snippet
May 26, 2010
A ROT13 function that uses a switch. Simply pass in a string and get the modified string back. wait.h is simply a header I wrote to suspend the program using cin.get();
May 25, 2010
Function to copy one array to another with bounds checking. It does work with all types. Copy this code into a header file called ArrayCopy.h. In main file code do this. #include "ArrayCopy.h" ... int..
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...
2 comment(s)  ·   ·  C++ Snippet
May 14, 2010
deleted
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,..
2 comment(s)  ·   ·  C++ Snippet
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 comment(s)  ·   ·  C++ Snippet
Apr 27, 2010
TicTacToe game i made for a university project, has a pointless 10x10 square which i had to make but all the rest is good.
Apr 25, 2010
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. Note:..
Apr 24, 2010
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..
Apr 24, 2010
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..
Apr 24, 2010
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,..
8 comment(s)  ·   ·  C++ Snippet
Apr 22, 2010
A simple function to check if a number is a prime or not. It will return true or false. Edit: Please don't leave a blunt comment saying prime numbers aren't useful... Prime numbers are..
Apr 18, 2010
This was one of my first projects that I made a LONG time ago, and now that I look at it, it's kinda stupid. I thought I'd post it here because at one point it compiled. This is straight..
1 comment(s)  ·   ·  C++ Snippet
  1. 1
  2. 2
  3. Next
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.