a silly question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear GCC team,

I am really a newcomer, so I am wondering how to compile this source
code in the attachment.

Regards,
Yiming CHU
#include <iostream>

int main ()
{
    int sum = 0, val = 1;
    while (val <= 10)
    {
       sum += val;
       ++val;
    }
    std::cout << "Sum of 1 to 10 inclusive is " << sum 
    << std::endl;

    return 0;
} 

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux