[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Best shell option to avoid - printf error in windows.
From: |
Pascal J. Bourguignon |
Subject: |
Re: Best shell option to avoid - printf error in windows. |
Date: |
Wed, 28 Mar 2012 19:17:56 -0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
flebber <flebber.crue@gmail.com> writes:
> HI
>
> What is the best option to setup a shell in emacs on windows. I am
> having trouble with c programming in the shell it is giving precedence
> to scanf over printf despite order of commands.
>
> For example this below script expects the result of scanf instead of
> printing printf and then waiting for input.
>
> # include <stdio.h>
>
> int a,b,c;
> int main()
> {
> printf("Please print this out.\n");
> scanf("%i",&a);
> b = 2;
> c = a + b;
> printf(" %i + %i = %i", a,b,c);
> return 0;
> }
Where are the calls to fflush?
--
__Pascal Bourguignon__ http://www.informatimago.com/
A bad day in () is better than a good day in {}.