Wpis z mikrobloga

@ungaged: int a=0;
int b=0;
int d=0;
string previousLine="#!$%@?";
while(a<2) // To get you all the lines.
{
getline(infile,STRING); // Saves the line in STRING.
if (STRING != previousLine)
{

previousLine=STRING;
int length = (STRING.length());
for (int i=d*2; i< length ; i++){
if(STRING[i] =='1'){

cout<< b << " " << ceil(i/2) << " " << endl;
} // Prints our STRING.

}
b++;
d++;
}


}
infile.close();


infile.close();
system ("pause");
}