txt. file editing

Hi!
I'm trying to make a program that generates chars to symbols so I can use secret codes and decode it with the program.
Example:
I write down on the command : Alban Gashi
So the program generates it to :#!(#& @#)_+
I want to make one program to generate char to symbol and one symbol to char.
I dont know how to make it like that:
if A :
write # :
I dont know what to use char,string......
This is how far I come :(

#include <iostream>
#include <fstream>
#include <string>
using namespace std;

int main () {
ofstream myfile;
string name;
getline(cin , name);
myfile.open ("example.txt");
myfile << name;
myfile.close();
return 0;
}
you need a character map, a 2D array that holds a character and its equivalent transposition.
thank you
Topic archived. No new replies allowed.