Can anyone explain why I am not getting any output from this code
int _tmain()
{
String *sym[] = {S"BA", S"CA", S"MS"};
int shares __gc[] = {25, 100, 30},
price __gc[] = {25, 31, 37};
Random *randomCurVal = new Random();
int purVal, curVal;
int totalPurVal = 0,
totalCurVal = 0,
totalNetVal = 0;
for (int i = 0; i < shares->Length; i++){
purVal = price[i] * shares[i];
curVal = shares[i] * randomCurVal->Next( 15, 55);
}
Console::Write(S"\n", curVal.ToString());
return 0;
}