
C语言
高能粒子
这个作者很懒,什么都没留下…
展开
-
LeetCode 383 Ransom Note 勒索信 C语言
Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if the ransom note can be constructed from the magazines ; ot...原创 2020-05-03 22:50:43 · 257 阅读 · 0 评论 -
C语言 中“?”和“:”的用法 A?X:Y
在c语言中,符号"?“与”:"是一起出现使用的。两者组合成条件选择语句。例如:N=A?X:Y;该句中"A"为判断条件,“A"为真时N=X,”A”不成立时”N=Y"。例子:n=x>y?1:0; // x>y时n=1,x<=y时n=0;...原创 2020-05-02 00:35:46 · 31415 阅读 · 1 评论