Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct thing {
  5.     int five;
  6.     float* floot;
  7. };
  8. int main() {
  9.     struct thing* array = new thing[15];
  10.     for (int i = 0; i < 15; i += 1) {
  11.         struct thing* mything = new thing;
  12.         array[i] = *mything;
  13. }
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement