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()
|
int main()
|
||||||
{
|
{
|
||||||
Rectangle* rec = new Rectangle(20, 10);
|
Rectangle rec = Rectangle(20, 10);
|
||||||
rec->area();
|
rec.area();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue