uikolas

C++ Masyvo salinimas

Dec 18th, 2011
437
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.16 KB | None | 0 0
  1. // Pasalina is masyvo A[n], k reiksme
  2. void Salinti(int A[], int & n, int k){
  3.    for(int i = k; i < n - 1; i++)  
  4.     A[i] = A[i+1];
  5.    n--; // n = n - 1;
  6. }
Advertisement
Add Comment
Please, Sign In to add comment