Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main(){
- string a = "1010101";
- string b = "001010101";
- string c = "1110101011";
- string s_array[3];
- s_array[0] = a;
- s_array[1] = b;
- s_array[2] = c;
- ofstream o_file("a.txt",ios::app);
- ofstream o_file2("b.dat", ios::app);
- for (int j = 0; j < 1000; j++)
- for (int i = 0; i < 3; i++)
- o_file << s_array[i];
- for (int j = 0; j< 1000; j++)
- for (int i = 0; i < 3; i++)
- o_file2 << (byte)s_array[i];
- return 0;}
Add Comment
Please, Sign In to add comment