Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void Wypisz(int argc, char *argv[]);
- int main (int argc, char *argv[]) {
- Wypisz(argc, argv);
- return 0;
- }
- void Wypisz(int argc, char *argv[]) {
- cout << "Liczba argumentow w wierszu polecen: " << argc << endl;
- for(int i=0; i<argc; ++i)
- cout << "Element numer " << i << " wiersza polecen ma wartosc: "
- << argv[i] << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement