Jump to content

C# Coding Help???

Go to solution Solved by vorticalbox,
4 hours ago, NovaMan01 said:

I am trying to make a program that when you enter in a certain number, it outputs a response. I have had some success, but everytime it outputs, it closes a second later. Any ideas on how to make it not close until some user inputted command is done?

add Console.ReadKey() at the end of the file this will make the console wait for a key to be pressed before closing. 

 

I am trying to make a program that when you enter in a certain number, it outputs a response. I have had some success, but everytime it outputs, it closes a second later. Any ideas on how to make it not close until some user inputted command is done?

Link to comment
https://linustechtips.com/topic/794883-c-coding-help/
Share on other sites

Link to post
Share on other sites

4 hours ago, NovaMan01 said:

I am trying to make a program that when you enter in a certain number, it outputs a response. I have had some success, but everytime it outputs, it closes a second later. Any ideas on how to make it not close until some user inputted command is done?

add Console.ReadKey() at the end of the file this will make the console wait for a key to be pressed before closing. 

 

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to comment
https://linustechtips.com/topic/794883-c-coding-help/#findComment-10008016
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×