@# 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



Comments:

<0> wtf is kniht
<1> pfft kniht gone on strike
<2> dumb **** on boots and bans but better
<2> fine
<3> * _m_ does the vawjr dance <-- nice, hehe
<4> feeling ebil today? :D
<5> http://www.noidea128.org/sourcefiles/16150.html
<6> is there some reason you want to mess with char* insted of using std::string?
<5> maybe if I copy the data to a temporary string, and store the string?
<6> and why are you still ****ing with FILE* and fread and ****??
<5> that is how the original implemenation is, I don't want to midify it too much
<5> no fread, scanf
<5> thats the sample code I am using as a reference



<6> you're still thinking in C
<6> well the sample ****s
<5> if you propse an alternative, I wouldn't be using file*
<6> I did, yestereday, ifstream
<6> but you were too concerned about needing only the 1st 6 characters of the 7 that get read
<5> but that is NOT the issue now, reading is ok...
<6> and you're too damned lazy to go do research on std::string
<5> its the storing in the array where the problem arises
<6> LIKE **** IT IS OK
<6> you just have so many other problems you haven't gotten to the problem with your read loop
<5> you are saying there are no solution to my problem?
<6> no, I gave you a solution yesterday while (istream >> somestring >> somenumber){/*process the input here*/}
<6> but you didn't like it
<5> excellent, but how to copy this somestring to someArray?
<6> I thought you needed to keep the pairs the other is trivial:
<6> yourvector.push_back(somestring);
<5> exactly
<5> then, how come only the last read string is copied to the whole array?
<6> you didn't write what I did, you wrote some other crap
<5> it is working with numbers, but NOT with strings
<6> you're NOT PLAYING WITH STRINGS!!!!!!!!!
<6> you're ****ing with char*
<5> thats because I need an exact number of characters
<5> 6
<6> nobody ****ing cares
<6> except you
<5> thats why I wrote
<5> 7: for(int i = 0; i < 6; i++)
<5> 8: currentCourseName[i] = fgetc(fipCourses);
<5> 9: currentCourseName[6] = '\0';
<5> how do I do that in strings?
<6> yeah, ****ing stupid
<6> just read the damned string and if it's bigger than 6 chars get rid of the rest
<5> I would ask you to show me how, but..
<5> i already know the answer
<6> yeah, why are you trying to write this program with no books on the standard library?
<5> are you going to lecture me now?
<6> well you need it because it doesn't seem to be sinking in
<6> btw, what school are you going to, I wanna make sure my kids don't go there
<5> tell me this the day when you give me my salary
<6> you mean the day I give you a pink slip?
<7> lol
<7> I believe she missed the clue train completely.
<6> and tell you you really should have listened "waaaay back when"
<6> oh, she left??
<7> Yes.
<6> what a weird person
<7> Very.
<6> we went through this yesterday
<7> She was fighting with me over in #c too.
<7> Sad.
<7> Came full circle then, it seems.
<6> iirc as it turns out her file has 7 non-whitespace characters, some whitespace, a number on each line
<6> and she was freaking because the strings had 7 chars in them
<7> Ok. So what's the problem? lol
<7> Read in however many you want and throw the rest away.
<6> I say read them all in, since instream >> somestring
<6> does that for you
<6> you need to get rid of what follows anyway if you want to read the number
<6> and making sure you get at most 6 chars from a string when you "copy" it is, ummm, kinda trivial
<7> lol



