Author Topic: Output Error (CMD Screen) when executing C++ Codes  (Read 6850 times)

Offline dhavalveera

  • Single posting newcomer
  • *
  • Posts: 3
Output Error (CMD Screen) when executing C++ Codes
« on: August 21, 2019, 03:56:15 am »
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,

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Output Error (CMD Screen) when executing C++ Codes
« Reply #1 on: August 21, 2019, 08:26:18 am »
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

Offline dhavalveera

  • Single posting newcomer
  • *
  • Posts: 3
Re: Output Error (CMD Screen) when executing C++ Codes
« Reply #2 on: August 21, 2019, 03:47:11 pm »
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/

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Output Error (CMD Screen) when executing C++ Codes
« Reply #3 on: August 21, 2019, 04:38:24 pm »
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 ;)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Output Error (CMD Screen) when executing C++ Codes
« Reply #4 on: August 21, 2019, 05:27:00 pm »
If you are not using an CB Project state that in your thread!!!!

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

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Output Error (CMD Screen) when executing C++ Codes
« Reply #5 on: June 24, 2020, 10:33:40 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?)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Output Error (CMD Screen) when executing C++ Codes
« Reply #6 on: June 24, 2020, 10:55:20 am »
Just a bot :(
(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!]