// Assignment02 Comp266 // Eric Anderson 9487276 /************************************ * * ************************************/ #include "stdafx.h" #include #using using namespace System; void displayGrid() { wchar_t x[] = { 'x', '2', '3', '4', '5', '6', '7', '8', '9', '\0' }; String* foo = new String(x); Console::WriteLine( foo ); Console::WriteLine( foo[0] ): //Console::WriteLine( foo[1] ); //Console::WriteLine( S"-------------" ); //Console::WriteLine( S"| {0} | {1} | {2} |", x[0], x[1], x[2] ); Console::WriteLine( S"-------------" ); //Console::WriteLine( S"| {0} | {1} | {2} |", x[3].ToString(), x[4].ToString(), x[5].ToString() ); //Console::WriteLine( S"-------------" ); //Console::WriteLine( S"| {0} | {1} | {2} |", x[6].ToString(), x[7].ToString(), x[8].ToString() ); //Console::WriteLine( S"-------------" ); } int _tmain() { displayGrid(); return 0; }