the program refuses to recoganize my function

hi. i use Visual C++ 2008. When i type in the code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include"stdafx.h"
#include<iostream>
using namespace std;


char ttt[9] = {'1','2','3','4','5','6','7','8','9'};

void printborad( char arg[] )
	{
	cout <<"\t|" << arg[0] << "|" << arg[1] <<"|" << arg[2] <<"|" << endl
		<< "\t|" << arg[3] <<"|" << arg[4] <<"|" << arg [5] <<"|" <<endl
		<< "\t|" << arg[6] <<"|" << arg[7] <<"|" << arg[8] <<"|" <<endl;
	}

int main()
{
	cout << "Hi."<< endl;
	printboard( ttt);

	return 0;
	system("pause");
}


it returns an error -
C3861 - 'printboard' identifier not fornd in line "printboard (ttt);"
Please help.... thanks in advance...
void printborad( char arg[] )

printboard( ttt);
Last edited on
thanks firedraco,,
these embarassing typos....
Topic archived. No new replies allowed.