| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Comments:
<0> if I have a pointer to vector variable that is created using new, can I do stuff like if (pV==NULL) delete pV; <1> http://www.noidea128.org/sourcefiles/15983.html <1> er... there's a while (in) { } that just literally reads in floats and dumps them out <1> that seems to work <1> but my next block of code should be doing the same thing <1> so if you comment out the first while loop <1> mm, think I got it <1> thanks rdragon <1> the problem was my second if statement in the loop <1> needed to be else if <1> the idea is that it reads in two sets of numbers <1> first set is floats <2> vawjr: you there? <1> second is integers. it would read in a float, then read in an integer, then read a ., then an integer, then a ., etc <3> Hey,what would cause an unresolved symbol -- referenced in error in an obj file, even 10 of them ? heh <3> is vs05
<4> there's many ways to cause an unresolved symbol, but the ultimate reason is that the linker can't find the definition of something, such as a function or static data member <3> ok that helps, thanks <3> basically my iterator cl*** ****s <5> most do, why do you feel compelled to write one? <3> i dont know, to access a linked list cl*** i wrote <5> one trusts this is for school <3> ya <3> why would I waste my time otherwise <3> why i switched my major to math <3> from CS <5> it seems to me that writing an iterator for a linked list would be fairly simple <3> yeh <3> if it cant find the definition i must have done something wrong syntatically <3> maybe <5> like not defined some method <3> I have a warning "same type qualifier used more than once" could that be part of the problem? Otherwise my functions appear to be defined and matched up in the header and cpp file <3> nm that was unrelated <5> are they template methods? <3> yeh <5> then get rid of the cpp file and put everything in the header <3> Am I doing something wrong w/ templating? <3> all inline definitions? <5> I didn't say that <5> I said put them in the header <3> within the cl*** or at the end of the file? <5> that's up to you, if they're currently in another file, at the end would just entail a copy/paste <3> oh ok, I didn't know if it would make any sort of difference <3> does that prevent linking errors with templated cl***es? My linked list cl*** is templated as well and is in two seperate files...works fine <3> it worked, but im curious why, heh <5> if the compiler cannot "see" the templated function when you "call" it, it cannot ensure it exists <3> Im just wondering why it works for my other cl*** <3> and my program no longer crashes...weee <5> mabaa without seeing it I can't say <3> understood, I'll look it over and see what is different later <5> maybe none of the stuff you put in the cpp file actually depends on the template arg <6> i hate char * strings <5> that's why C++ has std::string <6> is there a way to make dynamic char *? <6> like if <6> char * word; <6> word = new char * something... <7> std::string <6> well some functions i'm using require char *s <5> such as <6> :/ :/ :/ <6> you are telling me to convert everything to std string? <5> I asked what functions REQUIRE char* <6> the functions I already made <6> so just tell me if i can do word = new char * strcpy(etc...)? <3> program doesnt crash now but it looks like the data is loading all wrong, the process seems simple though so i dont know what i could have screwed up <7> nush_ : http://www.rudbek.com/books.html <7> really need a C++ book <5> **** all those strxxx things you learned with C <6> I actually learned C++ first <6> :P <6> but it was a while ago, 3 years ago <7> no, you didn't <6> but use char * with cpp <7> then you didn't really learn c++ <5> silly person <6> aww :P
<6> :/ <3> what doesnt make sense is the data looks all screwed up in the locals window in the debugger...but my test prints show that its fine <5> what debugger? <4> debug or release mode? <3> debug mode <3> vs05 <7> maybe you're looking at it wrong <3> what do you mean? <7> i don't know... what is this 'data' ? <5> I've not had the debugger screw up displaying data except occasionally in some very weired bultiple containers in containers /w iterators tossed in <3> im trying to look at the contents of various linked lists <3> vawjr, maybe i shouldnt trust it then <5> well, I dn't know what yu're looking at <5> nor how <6> tempWord = strtok(line, " "); <6> word = new char[strlen(tempWord)]; <6> strcpy(word, tempWord); <6> HAH! <7> sigh <6> :) <5> geezus <5> what a mess <8> hello <7> hello <6> unless you can show me how to use that crapy *** Hash_map from SGI in the gcc_extended with c++ strings <5> howdies <8> hey do u know anything bout OCing CPUs? <7> MrBoard this is a C++ programming channel <8> yea i know <8> but noone is in #hardware... <5> I'm still wondering why you think a hash-map is what you "need" <5> for someone that's "just coding for practice" that seems a tad ambitious <8> i figured if u know c++ u might know sumthing bout OCing <8> i was just wondering if anyone knew how i could find out wut the highest stable temps for my CPU are <7> google <7> *shrug* <8> ive been looking for like an hour and half and i cant find anything <8> just ppl saying that they have theirs at certain temps... but ionno if i could go higher and how stable their system is <8> so far ive only clocked mine 0.21GHZ up... but i have a PD presler 930 3.0 dual core... i know i could go higher <9> khan <9> http://www.bitboost.com/pawsense/ <7> ... <9> ... <7> $23 bucks for that! <9> ! <7> "PawSense detects the paws of even deaf cats." <5> cool, JBlitzen ... I'm glad I've already trained our cat to stay off the keyboards <3> yeh, it was just displaying data funny <3> but that makes it hard to debug because somethign else still isnt working right but the linkedlist itself is fine <5> what kind of data was it displaying "funny" ? <9> http://www.theonion.com/content/node/45792 <5> lol, and with that, I think I'll go cower under the covers to hide from the "darkness" <6> Just to let you know, I'm moving to strings <10> hurrah <3> vawjr, it was a linked list <3> of a datatype i wrote <11> is there a way to instream.peek() ahead farther than 1 character? <11> (w/o advancing the pointer) <11> and w/o string functions =( <6> do I have to create a destructor for strings I create with the new operator? <6> if i make new strings and push them into a vector? <11> if I send a stream to a function (not vai reference) .. how do i destroy the copy? <11> or is it automatticaly done upon function completion? <2> nush_: no, you call operator delete on them <2> nush_: er, if I understand you correctly <2> nush_: otherwise, no, std::vector will destruct them <6> okay, that is what i though. Vector will destroy them when it destroys itself <6> thx <11> oop... stupid question :D .. sorry all <12> i just told ober what a fruit he is for having "now listening - since you've been gone - kelly clarkson" on his MSN messenger account and now he shows "peter loves kelly clarkson" <12> that bastard <7> lol <7> payback's a bitch ;) <12> i reminded him that kelly clarkson is illegal in korea
Return to
#c++ or Go to some related
logs:
#skype Undernet Kilroy #linux chanset flood wanted txtmate #MissKitten #linux windows carrier return unix #java #AllNiteCafe
|
|