Skip to main content



      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
Eclipse UserFriend
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 messageGo to next message
Eclipse UserFriend
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/
Re: Eclipse CDT - getchar/scanf [message #1805009 is a reply to message #966450] Thu, 04 April 2019 10:18 Go to previous messageGo to next message
Eclipse UserFriend
I have exactly the same problem and i can't find any fix for it :(
Re: Eclipse CDT - getchar/scanf [message #1805030 is a reply to message #1805009] Thu, 04 April 2019 12:55 Go to previous messageGo to next message
Eclipse UserFriend
Then you might also want check out the sticky note link so that you too can ask on the CDT forum..
Re: Eclipse CDT - getchar/scanf [message #1805068 is a reply to message #966450] Fri, 05 April 2019 04:30 Go to previous message
Eclipse UserFriend
ok i'll check it thank you

[Updated on: Fri, 05 April 2019 04:33] by Moderator

Previous Topic:TLS 1.2
Next Topic:[solved] how to find current context for key bindings?
Goto Forum:
  


Current Time: Wed Jul 09 11:42:21 EDT 2025

Powered by FUDForum. Page generated in 0.08985 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top