Guest User

Untitled

a guest
Dec 19th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. void FillArray(int cnt, double *arr, double a = 0, double b = 1, double c = 2)
  2. {
  3. for (int i = 0; i < cnt; i+=3) {
  4. arr[i] = a;
  5. arr[i + 1] = b;
  6. arr[i + 2] = c;
  7. }
  8. }
Add Comment
Please, Sign In to add comment