#include <iostream>
#include <fstream>
#include <string>
using namespace std;
string filename, key, fileline;
fstream myfile;
int main (int argc, char * const argv[])
{
cout << "Please enter the ciphertext filename:";
cin >> filename;
myfile.open(filename.c_str());
while (!myfile.eof())
{
getline (myfile, fileline);
int p= 2;
string para1, para2;
for (int i = 0, j = 0; j<fileline.length(); j++)
{
if (p = 2)
{
if (i = 1)
{
para1 = para1 + fileline[j];
i = 2;
}
if (i = 2)
{
para2 = para2 + fileline[j];
i = 1;
}
}
}
cout << para1 << endl;
cout << para2 << endl;
}
return 0;
}
can any kind soul help me with this? thxs alot!
This post has been edited by complexity: 27 January 2010 - 12:13 AM

New Topic/Question
Reply




MultiQuote




|