Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

不是~

Posted by bobobo at 2006-08-10 05:24:27 on Problem 2549
In Reply To:这是什么时候的帖子了?先不管,你说的是内连函数吧? Posted by:sza at 2006-08-08 05:01:59
不是 内联是inline 

无论是sort还是qsort都可以传一个参数是一个函数的,(qsort必须传,sort若不传默认为基本类型从小到大排列),若是结构需要自己定制这个函数。函数作为参数在C/C++叫函数指针,在Java中就是反射

语法没什么特殊的,就是一个函数
在C中参数必须是const void *型,在内部强转
在C++中就任意了,但似乎必须返回bool



Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator