:: Re: [DNG] continuing in C programmi… |
Deze boodschap maakt deel uit van devolgende draad: | |
---|---|
de volledige draad-boom gesorteerd op datum | |
o1bigtenor op | |
o1bigtenor op |
> (using gcc compiler - - just in case that makes a difference > book is 'Modern C')
> /* The main thins that is program does. */ > int main(void) { > //Declarations > double A[5] = { > [0] = 9.0, > [1] = 2.9, > [4] = 3.E+25, > [3] = .00007, > };
> //Doing some work > for (size_t i=0; i < 5; ++i) { > printf("element_%zu_is_%g,_\tits_square_is_%g\n", > i, > A[i], > A[i]*A[i]); > }
> return EXIT_SUCCESS; > }
> $ ./firstprogram > element_0_is_9,_ its_square_is_81 > element_1_is_2.9,_ its_square_is_8.41 > element_2_is_0,_ its_square_is_0 > element_3_is_7e-05,_ its_square_is_4.9e-09 > element_4_is_3e+25,_ its_square_is_9e+50
Deze boodschap werd naar devolgende mailinglijsten gestuurd: | ||||
---|---|---|---|---|
dng Mailing Lijst Info | Nabije Berichten | [DNG] Using wget to download the stable thunderbird .bz2 file from thunderbird.net | Re: [DNG] Using wget to download the stable thunderbird .bz2 file from thunderbird.net |
Donate to Dyne.org | dyne.org open discussions beheerd door dyne.org hackers | Lurker (versie 2.3) |