Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F59044392
references.cc
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Apr 19, 09:20
Size
550 B
Mime Type
text/x-c
Expires
Sun, Apr 21, 09:20 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
17112756
Attached To
R10932 CS-119
references.cc
View Options
// references.cc
// Auteur : Quentin Berling
// Version : 1.0
#include <iostream>
using
namespace
std
;
struct
Maison
{
string
adresse
;
};
struct
Personne
{
string
nom
;
Maison
maison
;
};
void
affiche
(
Personne
personne
);
int
main
()
{
Maison
maison1
{
"adresse1"
};
Maison
maison2
{
"adresse2"
};
Personne
personne1
{
"personne1"
,
maison1
};
Personne
personne2
{
"personne2"
,
maison2
};
affiche
(
personne1
);
affiche
(
personne2
);
exit
(
0
);
}
void
affiche
(
Personne
personne
)
{
cout
<<
personne
.
nom
<<
" habite "
<<
personne
.
maison
.
adresse
<<
endl
;
}
Event Timeline
Log In to Comment