[Top][All Lists]

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

Re: Mac OS X/Emacs/C mode/compiling & executing programs

From: Eli Zaretskii
Subject: Re: Mac OS X/Emacs/C mode/compiling & executing programs
Date: Mon, 27 Nov 2006 08:43:11 +0200

> From: Frank Murray <address@hidden>
> Date: Sun, 26 Nov 2006 18:48:59 -0500
>     This is a new post and this is also a newbie question.  I am trying
> to Run a C program in the Emacs editor.  It compiles, but unfortunately,
> it does not Run or Execute.  Sample code is listed directly below:
>       printf("Enter an x-value.\n");
>       scanf("%f", &x);
>       printf("Enter a y-value.\n");
>       scanf("%f", &y);
> Within the Emacs editor, the above listed code does not Run; it
> compiles, but does not Run or execute.
> What is really confusing is that within the Mac OS X terminal
> window, it both compiles and Runs.  It seems as though within the
> Emacs editor, the scanf function does not work.

How did you run the program from within Emacs?  There are several
different ways of running programs in Emacs, some of them are
unsuitable for programs that read from standard input (which is what
scanf does).

reply via email to

[Prev in Thread] Current Thread [Next in Thread]