Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- struct Distance
- {
- unsigned inches;
- unsigned feet;
- };
- void PrintD(Distance d)
- {
- std::cout << d.feet << '\'' << d.inches << '"';
- }
- int main()
- {
- Distance d = { 10, 5 };
- PrintD(d);
- return 0;
- }
Add Comment
Please, Sign In to add comment