Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » File won't run
File won't run [message #874518] Mon, 21 May 2012 00:34 Go to next message
Eclipse UserFriend
Hi guys,
So I'm writing a C program that requires user input, except for some reason everytime I try to run the program, nothing appears in the console screen. So I try some other program that requires no user input, and that works out fine. I try to run the program via command line, and that works fine. Any ideas?

code:
#include <stdio.h>

int main(void)
{
float original_amount, amount_with_tax;

printf("Enter an amount: ");
scanf("%f", &original_amount);
amount_with_tax = original_amount * 1.05f;
printf("With tax added: $%.2f\n", amount_with_tax);

return 0;
}
Re: File won't run [message #874594 is a reply to message #874518] Mon, 21 May 2012 03:55 Go to previous message
Eclipse UserFriend
See http://wiki.eclipse.org/CDT/User/FAQ#Eclipse_console_does_not_show_output_on_Windows
Previous Topic:Paste Corrupts Code?
Next Topic:Selection of Language Extension
Goto Forum:
  


Current Time: Tue Jul 22 19:08:10 EDT 2025

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

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

Back to the top