Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdio>
- #include <cstdlib>
- #include <string>
- #include <iostream>
- #include <fstream>
- using namespace std;
- int main(){
- FILE * pFile;
- string a;
- cout << "Program is predefined... \n";
- cout << "Input: ";
- cin >> a;
- pFile = fopen ("Personal Shop Codes.txt","a+");
- for( int i = 0; i < a.size(); i++ )
- {
- fprintf(pFile, "%hX ", a[i]);
- }
- cout << endl;
- fclose (pFile);
- cout << "Done! Check your file \n";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement