Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sitha

macrumors newbie
Original poster
Jul 13, 2006
4
0
Hi
I am writing a C++ program dealing with datas.
One of the function I used in my program as given below,

while (getline(input, buff)) {
if (buff.find("X-Coordinate") != string::npos) {
continue; // don't do anything else this pass through the loop
}

Now my problem is Once my program read a line with "X-Coordinate" it should pass 10 lines and then it should read datas from file. Pls help me how to get rid of 10 lines from a particular line.

Regards,
Sitha.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.