What's Here?
- Members: 307,149
- Replies: 841,894
- Topics: 140,694
- Snippets: 4,468
- Tutorials: 1,165
- Total Online: 1,714
- Members: 109
- Guests: 1,605
|
's Contributions
|
Below are the tutorials, code snippets, and resources has submitted to dream.in.code. For more information on Kudos and contributing to dream.in.code visit: http://home.dreamincode.net/?p=about#kudos.
|
|
Tutorials
in (Last Comment: , Views: 65,672)
in (Last Comment: , Views: 18,442)
in (Last Comment: , Views: 14,504)
in (Last Comment: , Views: 20,255)
in (Last Comment: , Views: 15,338)
|
|
Code Snippets
|
 |
|
|
Submitted: October 9, 2007
Views: 658
String scrambling class. Mixes up all but the first and last letters of a word, with the degree of shuffling (probability of a swap) determined by the value of difficulty.
not actually what happens to someone with dyslexia, but oh well.
"inspired" by the thread:
http://www.dreamincode.net/forums/showtopic34777.htm
|
|
|
 |
|
|
Submitted: November 21, 2007
Views: 1633
Function to check if two (STL) strings are anagrams.
|
|
|
 |
|
|
Submitted: November 23, 2007
Views: 3463
Function to check if two c-strings (null-terminated character arrays) are anagrams
|
|
|
 |
|
|
Submitted: October 8, 2007
Views: 27862
This function reads a line from a comma-separated values (CSV) file. Parses each entry into a string, long int, or double and stores each in a separate vector. Also stores information on the order of the entries so the original line can be reconstructed, or so particular elements can be extracted.
|
|
|
 |
|
|
Submitted: October 13, 2007
Views: 8997
two functions; the first dynamically allocates a 2D array with a user- or program-specified number of rows/columns; the second deallocates the same array. demonstrates the mutlti-dimensional usage of malloc and free.
|
|
|
 |
|
|
Submitted: October 5, 2007
Views: 10869
Function for performing Gauss-Jordan elimination to obtain the solution to a system of linear equations, including matrix inversion. For double arrays only
|
|
|
 |
|
|
Submitted: October 24, 2007
Views: 8946
This function returns the greatest common factor of two numbers, by a sequential search. No dependencies on external libraries.
|
|
|
 |
|
|
Submitted: November 22, 2007
Views: 3969
Function to determine if a square array is a magic square.
|
|
|
 |
|
|
Submitted: October 5, 2007
Views: 870
matrix template class supporting addition, subtraction, and multiplication of matrices and scalars; identity function
|
|
|
 |
|
|
Submitted: November 28, 2007
Views: 1814
Utilizes the std::map container to calculate the mode (most common element) from an array of integers.
|
|
|
 |
|
|
Submitted: November 14, 2007
Views: 6568
Functions for creating normally-distributed random deviates, using the Box-Muller transformation.
|
|
|
 |
|
|
Submitted: November 22, 2007
Views: 2219
Calculates the final position, velocity, and direction of a particle in ballistic motion for a given period of time, based on initial velocity, inclination, heading, and position.
|
|
|
 |
|
|
Submitted: November 22, 2007
Views: 805
Calculates the final position, and x,y, & z velocity components of a particle in ballistic motion for a given period of time, based on initial position and a vector of velocity components.
|
|
|
 |
|
|
Submitted: November 13, 2007
Views: 3318
Performs and outputs all permutations of an array of N elements. Uses a recursive algorithm with rotation of a subset of the elements. Output is lexicographically ordered, assuming the initial array is meaningfully ordered. Works with builtin datatypes or any class for which the assignment operator = is defined.
|
|
|
 |
|
|
Submitted: October 21, 2007
Views: 623
Simple event selector for text-based games, random simulations, etc. Function selects a single event from a list of mutually-exclusive events with defined probabilities. Returns the index representing the event from the inputted array of probabilities.
|
|
|
 |
|
|
Submitted: October 21, 2007
Views: 674
Four methods to reverse a std::string, replacing the original with the mirrored version. Uses the reverse() algorithm, random-access and reverse iterators, and a more traditional element-by-element reversal using a temporary swap value.
|
|
|
 |
|
|
Submitted: November 14, 2007
Views: 11077
Function for numerical integration of ordinary differential equations.
|
|
|
 |
|
|
Submitted: November 14, 2007
Views: 4088
Class for calculating basic statistics from an array of data - mean, median, mode, variance, skewness, and kurtosis. Good as both a standalone class and as a demostration of the methods used in calculating these statistical measures.
|
|
|
| |