ログイン
kid's world

バグ

List 7: bug1.c

#include <stdio.h>

main()
{
}
C:\LSIC86\TMP>lcc bug1
bug1.c 6: syntax error near '}'

C:\LSIC86\TMP>

List 8: bug2.c

#include <stdio.h>

main()
{
}
C:\LSIC86\TMP>lcc bug2
bug2.c 5: Warning: function 'pritnf' undefined -- assumed to be int
lld @link.i
bug2.obj(bug2): Undefined symbol: pritnf_

C:\LSIC86\TMP>

List 9: bug3.c

#include <stdio.h>

main()
{
}
C:\LSIC86\TMP>lcc bug3.c
bug3.c 5: missing "
bug3.c 6: syntax error near '}'

C:\LSIC86\TMP>

List 10: bug4.c

#include <stdio.h>

main()
{
  printf("%d\n", 10/3);
}
C:\LSIC86\TMP>lcc bug4
lld @link.i

C:\LSIC86\TMP>bug4
3

C:\LSIC86\TMP>

広告


©Toshio Koide 1996-2007.

mail.gif

広告