作者champavalon (<品>)
看板b96902HW
标题[使徒] 一些格式问题
时间Tue Nov 6 21:36:38 2007
我把答案丢到批改娘时出现了一些问题...
In file included from /usr/include/stdio.h:833,
from source.c:2:
/usr/include/bits/stdio.h: In function `sort':
/usr/include/bits/stdio.h:35: error: nested function `vprintf' declared
`extern'
/usr/include/bits/stdio.h:42: error: nested function `getchar' declared
`extern'
/usr/include/bits/stdio.h:67: error: nested function `putchar' declared
`extern'
请问 vprintf getchar putchar这些东西
要怎麽与我们sort的function相连结呢?
(我以为只要key_table 和 sorted_array就可以了)
还有
测资所放的数目是不一定的吗?
测资中的数字是否会有0呢??
请强者or助教回答
3Q!!
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.240.12
1F:推 chhsiao:你的 #include <stdio.h> 放错地方了 orz 11/06 21:38
2F:→ chhsiao:请放外面 11/06 21:39
3F:→ chhsiao:而且没用 NULL 就不用 include stdio.h 了 11/06 21:39
4F:推 greenoyster:每笔测资会有几个数字和会怎麽分配都是不固定的 11/06 21:47
5F:推 champavalon:那任一个array的数字中会有两个0以上吗?? 11/06 21:50
6F:推 s90413k64:我想只有最後一个是0 11/06 22:18
7F:推 greenoyster:测资中的数字有没有0应该不会影响到解法的喔 11/07 00:27
8F:→ olala7846:不太懂,不是要教function?为何还要写include<stdio.h> 11/07 00:48
9F:推 greenoyster:如果你要用到 "NULL" 这个东西 就要include 11/07 13:50
10F:→ greenoyster:否则 compile 的时候会编不过~ 11/07 13:51