1
0
mirror of https://github.com/2martens/uni.git synced 2026-05-07 03:46:25 +02:00

[CCV] Removed dynamic allocation of memory

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2017-04-04 15:51:03 +02:00
parent ca157ad091
commit 26da1ee971

View File

@ -5,7 +5,7 @@
int main()
{
Rectangle* rec = new Rectangle(20, 10);
rec->area();
Rectangle rec = Rectangle(20, 10);
rec.area();
return 0;
}