比如说字符串排序
以下是打印效果:
请输入字符串个数(<5):3
输入第1个字符串:qwe
输入第2个字符串:asd
输入第3个字符串:zzd
排序中...
asd
qwe
zzd
Press any key to continue
我想在 排序中... 之后等1到2秒 可以实现吗?
sleep | |||
| |||
[此贴子已经被作者于2007-10-15 23:29:57编辑过]
--------------------Configuration: 1 - Win32 Debug--------------------
Compiling...
1.c
C:\Documents and Settings\wuxiaodong\桌面\1.c(26) : error C2373: 'accept' : redefinition; different type modifiers
e:\microsoft visual studio\vc98\include\winsock.h(707) : see declaration of 'accept'
C:\Documents and Settings\wuxiaodong\桌面\1.c(36) : warning C4047: 'function' : 'unsigned int ' differs in levels of indirection from 'char *[5]'
C:\Documents and Settings\wuxiaodong\桌面\1.c(36) : warning C4024: 'accept' : different types for formal and actual parameter 1
C:\Documents and Settings\wuxiaodong\桌面\1.c(36) : error C2198: 'accept' : too few actual parameters
C:\Documents and Settings\wuxiaodong\桌面\1.c(43) : error C2373: 'accept' : redefinition; different type modifiers
e:\microsoft visual studio\vc98\include\winsock.h(707) : see declaration of 'accept'
执行 cl.exe 时出错.
1.exe - 1 error(s), 0 warning(s)
这个是加上之后的错误