Home
Sign Up
Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
V2EX
›
程序员
C#布尔运算
passMeBy
·
Jan 15, 2020
· 2447 views
This topic created in 2376 days ago, the information mentioned may be changed or developed.
在 C#中可以使用 console.write 输出诸如(!true||false||true&&true )的布尔结果,请问大佬知道如何将这结果传个一个变量吗?或者有没有其他方式来进行布尔运算?
true
布尔
运算
console
4 replies
•
2020-01-15 16:10:39 +08:00
1
ruatyy
Jan 15, 2020
bool
2
Athrob
Jan 15, 2020
`var =`一把梭
3
Athrob
Jan 15, 2020
@
Athrob
#2 `var xxx =`一把梭
4
ruatyy
Jan 15, 2020
bool item = !true || false || true && true;
Console.WriteLine(item);
你不想用 bool 可以用 var,不清楚用啥类型你就 var 就行了。。
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
2902 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: ce1cc7fc · 45ms ·
UTC 04:08
·
PVG 12:08
·
LAX 21:08
·
JFK 00:08
♥ Do have faith in what you're doing.
❯