![]() |
![]() | #1 |
bored elephant Join Date: 08 2005 Location: Valadilene
Posts: 332
Downloads: 14 Uploads: 0
Reputation: 145 | 4 | ![]()
Joghovurd, mi hat ankap harc unem, ete karag ogneq, plz ![]() Uremn unem text file "input.dat" meje "20 60 50.0" (verjum el new line ka) Hima uzum em C-um kardam et tvere... ________________________________________________ ... int membrane_x_size = 0, membrane_y_size = 0; double membrane_height = 0.0; ... FILE *inpPtr; if((inpPtr = fopen("input.dat", "r")) == NULL) printf("File could not be opened\n"); else{ while(!feof(inpPtr)) fscanf(inpPtr, "%d %d %f\n", &membrane_x_size, &membrane_y_size, &membrane_height); }; printf("x size = %d cells \ny size = %d cells \nmembrane_height = %f\n", membrane_x_size, membrane_y_size, membrane_height); ... ____________________________________________________ Hima probleme ena vor en amenavereve membrane_height-e sahmanem vorpes float, normal karduma, baytc vor double-em sahmanum, gjvuma u tpeluc tpuma menak 0.00000. Inchqan nayum em chem karum gtnem. Inch float sahmanem, heto cast anem double? Mekel inchqan jokum em float-e aveli "vata" qan double-e che (inchvor 64 bit vs 32 bit, ban-man...)
__________________ "The only verdict is vengeance; a vendetta, held as a votive, not in vain, for the value and veracity of such shall one day vindicate the vigilant and the virtuous" - V |
![]() |
![]() | #3 |
Ego coder Join Date: 07 2004 Location: Armenia, Yerevan Age: 39
Posts: 3,652
Downloads: 22 Uploads: 0
Reputation: 228 | 4 | ![]()
principi ete et tivt 3.4E–38 -- 3.4E+38 sahmanneruma karas float ogtagorces, [email protected] krknaki avel texa gravum sovorabar
|
![]() |