SHWOO 25 Junior Poster in Training

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;
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.