Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. #include <iostream>
  2.  
  3.  using namespace std;
  4.  
  5.  void Wypisz(int argc, char *argv[]);
  6.  
  7.  int main (int argc, char *argv[]) {
  8.     Wypisz(argc, argv);
  9.     return 0;
  10.  }
  11.  
  12.  void Wypisz(int argc, char *argv[]) {
  13.     cout << "Liczba argumentow w wierszu polecen: " << argc << endl;
  14.     for(int i=0; i<argc; ++i)
  15.        cout << "Element numer " << i << " wiersza polecen ma wartosc: "
  16.             << argv[i] << endl;
  17.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement