Advertisement
Blade83

Parameter bei Programmstart übergeben

Mar 4th, 2014
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main(int argc, char *argv[])
  4. {
  5.     for (int i=0; i<argc; i++)
  6.     {
  7.         cout << i << " " << argv[i] << endl;
  8.     }
  9.     // aufruf mit programm.exe test1
  10.     char eingabe;
  11.     cin >> eingabe;
  12.     return (0);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement