decoding
how do i change the program i have to use an ASCII file for input instead of asking the user??
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
int integer;
char character;
int characterperline=0;
do
{
cout << endl;
cin >> integer;
if (integer> 0)
{
cin >> character;
}
else cout << "That is not valid integer!!!";
cout << endl;
for(int N=1;N<=integer; N++)
{
cout << character;
characterperline= characterperline +1;
}
}while (integer>=0);
| |
im supposed to decode a .rle file but i dont know how that is supposed to be put into the code to read it
Last edited on
Topic archived. No new replies allowed.