This code appears to work, it just causes an error. But I do not understand the message because I am not experienced in this language. This program should take the name in the array and out put that persons initials.
Program: ...ron\Documents\Visual Studio
2008\Projects\initials\Debug\initials.exe
Module: ...ron\Documents\Visual Studio
2008\Projects\initials\Debug\initials.exe
File:
Run-Time Check Failure #2 - Stack around the variable 'initials' was corupted.
I this in visual studio c++ you must create a new file here and look for win32 console application or the "cpp file". In this statement you can put a pure c++ codes without the #include "stdafx.h"
In my dev c++, it seems to work fine and you nearly forgot to put a cin.get() in line 32 to show what you want to see.. :)