1// exemple avec la structure Coordonnees :
2struct Coordonnees
3{
4 int x;
5 int y;
6}
7
8int main()
9{
10 Coordonnees coords = {1,2};
11}
1struct address {
2 int street_no;
3 char *street_name;
4 char *city;
5 char *prov;
6 char *postal_code;
7};
8
9address temp_address = {
10 0, // street_no
11 nullptr, // street_name
12 "Hamilton", // city
13 "Ontario", // prov
14 nullptr, // postal_code
15};