View Single Post
Old 10-28-2005, 07:21 PM   #11 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
Hmm, before you go any further, can you explain me what's wrong with my code DESIGN-WISE?
Code:
#include <iostream>

using namespace std;

 
int add_it(const int a, const int b)
{ 
	std::cout << "Start Calculating."<<endl;
	return a+b;
}

void show_array(int* array, std::size_t size)
{
	for(std::size_t i = 0; i < size; ++i)
	{
		std::cout<<array[i]<<std::endl;
	}
}

int main()
{
 
  return 0;
}
__________________
Valmont is offline   Reply With Quote