| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Need to copy |
Hallo Jonathan!
Antwort auf eine Message von Jonathan de Boyne Pollard an James Mckenzie:
JdBP> With C++, just use the assignment operator. For POD structures,
JdBP> this performs a memberwise copy.
JdBP> struct A {
JdBP> int i ;
JdBP> long l ;
JdBP> } ;
JdBP> A a = { 1, 2 } ;
JdBP> A b = { 3, 4 } ;
JdBP> b = a ;
this is fine with C too. even MS C 5.x compilers supported it. (in 1989).
Servus, Mario!
--- FleetStreet 1.21 PR#2
* Origin: LC/32 Development Team, http://www.kirchnersoft.com (2:310/14.11)SEEN-BY: 396/1 632/0 371 633/210 260 267 270 371 635/506 728 639/252 670/218 @PATH: 310/14 1 65 24/888 396/1 633/260 635/506 728 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.