I was normally programming in VS in "Console" mode when I come across this message:
"A first chance exception of type 'System.FormatException' occurred in mscorlib.dll An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll Additional information: Index (zero-based) must be greater than or equal to zero and smaller than the argument list size. The program '[1124] ConsoleApplication4.vshost.exe: Managed (v4.0.30319)' has exited with code 0 (0x0) "
What is it about and how do I solve it?
Code:
string A1;
string A2;
string A3;
string A4;
string A5;
String A6;
String A7;
String A8;
A1 = Console.ReadLine();
A2 = Console.ReadLine();
A3 = Console.ReadLine();
A4 = Console.ReadLine();
A5 = Console.ReadLine();
A6 = Console.ReadLine();
A7 = Console.ReadLine();
A8 = Console.ReadLine();
Console.Write("Segunda: {0}, {1}, {2}, {3}", A1, A2, A3, A4);
Console.ReadLine();
Console.Write("Terça: {4}, {7}, {5}, {1}, {6}", A5, A8, A6, A2, A7);
Console.ReadKey();