当前位置:网站首页>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边栏推荐
- Jetson TX2 configures common libraries such as tensorflow and pytoch
- Azure solution: how can third-party tools call azure blob storage to store data?
- C language array
- What if the chat record is gone? How to restore wechat chat records on Apple Mobile
- MySQL performance optimization index
- 03_ Armv8 instruction set introduction load and store instructions
- 16.内存使用与分段
- Exness: positive I win, negative you lose
- 17. Memory partition and paging
- JD home programmers delete databases and run away. Talk about binlog, the killer of MySQL data backup
猜你喜欢

Leetcode: 408 sliding window median

《天天数学》连载57:二月二十六日

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

DC-5 target

C语言数组
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 23](/img/72/a80ee7ee7b967b0afa6018070d03c9.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 23
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 24](/img/2e/b1f348ee6abaef24b439944acf36d8.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 24
![Cadence physical library lef file syntax learning [continuous update]](/img/d5/0671935b074e538a2147dbe51a5a70.jpg)
Cadence physical library lef file syntax learning [continuous update]

Data communication and network: ch13 Ethernet
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 16](/img/c3/f3746b161012acc3751b2bd0b8f663.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 16
随机推荐
MySQL advanced review
Jetson TX2配置Tensorflow、Pytorch等常用库
IPv6 experiment
Uva536 binary tree reconstruction tree recovery
priority_ queue
C language array
Exness: positive I win, negative you lose
C語言:求100-999是7的倍數的回文數
AI should take code agriculture? Deepmind offers a programming version of "Alpha dog" alphacode that surpasses nearly half of programmers!
Star leap plan | new projects are continuously being recruited! MSR Asia MSR Redmond joint research program invites you to apply!
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
认知的定义
Azure solution: how can third-party tools call azure blob storage to store data?
C语言:围圈报号排序问题
Source code analysis of the implementation mechanism of multisets in guava class library
C语言数组
Abnormal mode of ARM processor
Pat 1059 prime factors (25 points) prime table
[notes] streamingassets
Jetson TX2 configures common libraries such as tensorflow and pytoch