
Archive for May, 2009
Interesting Errors
May 19th, 2009 - Be the First Comment!
Well I’m back once again with some intereting errors I experienced at work.
This error I received a couple weeks ago while working with Google Maps and developing a custom map at work. This one I find kind of mind boggling. Oh well, there has to be millions of lines of code in VS 08, not a surprise there are some problems.
[ Tags ]: 500 internal server error, ASP, Visual Studio, web programming, webdev
[ Category ]: programming
Simple C++ Function Program – Find Max
May 13th, 2009 - Be the First Comment!
/*
* functionsExample.cpp
* Example for DIC
*/
#include <iostream>
using namespace std;
// Notice the names do not need to be the same
int findMax(int arraySize, int passedArray[])
{
int max = passedArray[0];
for (int i = 1;i < arraySize-1; i++ )
{
if (max < passedArray[i])
{
max = passedArray[i];
}
}
return max;
}
int main(int argc, char** argv)
{
int size = 6;
int array[] = {1, 3, 5, 10, 234234, -1};
int max = findMax(size, array);
cout << "max: " << max << endl;
}
[ Category ]: programming