<6> I mean, they put substr() into the standard for SOME reason
<7> Nah. It's completely useless.
<4> heh
<7> ;)
<4> i'm no less an ***hole than you all are, but even i'm feeling shy with questions now :D
<7> Questions are fine as long as you actually listen to the answer.
<4> yeah, now the problem with cpp questions seems to be putting the questions correctly, as in, you even have to think the questions up in an algoritm of sorts
<4> but i'll try, i've got an opengl example here and ofc it includes a whole bunch of stuff, now, i want to divide the main.cpp into several different .cpp files to make it easier on myself, basically dissect it, problem being the #include's seem to only be seen by the file they're written in, is there any way to #include something for all sources in a project or better yet, all specified sources?
<1> uh..he types nearby 10 line without a fullstop.
<1> you should be philosopher instead of a programmer probably :)
<4> uh, believe me if i knew how to write that question in a more optimized way, i would :D
<4> basically, i want to make some #includes either universal for the project, or accessable/seen by all specified source files, without actually going to each one and writing it in them
<8> hola
<9> is any1 here familiar with QT3?
<10> hello. i need to print a bitmap (apis only -- openprinter/startdocprinter/startpageprinter/...). does anyone have a sample or a link or something like that?
<11> I can't access www.wikipedia.org
<12> is there really a point to using -Wall in gcc?
<11> dextre1, why not ?
<13> dextre1: To enable all (well, almost all) warnings... which is always a good idea.
<12> ok
<14> dextre1: helps you write better code
<3> heya Bitrot_ long time no see
<12> gotcha
<13> dextre1: If your code can't get past the compiler warnings, the code's probably in trouble. That said, a clean compile does not ensure clean code. :)
<13> cn28h: Yeah, been a while. How's it hanging?
<3> busy as hell, waiting for the semester to end
<3> what about you?
<13> Getting back to sanity - had a *very* bad year. Right now, I'm doing the usual 80-hours-a-week thing, re-architecturing the network for a local ISP.
<3> ouch
<12> what's "-shared" mean in gcc?
<3> weren't you going to do a book with C_D awhile back?
<11> dextre1, to build shared libraries
<3> it means to link the shared versions of the libraries
<13> cn28h: =You have no idea. It's had 10 years of being run by a Windows twonk who hasn't got a clue about reliable network designs, and not much more about Windows. No redundant servers. Backups which are mostly broken. No fail-over anywhere. Most of the Windows-side, at least, built on PC-cl*** machines.
<3> wow
<3> small ISP?
<13> It is now. :) Used to be about 6,000 users, now it's about 3,000 - largely because they can't support the users. They just got bought, though, by someone who does have a clue, sort of. Enough to know they don't know jack abut networking, so they hired me - and are listening. :)
<3> hehe, well that's a good step then
<12> thanks guys. u rock
<13> Yup. Got our first four new servers coming in next week, and a mess of other new hardware to boot.
<3> going to switch to something other than windows?
<13> Well, most of it's Linux-based. Problem is, as I said, the head netmonkey was a Windows twonk, so he diud a very good job of sabotaging the Linux deployment. So now I have to rebuild that side, then go in and rebuild the Windows side, which he managed to pooch entirely despite his apparent love affair with high-cost commercial tools.
<3> hehehe ah
<13> Get this: we have two machines which do *nothing* but backups to tape. Despite that, fully half our machines aren't getting backed up.
<3> :S
<13> Needless to say, they need help. Which is what I'm doing.
<13> brb
<15> hey
<15> I need help implementing a 2-4 tree :) any takers?
<13> re
<15> Bitrot_, is that a yes/.
<12> what's "-lm" in gcc?
<3> it links the math library
<13> No, it's a re.
<13> If you can do a basic binary treee, changing it to a 2-3-4 tree should be relatively trivial. If you can't do a basic binary tree... well, there's boatloads of references out there on how to do it, and even loads of code.
<12> cn28h: the math library is codenamed "m" ?
<12> libm.a ?
<3> or libm.so
<13> /usr/lib/libm.a here.
<3> but yes
<13> /usr/lib/libm.so - or that, if you prefer that version.
<3> the linux default is usually to use shared afaik
<13> Generally.
<12> i see!!!
<12> thanks
<16> I have .avi files that i want to protect from cd copying. Any method?
<16> any shareware?
<3> you again?
<13> From "cd copying"? As opposed to, say, transferring the file to a friend via, oh, ftp?
<3> you can't really stop from ripping the CD image
<16> im in bolivia
<16> here no crackers yet
<12> when using the static library version of GSL instead of recompiling the GSL, is there a point to enable the switch "-DHAVE_INLINE" ?
<16> just tell me any method


Name:

Comments:

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






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

What nationality was Aladdin ?
dalnet dwdpbyrg
#linux
#chatzone
#MissKitten
kubuntu pantalla negra
trovianni
oldstam
#AllNiteCafe
Wesqq



Home  |  disclaimer  |  contact  |  submit quotes