当前位置:网站首页>Can Console. Clear be used to only clear a line instead of whole console?
Can Console. Clear be used to only clear a line instead of whole console?
2022-07-04 12:41:00 【Rich in starch】
problem :
While working on a question/answer program for school, it occurred to me that I can use Console.Clear() to wipe out everything on the screen. When writing a question and answer program for the school , It suddenly occurred to me that I could use Console.Clear() Clear everything on the screen .I wonder if I can use Console.Readline(valueOne) , then output only the answer without the question. I want to know if I can use Console.Readline(valueOne) , Then only output the answers without questions .If I only asked one question, the Console.Clear works. If I only ask one question , Console.Clear Work .
I have several questions with values not references, to erase if possible. I have a few questions about values rather than references , If possible , Please delete .I want to leave out the questions and only display several answers. I want to omit these questions , Show only a few answers .I think if I store the answers, I could use Console.Clear() then just Console.WriteLine() with three variables. I think if I store answers , I can use Console.Clear() Then use only with three variables Console.WriteLine() .I could do something like this: I can do such things :
Console.WriteLine("Value 1 is: {0:c}" + "Value 2 is: {1:c}" + "Value 3 is: {2:c}, valueOne, valueTwo, valueThree).The problem is easier with references because the values are stored and retrieved. It's easier to quote questions , Because values are stored and retrieved .If I simply use methods to pass by value and output the value, main() will not have a reference to those values to clear and output again. If I just use methods to pass and output values by value , be main() There will be no reference to these values to clear and output again .That's why I wonder if I can just ask a question, then erase the line and output only the answer (or answers). That's why I want to know if I can only ask one question , Then erase the line and output only the answer ( Or the answer ).
I am just trying to understand the possibilities and not trying to setup a program. I just want to know the possibility , Instead of trying to set up the program .I like to know the abilities of outputting a value from reference and by value without extra output questions. I want to know the ability to output values by reference and by value , Without additional output problems .
Solution :
Reference resources : https://stackoom.com/en/question/bXTM边栏推荐
- 记一次 Showing Recent Errors Only Command /bin/sh failed with exit code 1 问题
- C language: the sorting problem of circle number reporting
- [solve the error of this pointing in the applet] SetData of undefined
- World document to picture
- Haproxy cluster
- The solution of permission denied
- Lvs+kept highly available cluster
- The database connection code determines whether the account password is correct, but the correct account password always jumps to the failure page with wrong account password
- BCD code Baidu Encyclopedia
- I want to talk about yesterday
猜你喜欢

The database connection code determines whether the account password is correct, but the correct account password always jumps to the failure page with wrong account password

Error: Failed to download metadata for repo ‘AppStream‘: Cannot download repomd. XML solution

Show recent errors only command /bin/sh failed with exit code 1

C language function

Exness: positive I win, negative you lose

IPv6 experiment

【数据聚类】第四章第一节3:DBSCAN性能分析、优缺点和参数选择方法

French Data Protection Agency: using Google Analytics or violating gdpr

C fonctions linguistiques

Review of week 278 of leetcode II
随机推荐
Communication tutorial | overview of the first, second and third generation can bus
Jetson TX2 configures common libraries such as tensorflow and pytoch
Interview question MySQL transaction (TCL) isolation (four characteristics)
How to realize the function of Sub Ledger of applet?
C language: find the palindrome number whose 100-999 is a multiple of 7
asp. Core is compatible with both JWT authentication and cookies authentication
Clockwise rotation method of event arrangement -- PHP implementation
Uva536 binary tree reconstruction tree recovery
vim 出现 Another program may be editing the same file. If this is the case 的解决方法
Entity framework calls Max on null on records - Entity Framework calling Max on null on records
Entitas learning [iv] other common knowledge points
Global and Chinese markets for environmental disinfection robots 2022-2028: Research Report on technology, participants, trends, market size and share
How to use the mongodb ID array to get multiple documents- How to get multiple document using array of MongoDb id?
Understand bloomfilter in one article
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 18
Snowflake won the 2021 annual database
When synchronized encounters this thing, there is a big hole, pay attention!
Sort merge sort
Memory computing integration: AI chip architecture in the post Moorish Era
Kivy tutorial 08 countdown app implements timer call (tutorial includes source code)