Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse CDT - getchar/scanf(running getchar or scanf doesn't prompt input where I can type in)
Eclipse CDT - getchar/scanf [message #966450] Wed, 31 October 2012 21:45 Go to next message
Sivan S is currently offline Sivan S
Messages: 1
Registered: October 2012
Junior Member
I took an intro programming course, but I'm new to doing this on my own.
I am running Eclipse Juno IDE for C/C++ Developers with MinGW.
For some reason, when I run the following code (from K&R) no input box shows up where I can type in my response after getchar().

#include <stdio.h>

main(){
int c;

while((c=getchar()) != EOF)
putchar(c);
}

I looked in the console build and found this message:

"c:/mingw/bin/../ld.exe: cannot open output file char.exe: Permission denied"

which I haven't gotten for anything else. Does anyone know where I can find the input prompt?
Re: Eclipse CDT - getchar/scanf [message #967101 is a reply to message #966450] Thu, 01 November 2012 09:42 Go to previous message
Russell Bateman is currently offline Russell Bateman
Messages: 3052
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 11/1/2012 6:31 AM, Sivan S wrote:
> I took an intro programming course, but I'm new to doing this on my own.
> I am running Eclipse Juno IDE for C/C++ Developers with MinGW. For some
> reason, when I run the following code (from K&R) no input box shows up
> where I can type in my response after getchar().
>
> #include <stdio.h>
>
> main(){
> int c;
>
> while((c=getchar()) != EOF)
> putchar(c);
> }
>
> I looked in the console build and found this message:
>
> "c:/mingw/bin/../ld.exe: cannot open output file char.exe: Permission
> denied"
>
> which I haven't gotten for anything else. Does anyone know where I can
> find the input prompt?

When new to a forum, check out the sticky posts at the top so you know
you're in the right place.

http://www.eclipse.org/forums/index.php/t/161206/
Previous Topic:Not able to import only one particular project in eclipse
Next Topic:How to install a fix in Eclipse IDE for Bug 367788
Goto Forum:
  


Current Time: Sat Apr 19 00:39:16 EDT 2014

Powered by FUDForum. Page generated in 0.01580 seconds