I am taking input from user in visual c++ through the following code
Console::WriteLine("Select the Cache Size.\n a. 1 Kb \n b. 2 Kb \n c. 4 Kb \n d. 8 Kb\n");
String^ CACHE_SIZEoption = Console::ReadLine();
Char wh= Char(CACHE_SIZEoption);
switch(wh)
{case 'a':
break;
case 'b':
break;
case 'c':
break;
case 'd':
break;
}
In this the conversion from String to Char is giving errors..
error C2440: '<function-style-cast>' : cannot convert from 'System::String ^' to 'wchar_t'
String^mean? It's not C++ for sure...