?

Log in

No account? Create an account

Previous Entry | Next Entry

make frogs not progs

only i could creat a segmentation fault between two print statements in c.

i swear i am the most bug prone programmer in the world. plus i type very badly and don't know proper sytax.

so, 6 hours later, i finally finshed my stupid string program. tomorrow will be another mostly frustrating but eventually satisfying day of programming that game of life nonsense. i've really only got one big problem with that one, so if you'd like to help:

i need to receive coordinates from a file in the form of x y but still have my input loop terminate when the user just enters -1. so how do i tell my prog not to look for the second coordinate?

so i took a break after finishing my prog because my dad said he wanted to talk about something unrelated for 5 minutes. 2 hours later, neither he nor i could remember or discern his initial point. i love talking to my dad, but, shit, i can't handle that nonsense on days like today.

god. when did i start saying nonsense so much?

i'm over today. peace!

eknouf i request a sample of the cookies so that i may determine for myself if you meet the high knouf quality standards!

Comments

( 1 comment — Say Something )
jwendl
Nov. 21st, 2004 10:13 pm (UTC)
ifstream file("blah.txt");
int x;
int y;
while (file >> x >> y)
{
// do stuff here

if (x == -1)
break;

}


eh not the cleanest solution, but it works...
( 1 comment — Say Something )

Latest Month

February 2012
S M T W T F S
   1234
567891011
12131415161718
19202122232425
26272829   

Tags

Page Summary

Powered by LiveJournal.com