| |
| |
| |
|
Page: 1 2 3 4 5
Comments:
<0> there's no standard c++ way of doing it <1> ic, is that a cl*** that i can add to my code? <2> www.boost.org <0> you'd have to download boost, and probably build it too.. but it's a useful library that every c++ programmer should have available <0> every serious c++ programmer that is <3> so is my idea of creating an object with the data I parse and then adding the object to the list completely wrong? The reason I thought of doing it that way is because the list is a template and I create one w/ the dna datatype, and one with the genedatatype <0> that's fine mabaa <3> so what is the proper way to do that? Redeclare the variable each time through the loop? <2> I don't know what you're doing exactly... <2> But it sounds like the proper way is the way that gets you a 100 grade <0> DNA dna; while (file >> dna) mylist.push_back(dna); <2> Plus all lame bonus points <3> heh yy <3> YU would that be if i defined file to parse each line? <2> Also, in theory, it should waste as little of your time as possible <3> haha yes
<0> file is an ifstream <0> and you would define istream& operator>>(istream&, DNA&) <0> that would do the actual parsing of one line of the file <3> that makes sense <0> ...sleep time... <3> the code she gave had the ifstream doing the parsing, take the id# put it in an int, take the sequence put it in the string <3> yeh im getting tired too <3> ill finish it in the morning I think <0> good luck.. <3> i dont have the energy to overload an operator right now , heh <3> thanks for your help <0> np <4> anyone know of the top of their heads where visual studio keeps its include files? <5> guys, I have a design question: <5> I need to design a countdown timer <5> not too difficult, except the timer needs to maintain a count even while another function is called <5> that is, from the main() function, we call the timer() function, set a time to countdown from, and maybe display the timer for a little while <5> then we decide to display something else, but we may switch back to the timer <5> so an accurate time must be maintained even when we switch to another data item to display <5> ideas? <6> thread it.. <5> the thought had occured to me, but I've never used threads before <5> how difficult are they to code and manage? <5> basically, could I teach my self in a day or two? <7> kind quiet this morning <8> yeah <9> C++ ****s, Java rules <9> discuss <9> okay, that was just wrong :) <10> Off to office <11> anyone use borland builder ? <11> i downloaded the trial for builder 6 and it does not come with make.exe <11> any suggestions? <12> Yeah, don't use borland. <13> :O <14> Don't use Borland seems like wise advice. <14> Get VS 2005 Express. <11> unfortunately, our data acquistion card only supports borland <8> data acquistion card ? <15> send the card back and get a real one <11> yes, innovative integretion's chicoplus <13> csboy, get the complete software, trials don't work! <11> hmm, not many available daq cards on the market <15> 100s of cards available <11> not daq cards <15> and any card that only supports borland obviosuly ****s <15> what do *you* mean by daq? <13> may be the component was made with C++ Builder... <11> we have a card that reads raw data from acoustic sensors <11> you guys are a waste of time <11> **** off <8> ...heh <15> oh dear <12> You're welcome, as ashe would say =) <15> nothing about wasting time with bcb <13> wow... borland guy! <16> @find como programar en c++ <17> english <8> this isn't a books channel, JhonEx <16> @find how to program c++
<8> JhonEx THIS IS NOT A WAREZ CHANNEL <18> i have a simple and probably extreamly dumb question...here it goes.. i just started to learn C++(not c) <18> in visual studio i included <string> <18> i have a object string s; <18> what is the function to determine the size of s? <8> the length of the string? s.size() <9> it's a method of s <18> thanks:) <8> hopefully that's a std::string <18> and for comparing 2 strings? <18> strcom doesn't work and i searched for the library on google <18> i found only string.h <14> TherE's the string::compare method. <18> witch has strcmp in it <18> i see... thank you :) <17> or < <= == != >= > <17> __BUFU__ you need some books...trying to learn online of folly <18> i have bruce eckel's book <17> I recommend the books at http://rudbek.com/books.html <18> thanks <18> i'll look into it <17> notice bruce's book ain't on that list <9> heh <9> I have to post a review of eckel soon <9> Anything you'd like to have ol' Bruce asked? <17> no <9> anyone else? :) <14> If it was Bruce Campbell, I'd have tons of question. But Bruce Eckell isn't nearly as cool. <9> "What's it like having a chainsaw for a hand?" <17> __BUFU__ and if bruce didn't tell you about the comparison operators or .size() (or .length() ) it's unlikely my opinion or hiw book will improve <9> vawjrwrk: it probably did <18> well i tried != but i did not work...my case is the next one i want to see if s[i] = " ", where s is a string obj <8> s[i] would not compare with " " <8> you need to read a book <18> well how do i check then to see how many spaces are in a string? <8> std::count <19> hey <19> gotta quick question, is there an operator to do a boolean not in c++? <8> bitwise? ~ <20> A boole... um... <8> logical, ! <19> bitwise. <19> yeah <19> cool. <8> ~ <19> i think this arch is 2's comp too so i will have to add 1 to that. <8> or you could just use a signed type <8> what are you doing? <9> Solamente: any chance you could, um, look at a single url for me? <19> writing a dis***embler for the mips processor <8> ah <19> or well for mips. <19> just use signed then? <8> probably best to be portable <8> hmm <19> you sure that will work? <19> ints are 32 bit. <8> sometimes <19> i think they are on this guy. <8> IDA is a nice dis***embler <17> superRoot so what are you really trying to do? <8> and is pretty mature <19> okay <8> so my first suggestion would be to not write a dis***embler <19> mips instructions are 32 bits long. <19> rdragon im a cpe i have to do this for shcool <19> anyways <20> Well, I got another contract within 36 hours of losing my last one. At... get ready... NCR. <20> Working on their self-checkout systems. <20> (gag) <19> for this instruction, bits 31-26 are the opcode, 25-21 is rs, 20-16 is rt, and the part i am working with now is bits 0 - 15 <8> hehe <17> well, you could hardly make them worse <19> thats called an immediate.
Return to
#c++ or Go to some related
logs:
#AllNiteCafe alloplants
mosix for fc4 string::iterator + c++ #squid #AllNiteCafe Unknown device 1904:8139 +debian ip_tables.ko: -1 Unknown symbol in module c++ ienumerator -.net -msdn -c# -visual #php
|
|