SelectSor(int A,int n);改成SelectSor(A,n);函数的调用是SelectSor(A, n);,传参不需要声明类型,类型只在定义时使用。#include void SelectSor(int* A,int n)int main(){ int n,i,A[100];scanf("%d",&n);for(i=0;i<n;i++)scanf("%d",&A[i]);SelectSor(A,n)...
如果是声明 没看出它的用处 而且缺少分号 如果是函数调用, 同样应该有分号,同时不应该有void
70、warning C4508: 'xxx' : function should return a value; 'void' return type assumed 中文对照:(编译警告)函数xxx应有返回值,假定返回类型为void 分析:一般是未定义main函数的类型为void,不影响程序执行 71、warning C4552: 'operator' : operator has no effect; expected operator with side-effect 中...
【C语言基础】解决C语言error: expected ‘;‘, ‘,‘ or ‘)‘ before ‘&‘ token can test code tfl_can.c#include "tfl_can.h" // int can_init( int* sock ) { struct sockaddr_can addr; struct ifreq ifr; const char* ifrname = "can1"; ...
【C语言基础】解决C语言error: expected ‘;‘, ‘,‘ or ‘)‘ before ‘&‘ token can test code tfl_can.c#include "tfl_can.h" // int can_init( int* sock ) { struct sockaddr_can addr; struct ifreq ifr; const char* ifrname = "can1"; ...
分析:一般是未定义main函数的类型为void,不影响程序执行 warning C4552: 'operator' : operator has no effect; expected operator with side-effect 中文对照:(编译警告)运算符无效果;期待副作用的操作符 分析:例如“i+j;”语句,“+”运算无意义 warning C4553: '==' : operator has no effect; did you ...