From: | |
Date: | 01 Feb 2001 at 20:52:09 |
Subject: | structures... |
Hiya,
Say you had the following structure:
struct test
{
char *str;
long val;
}
In Delphi there is a keyword 'with' which allows you to do the following;
rather than...
struct test blah;
blah.str = abc;
blah.val = xyz;
... you can do...
struct test blah;
with blah do
begin
str = abc;
val = xyz;
end;
Is there an equivalent in C/C++?
Kind regards...
Alex
------------------------ Yahoo! Groups Sponsor ---------------------~-~>
eGroups is now Yahoo! Groups
Click here for more details
http://click.egroups.com/1/11231/0/_/451227/_/981098909/
---------------------------------------------------------------------_->