Looking for C# equivalent of scanf

后端 未结 9 1138
误落风尘
误落风尘 2020-11-29 09:51

I used to code in C language in the past and I found the scanf function very useful. Unfortunately, there is no equivalent in C#.

I am using using it to

9条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-29 10:39

    You can use scanf directly from C runtime libraries, but this can be difficult if you need to run it with different parameters count. I recommend you to regular expressions for you task or describe that task here, maybe there is another ways.

提交回复
热议问题