Hi
I try to compile that program to see the results but I encountered a problem. The error that is guven by my comiler is :
K undeclared (first use this function)
e undeclared
n undeclared
and so on
how my I make it compile thanks
#include <iostream>
int main()
{
using namespace std;
const int arraySize = 20;
char name1[ arraySize ] = { ’K’, ’e’, ’n’, ’n’, ’e’, ’t’, ’h’, ’\0’};
char name2[7] = { ’C’, ’l’, ’i’, ’f’, ’t’, ’o’, ’n’};
char name3[] = "Suzanne";
char name4[10] = "Elizabeth";
cout << "Array name1 contains: " << name1 << endl << endl;
cout << "Array name2 contains: " << name2 << endl << endl;
cout << "Array name3 contains: " << name3 << endl << endl;
cout << "Array name4 contains: " << name4 << endl << endl;
return 0;
}