@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18



Comments:

<0> i reminded him that kelly clarkson is illegal in korea
<0> and he will be reported
<1> anyways...........
<1> :D
<1> here's my code... does this look okay? .. http://www.deadquasar.com/peekEx.txt
<1> ifstream.puback() can only put one character back on the in stream (fstream)? :/
<2> yup
<1> crap :/ .. this complicates things =D
<1> (thx, btw)
<1> this looked good for a time :D ... http://www.deadquasar.com/peekEx.txt
<2> ?
<2> what are you trying to do?
<1> i'm trying to look arbitrarily far ahead in a stream w/o moving the pointer
<1> would i have to make a copy of the stream or something?
<2> ugh, why?
<1> well.. i'm suppose to be parsing for a word in a file... but not allowed to use strings :/



<2> this is a cl*** ***ignment?
<1> or any helpful functions :(
<2> what do you mean by parsing?
<1> unfortunately :/
<3> enzov: just read the data, but record before that the point where you were in the file... then seek back
<1> there's a seek() ?
<1> my book blows >:(
<2> seekg?
<2> I forget
<3> something like that
<2> there's seekg and seeksomethingelse
<3> c-bot seekg
<4> Tamama, you tell me!
<2> seekp?
<1> what library is it apart of?
<2> no, that doesn't look right.
<2> seek something
<3> enzov: ifstream
<2> hmmmm
<3> heh
<2> what's the seek for ofstream?
<2> you know off hand?
<1> nice... i'll chk it out... :)
<3> http://www.cplusplus.com/ref/iostream/ifstream/
<1> thx for the help everyone!!!!!!!!!!! i /really/ appreciate it :)
<2> it IS seekp
<2> that just doesn't look right to me.
<2> oh well.
<2> I guess seekq was the only other option
<2> and that really looks wrong
<2> any idea what the g and p stand for?
<3> get / put
<3> ?
<2> makes sense
<2> sure, why not.
<5> anyone know a fast way to make a file with 100,000 lines of sentences that are 256 chars or less?
<2> what?
<2> well
<5> random words is okay
<2> you could write a c++ program to spit out such a file
<2> it would run in under 1 second
<2> random words?
<2> or random strings of letters?
<5> ya i just need 100,000 sentenes
<3> copy part of an online dictionary
<3> -.-
<6> how do you write a program that prints out its source code?
<2> you don't commodore
<5> words would be better because the program searches for real words ppl type in
<2> not in c/c++
<6> impossibl0re?
<2> anyway
<2> you CAN
<2> but it's kind of complicated
<2> and is really just a stupid hack
<2> and wouldn't work so well with multiple file programs
<5> Tamama: i was just going to copy books from project gutenburg
<3> or any type of complex program
<6> what, it tries to fread the source.c ?
<2> well
<2> as long as it's all in 1 source file it can be done Tamama.



<2> but
<2> C++ isn't a LISP language
<2> where it's easy to do.
<2> hell
<2> c++ isn't even a scripting language where it'd be easy to do.
<2> why do you ask anyway commodore?
<6> I just wondered
<2> well, hold on.
<7> hm there's a contest for that kind of stuff
<6> I know there is a contest for obscure code
<7> I used to know a guy that won it a few years back the code was horrid :D
<6> :)
<2> ok
<2> well, this is old
<2> and it doesn't compile
<2> but I remember it worked at one point in my life.
<2> http://www.noidea128.org/sourcefiles/15984~
<2> have fun
<2> at one point in time that did what you're asking about
<2> I have NO idea how it ever compile quite honestly.
<2> oh, wait, I see how it was supposed to work
<2> but it doesn't now
<2> so, maybe I was counting on an oddity of vc++ 6
<2> who knows.
<6> this looks interesting thanks
<2> this is what happens when you spend too much time in front of a computer
<6> lol yeah
<2> why is it everytime I say something I find funny
<2> I get knocked off line
<2> before I can see the responses.
<2> damn it.
<6> lol
<1> seekg() is messin' w/ me :( ... does this look ok? http://www.deadquasar.com/peekEx2.txt
<5> i'm having issues with getline
<5> it just stalls after reading 2-3 times
<1> did you check .eof() ?
<5> yes, its not the end of file yet
<5> while ( !tokenFile.eof()) {
<5>
<5> tokenFile.getline(line, 256, '\n');
<5>
<5> if (strlen(line) == 0 || strcmp(line, "\n") == 0)
<5> continue;
<5> .
<5> more code ...
<1> (probably shouldn't pase code in the chan, my man)
<1> *paste
<5> even if its so little?
<1> i would prolly say yeah :/
<5> okay, sorry
<1> np, just offering advise... usually you'll get kicked fer that... i could try to help you if you paste your code as a private message to me
<1> (i'm pretty new to c++ myself)
<5> okay
<8> enzov, you should get him to paste to the address in the topic :)
<8> then we can all see it
<1> ah.. didn't see that one :D
<5> threat: okay pasting for you
<8> yaya
<8> nush, paste here --> www.noidea128.org
<8> nush, then paste the URL here :)
<5> http://cpp.sourceforge.net/?show=13170
<5> i used cpp.sf.net threat. Is that okay with you?
<8> thats fine with me
<8> what is a hashmap? :P
<5> oh its stl hash_map
<5> but this part of the code has nothing to do with that
<5> i mean one text file i can read fine
<5> but then the constitution of america i can't
<5> i can read fine a 3.5MB cia world fact book from the gutenburg project without getline stalling
<5> do you think the files encoding can mess me up?
<5> utf8? what not?
<1> ideas? http://cpp.sourceforge.net/?show=13171 .. :(
<1> wait.. would it matter if i compile w/ g++ ?
<5> probably


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #c++
or
Go to some related logs:

selfpic jailbait
#linuxhelp
slackware tpconfig
#chatzone
swt in wmaker
#linux
#gentoo
#chatzone
reykyavick
#chatzone



Home  |  disclaimer  |  contact  |  submit quotes