今天写了一个重载的C函数。结果报错:
note: previous definition of 'something' was here
error: conflicting types for 'something'
百思不得其解。在网上搜了半天,发现原来是这样的:
C语言不支持函数重载,C++才支持
转载于:https://blog.51cto.com/11190017/1792946
今天写了一个重载的C函数。结果报错:
note: previous definition of 'something' was here
error: conflicting types for 'something'
百思不得其解。在网上搜了半天,发现原来是这样的:
C语言不支持函数重载,C++才支持
转载于:https://blog.51cto.com/11190017/1792946