Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

non terminating loop

0 views
Skip to first unread message

Edwards Kathryn M

unread,
Apr 9, 2001, 10:38:30 PM4/9/01
to

Please help!

my while loop:
while(cin >> coord1 >> coord2){

edgecounter = edgecounter + 1;
graphname.matrix[coord1*graphname.n()+coord2] = 1;
graphname.matrix[coord2*graphname.n()+coord1] = 1;
}
never exits, even with the eof key???

0 new messages