//---------------------------------------------------------------- //FindShortestPath.cpp // ...
C++ PathFinding Algorithms
by leonhano,
April 14, 2010 19:31,
No refactoring
int width = iplImage->width; int height = iplImage->height; ...
C++ exchanging 2 values
I am working with OpenCV an...
#include <fstream> using std::ofstream; #include <time.h> ...
C++ Game of Life
by vodkamilkshake,
January 22, 2010 08:29,
3 refactorings, tagged with game, algorithm, C++, cpp, gameoflife, conway
This is an implementation o...
// handlePathChange() is called whenever the URI changes void MVCApplication::handlePathChange() ...
C++ Re-implementation of the AS...
by the-drow.myopenid.com,
January 15, 2010 19:54,
2 refactorings, tagged with C++, routing, mvc, asp.net-mvc-routing
I'm trying to re-implement ...
#pragma once #include <iostream> ...
C++ c++ templates, Vector2, Vec...
by rakkarage.myopenid.com,
November 13, 2009 22:50,
4 refactorings, tagged with math, template, vector, C++, 3d
for my 3d game :) still wor...
#include <iostream> #include <stdio.h> //#include <cstdlib> ...
C++ Calender
prints months calenders fro...
#include <map> #include <string> ...
C++ PHP associative array class...
by tearsfornations.blogspot.com,
August 08, 2009 19:10,
1 refactoring, tagged with c++ array, php array in c++
looking for stability and s...
#include <iostream> #include <limits> #include <map> ...
C++ Breadth First Search (Textb...
This is the BFS example use...
#include <stdlib.h> #include <vector> #include <string> ...
C++ An efficient HTTP parser
by steve.hanov.myopenid.com,
March 09, 2009 22:48,
4 refactorings, tagged with sockets, http, server
I'm writing a web server, a...
for(int col = 0; col < cells.shape()[0]; col++) {
int max_w = 0;
for(int row = 0; row < cells.shape()[1]; row++) {
...
C++ Table layout with boost::mu...
maybe can use std algos lik...
// routine for loading all grass sprites we can find char buffer[32]; std::string setname = "jungle"; ...
C++ Call sprintf_s only once
Can this routine be done wi...
#include <iostream> using namespace std; ...
C++ while reads some integers a...
by buk,
December 18, 2008 21:50,
7 refactorings
hi,
first time here dont...
// For faster converting of dates to strings
char* sLeadingZeroIntegerValues[] = {
"00","01","02","03","04","05","06","07","08","09",
...
C++ Stream ADODB recordset into...
by ctrager.blogspot.com,
November 11, 2008 12:30,
2 refactorings, tagged with speed, C++, COM, ADODB, STL
Can we make the code betwee...
#include <iostream.h> #include <stdlib.h> #include <math.h> ...
C++ Prime or Not
This is a simple program to...
#include <iostream.h>
int main() {
...
C++ Simple For Loop
by goodespeler.myopenid.com,
October 06, 2008 23:10,
5 refactorings
Can someone check my for lo...
#include <iostream> #include <iomanip> using namespace std; ...
C++ Code Formatting
Is there a nicer way of for...
#include<stdio.h> #include<math.h> ...
C++ Finding area of a circle wh...
It has some problem with pr...
Old code, do not optimize.