Advertisement
Guest User

C++ System Befehl mit Variablen

a guest
Oct 10th, 2015
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. #include<iostream>
  2. #include<string>
  3.  
  4. using namespace std;
  5.  
  6.  
  7. int main()
  8. {
  9.     string StringA;
  10.     string StringB;
  11.  
  12.     cout << "------------Schuelerchat------------";
  13.     cout << "\n";
  14.     system("net users");
  15.     getchar();
  16.  
  17.     cout << "Bitte gebe den Nutzernamen an:";
  18.     cin >> StringA;
  19.  
  20.     system("cls");
  21.  
  22.     cout << "Bitte gebe die Nachricht an:";
  23.     cin >> StringB;
  24.  
  25.     system("cls");
  26.  
  27.     system("net send" << StringA << StringB);
  28.  
  29.     return 0;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement