Advertisement
STANAANDREY

chestie

May 24th, 2019
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. #include <stdlib.h>
  3. #include <cstring>
  4. #include <cstdio>
  5. #include <windows.h>
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10.     string s="andrei";
  11.     int len=s.size();
  12.     char chr[len];
  13.     strcpy(chr,s.c_str());
  14.     cout<<chr;
  15.    char x[]="stana";
  16.    string str1(x);
  17.    cout<<str1;
  18.    string filename="mspaint";
  19. ShellExecute(NULL,"open",filename.c_str(),NULL,NULL,SW_SHOWNORMAL);
  20.   return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement