How can i make this image?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
#include <fstream>
#include <iostream>
using namespace std;
int main(){
fstream file1,file2;
file1.open("C:\\Exam.jpg",ios::in|ios::binary);
file2.open("D:\\Exam2.jpg",ios::out|ios::binary);
string a;
while(!file1.eof()){
getline(file1,a);
file2<<a;
}
system("PAUSE");
return 0;
}
|
Topic archived. No new replies allowed.