abcpqr70 wrote:
> hii
> 
> this line is a part part of a class:-
> int   GetWidth()  { return m_width; };
> 
> i guess it to be a function definition coz of the () after the name...
> 
> but then what is the semicolon(;) doing at the end of the line?????
> 
> 
> please explain.....................

Your 't', 'y', and '.' keys appear to be broken (your 'i' and '?' keys 
are starting to go bad too).  Please consider getting a new keyboard as 
those keys are making you look inappropriate and unprofessional.

Someone got overzealous.  The semi-colon is a statement separator.

IMO, you should be allowed to have empty statements, but depending on 
your compiler's strictness (Comeau online treats empty statements as an 
error), this may or may not compile:

int main(void)
{
;
   ;;;
;1+1;
   return 0;
};;;;

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* MyTaskFocus 1.1
Get on task.  Stay on task.

http://www.CubicleSoft.com/MyTaskFocus/

Reply via email to