all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
Subject: Re: Mac OS X/Emacs/C mode/compiling & executing programs
Date: Mon, 27 Nov 2006 08:43:11 +0200	[thread overview]
Message-ID: <uslg5z8xs.fsf@gnu.org> (raw)
In-Reply-To: <D2E2D9B3-A3F2-4B30-A263-2664D3C4EE7D@mac.com> (message from Frank Murray on Sun, 26 Nov 2006 18:48:59 -0500)

> From: Frank Murray <fjmurray1@mac.com>
> 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	other threads:[~2006-11-27  6:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-26 23:48 Mac OS X/Emacs/C mode/compiling & executing programs Frank Murray
2006-11-27  6:43 ` Eli Zaretskii [this message]
     [not found]   ` <E05CDE2A-010F-1000-DCD3-33BD3F4ABCAB-Webmail-10006@mac.com>
2006-11-28  4:26     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=uslg5z8xs.fsf@gnu.org \
    --to=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.