C语言
weixin_40343998
这个作者很懒,什么都没留下…
展开
-
宏的调用
C语言学习-翁凯老师C语言#define TOUPPER(c) ('a'<=(c)&&(c)<='z'?(c)-'a'+'A':(c))设s是一个足够大的字符数组,i是int型变量,则以下代码段的输出是:strcpy(s, "abcd");i = 0;putchar(TOUPPER(s[++i]));putchar(TOUPPER(s[++i]));宏展zhidao开的结果是:putchar((‘a’<=(s[++i])&&(s[++i原创 2020-05-18 15:31:30 · 684 阅读 · 1 评论 -
1039 Course List for Student (25分) && 1047 Student List for Course (25分)
Input Specification:Each input file contains one test case. For each case, the first line contains 2 positive integers: N (≤40,000), the number of students who look for their course lists, and K (≤2,...原创 2020-02-22 22:23:59 · 99 阅读 · 0 评论 -
100以内的素数
&lt;textarea readonly="readonly" name="code" class="c++"&gt; #include&lt;stdio.h&gt;#include&lt;math.h&gt;bool isPrime(int n) { if(n &lt;=原创 2019-01-21 10:32:38 · 355 阅读 · 0 评论