error:too few arguments to functionC语言大概是main(){.char line[MAXLINE];while( getline(line,MAXLINE)>0) {} //error 就在这里,明明就是两个参数,没有少啊}getline(s,lim)char s[];int lim;{ int i;...return (i);}

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/17 04:23:45
error:too few arguments to functionC语言大概是main(){.char line[MAXLINE];while( getline(line,MAXLINE)>0) {} //error 就在这里,明明就是两个参数,没有少啊}getline(s,lim)char s[];int lim;{ int i;...return (i);}
xT]KA+s%&1DĜ=efOH-!+ n43ծ 9^DU,3Lwä 5cF0`y(zOw>n=H6?rQu1*7xneVhyr46+f#$^uzb  }s1y>oӍdw%Y{2mQ}7ZBcIQ*K]zH M!mcO|ykn//k!]\9MJʓսR tjF?ΦHu{E<S&z m-ԏc81IBԦ5S:? gud'L t F<=D>ېj8w1&Z4:oIQI 6%.GR1+9`ēa@( b_gwL %#3L5X /j=.ƺ pr0oPZ(Q\4.-<}CS8OLL9sl4z~E1-itqpXƥX8,d]҇NM6|?͚8wNd@k<: kN*'q;F`JѹvlJg3$+XcӺWSVU6

error:too few arguments to functionC语言大概是main(){.char line[MAXLINE];while( getline(line,MAXLINE)>0) {} //error 就在这里,明明就是两个参数,没有少啊}getline(s,lim)char s[];int lim;{ int i;...return (i);}
error:too few arguments to function
C语言
大概是
main(){
.
char line[MAXLINE];
while( getline(line,MAXLINE)>0) {} //error 就在这里,明明就是两个参数,没有少啊
}
getline(s,lim)
char s[];
int lim;
{ int i;
...
return (i);
}

error:too few arguments to functionC语言大概是main(){.char line[MAXLINE];while( getline(line,MAXLINE)>0) {} //error 就在这里,明明就是两个参数,没有少啊}getline(s,lim)char s[];int lim;{ int i;...return (i);}
函数参数不对,少了.
去查查函数使用方法.
我记得它是由三个参数组成.
int GetLine( int nIndex,LPTSTR lpszBuffer,int nMaxLength ) const;
Return Value
The number of bytes actually copied.The return value is 0 if the line number specified by nIndex is greater then the number of lines in the edit control.
Parameters
nIndex
Specifies the line number to retrieve from a multiple-line edit control.Line numbers are zero-based; a value of 0 specifies the first line.This parameter is ignored by a single-line edit control.
lpszBuffer
Points to the buffer that receives a copy of the line.The first word of the buffer must specify the maximum number of bytes that can be copied to the buffer.
nMaxLength
Specifies the maximum number of bytes that can be copied to the buffer.GetLine places this value in the first word of lpszBuffer before making the call to Windows.
Remarks
Call this function to retrieve a line of text from an edit control and places it in lpszBuffer.
The copied line does not contain a null-termination character.
For more information,seeEM_GETLINE in the Win32 documentation.