News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Output Error (CMD Screen) when executing C++ Codes

Started by dhavalveera, August 21, 2019, 03:56:15 AM

Previous topic - Next topic

dhavalveera

I am using Code::Blocks 17.12 and I am using it for writing Codes of C/C++.


currently I am facing an Issue when I am writing C Code in Code::Blocks.


I've 133 Line of C Language Code, when I am Building & Compiling the Code, it shows Black Screen (Command Line Interface) it ask for Input but after that it shows error like "FILE-NAME.EXE HAS STOPPED WORKING".


I don't understand why this gives an Error ?


please anyone can suggest me or help to why this Error is occurring during Output ?


waiting for your valuable reply,

BlueHazzard

Quote"FILE-NAME.EXE HAS STOPPED WORKING"
This simply means you have an error in your code. No code error, but a logic error. You have to debug yourself and look where it crashes... Search on youtube/google how to debug your program with codeblocks...
You do not give as nearly enough information to help you more, and even if you give, this is probably the wrong forum to ask this kind of questions

dhavalveera

Thank You for giving me your reply, but in my College (School) Lab I was using Turbo C and it was working perfectly fine there was not any kind of Error either Logical nor syntax error too.


it looks that it is something else from side of Code::Blocks, because my School (College) when I wrote same Code in Code::Blocks their too, it stopped in same way.


here I've attached the Error Screenshot which I am facing after giving 6 number input and waiting for the output/

BlueHazzard

Post minimal code to reproduce this... Only a error messages that says something somewhere is not working does not help, also if we have the error message in an image...

And i bet for 100$ the error is in your code ;)

stahta01

If you are not using an CB Project state that in your thread!!!!

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

BlueHazzard

Quote from: deniselocker on June 23, 2020, 10:02:43 AM
Hello,
I use Debian 9 to study microcontrollers programming in my school but I have no idea how to add a working wizard on Debian. (This is the way it looks on Windows: share\CodeBlocks\templates\wizard).
Thanks in advance!
Why do you post in an completely unrelated thread?
Create a new thread and ask a proper question. What do you want to do? What microcontroller, what compiler what is your problem?

(Or is this a bot?)

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]