cancel
Showing results for 
Search instead for 
Did you mean: 

C local application program is not running properly in IDE's console however it runs properly on Code::Blocks IDE. Looking for assistance on this issue.

JH.1
Associate

Running a very basic C program that prompts user for input from console, grabs input and then does computations and generates output on console.

When I run my program as "Local C/C++ application", on console, it appears to be waiting for something such as input without running my code first (my code runs fine on other IDE's and even onlinegdb.com ). I press enter and no response from console. I input something random (garbage input to console) and then the program runs however due to garbage input being in the input stream, the program won't run properly. Not sure what the issue is coming from and/or how to fix it.

I have attached the source code ( .C ) as well as two images ( .PNG) of the console before and after I input garbage.

0 REPLIES 0