mirror of
https://github.com/2martens/uni.git
synced 2026-05-06 19:36:26 +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()
|
int main()
|
||||||
{
|
{
|
||||||
Rectangle* rec = new Rectangle(20, 10);
|
Rectangle rec = Rectangle(20, 10);
|
||||||
rec->area();
|
rec.area();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user