Академический Документы
Профессиональный Документы
Культура Документы
0+ 1+ (11)* 0?
One
or
more
of
0,
one
or
more
of
1,
zero
or
more
of
the
consecutive
two
digits
of
1,
and
zero
or
one
of
0.
Example:
01110
4-
Find
out
why
a
C++
class
must
end
with
a
semi-colon,
while
a
function
does
not.
A
class
must
end
with
semi
colon
as
instances
of
the
class
may
be
declared:
e.g.
Class
Ahmed
{
Int
x
=
0;
}
test;
This
declares
both
class
Ahmed
and
an
object
test.
The
colon
has
to
be
there
so
the
compiler
would
know
whether
instances
of
the
class
have
been
declared
or
not.
Conversely,
you
do
not
need
to
put
a
semi
colon
after
a
method
implementation
as
instances
are
not
declared
post
function
declaration,
therefore
a
semi
colon
would
be
redundant.