mirror of https://github.com/2martens/uni.git
[CCV] Removed dynamic allocation of memory
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
parent
ca157ad091
commit
26da1ee971
|
@ -5,7 +5,7 @@
|
|||
|
||||
int main()
|
||||
{
|
||||
Rectangle* rec = new Rectangle(20, 10);
|
||||
rec->area();
|
||||
Rectangle rec = Rectangle(20, 10);
|
||||
rec.area();
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue