输入拼写错误后,编译并执行以下表达式(简化):
if((1 == 2) || 0 (-4 > 2))
printf("Hello");
Run Code Online (Sandbox Code Playgroud)
当然,0应该不存在.
为什么要编译,表达式是什么意思?
原始(简化)应如下所示:
if((1 == 2) || (-4 > 2))
printf("Hello");
Run Code Online (Sandbox Code Playgroud)
这没有编译:
if((1 == 2) || true (-4 > 2))
printf("Hello");
if((1 == 2) || 1 (-4 > 2))
printf("Hello");
if((1 == 2) || null (-4 > 2))
printf("Hello");
Run Code Online (Sandbox Code Playgroud) 我试图将一个空的WPF组框实现为drop事件的登陆区域(例如Files).
但他跟随xaml
<GroupBox Header="Drop Files to convert in here" AllowDrop="True" DragEnter="GroupBox_DragEnter" Drop="GroupBox_Drop" />
Run Code Online (Sandbox Code Playgroud)
只是接受它上面的Drops正好是边框 - 而不是整个控件上的需要(组框内的空间).我怎么能接受Drops的整个控制?