Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. void function1(struct_a *a, struct_b *b, int i)
  2. {
  3. cout << "abc";
  4. }
  5.  
  6. void function1(struct_c *c, struct_d *d)
  7. {
  8. cout << "def";
  9. }
  10.  
  11. int main()
  12. {
  13. struct_a *a = (struct_a *)<some-data-a>;
  14. struct_b *b = (struct_b *)<some-data-b>;
  15. struct_c *c = (struct_c *)<some-data-c>;
  16. struct_d *d = (struct_d *)<some-data-d>;
  17.  
  18. function1(a, b, 1);
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement