What is the equivalent of with
from Pascal language in C/C++ language?
A with
statement is a shorthand for referencing the fields of a record or the fields, properties, and methods of an object.
Example
With (Object) do
begin
Width:=200;
Height:=300;
end;
Is Equivalent with:
Object.Width=200;
Object.Height=200;