[gtkmm] behavior modification of input/output functions
- From: Florent Teichteil <florent teichteil cert fr>
- To: gtkmm-list gnome org
- Subject: [gtkmm] behavior modification of input/output functions
- Date: 20 Jul 2004 19:38:29 +0200
Hi,
I have a problem with input/output operations with gtkmm.
I wrote this piece of code in a graphical application using gtkmm 2.2.1
:
double probability;
printf("p = ");
scanf("%lf", &probability);
printf("\np = %lf\n", probability);
1) First test with 3.56 :
p = 3.56
p = 3,000000
2) Second test with 3,56 :
p = 3,56
p = 3,560000
I was very surprised since I should obtain the opposite result.
Indeed, the same piece of code in a console application returns the
opposite results :
1) First test with 3.56 :
p = 3.56
p = 3.560000
2) Second test with 3,56 :
p = 3,56
p = 3,000000
Therefore, I think that gtkmm modifies the behavior of the functions of
<cstdio>. If so, how can I prevent this modification ?
Can someone help me ?
Thanks,
Florent Teichteil.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]