今天写了一个重载的C函数。结果报错:

note: previous definition of 'something' was here

error: conflicting types for 'something'

百思不得其解。在网上搜了半天,发现原来是这样的:

C语言不支持函数重载,C++才支持