
Testing my new syntaxhighliter
August 29th, 2009
This post is to test a Syntax Highlighter. I just got it working on my main site. Now i’m trying to get it ready for the world of blogging.
/*
* 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



