mirror of
https://github.com/2martens/uni.git
synced 2026-05-06 11:26:25 +02:00
[CCV] Removed dynamic allocation of memory
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
|
||||
int main()
|
||||
{
|
||||
Rectangle* rec = new Rectangle(20, 10);
|
||||
rec->area();
|
||||
Rectangle rec = Rectangle(20, 10);
|
||||
rec.area();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user