is this a valid algorithm for the question above? because I'm getting
these errors:
c:\\TempConvert er.cpp(28): error C2106: '=' : left operand must be
l-value
c:\\TempConvert er.cpp(29): error C2059: syntax error : '<'
int roundUp( int )
{
int x, y, z ;
x % 10 = y;
if( y >= 1 && < 10 )
{
z = ( 10 - y ) + x;
}
return z;
}
*---------------------------------*
Posted at: http://www.GroupSrv.com
Check: http://www.HotCodecs.com
*---------------------------------*
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
these errors:
c:\\TempConvert er.cpp(28): error C2106: '=' : left operand must be
l-value
c:\\TempConvert er.cpp(29): error C2059: syntax error : '<'
int roundUp( int )
{
int x, y, z ;
x % 10 = y;
if( y >= 1 && < 10 )
{
z = ( 10 - y ) + x;
}
return z;
}
*---------------------------------*
Posted at: http://www.GroupSrv.com
Check: http://www.HotCodecs.com
*---------------------------------*
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
Comment