Guest User

Untitled

a guest
Jan 21st, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. template <int LENGTH>
  2. struct LightArray
  3. {
  4. int array[LENGTH];
  5. int size = LENGTH;
  6. };
  7.  
  8. int cArray[4];
  9. cArray[0] = rand();
  10. cArray[1] = rand();
  11. cArray[2] = rand();
  12. cArray[3] = rand();
  13.  
  14. LightArray<4> sArray;
  15. sArray.array[0] = rand();
  16. sArray.array[1] = rand();
  17. sArray.array[2] = rand();
  18. sArray.array[3] = rand();
Add Comment
Please, Sign In to add comment