| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12
Comments:
<0> look at that image, it's a good way to choose a container <1> :O there is no end to that flowcchart! <0> sure there is <2> CrazyBandit Crew ownez me ? LOL <2> the chimp's on acid me says. <3> tis a trojan... <2> yeap <1> I see no (END) <3> thus, I doubt acid is involved. <3> threat, ITS OVER WHEN YOU ARRIVE AT A CONTAINER... <3> oops <4> Isn't there a brand of condom named Trojan? <3> caps lock is evil. <2> DrkMatter LOL <1> Twister2, so why dont the containers link to an (end)!!!! for completeness :) <4> Well, I think there is. And it seems like one of the worst possible name for that particular kind of product
<5> anyone alive? <4> No. <3> threat, because its already complicated enough... so why add stupid redundancy <4> We're a bunch of zombies. <4> Dead processes that haven't yet been reaped. <6> Twister2: so if I do "inFile >> std::vector<string>" how would i call them later <3> no no no <5> how do i draw text with bg bcolor differentb than the normal bg color? <3> inFile >> tempstring; yourvector.push(tempstring); <3> err push_back <6> yourvector.push_back(tempstring);? <4> tehkevn: Incomplete question. What are you using to draw text? <3> yes <3> std::vector<std::string> yourvector; // outside of the loop <1> Twister2, COMPLETENESSS!!!!! <3> threat, you enjoy aded 'fluff' in your life apparently. <3> many people go with the keep it simple attitude. <3> TCO? <3> propaganda too <1> Total cost of ownership <1> ignore me, <3> well your flowchart ideas increase TCO. :) <6> Twister2: i get --> "vector is not a member of std" <3> help if you include <vector> <6> Twister2: i added "std::string tempstring; inFile >> tempstring; vec.push_back(tempstring); <3> you already had all that... <3> all you needed was 2 more lines <6> and then i wrote "std::vector<std::string> vec;" i included <vector> and i still get errors <3> paste site... <1> hehe <3> bbiab <1> yes, including <vector> always helps when you want to use a vector <1> Twister2, ok <6> http://pastebin.com/534909 i know im not understanding <3> way off <3> the declaration goes above the loop, the push_back goes in the loop using the 'value' var <5> Hello Wordl <1> wtf <1> your defining vec after you refer to it? <1> the compiling reads the source from the top to the bottom of the page <6> how do i declare vec <1> std::vector<std::string> vec; <1> but put it above whree you use it <1> you define it in line 47, but you use it in line 45, so put that line before 45 somewhere <6> http://pastebin.com/534913 <1> its always a good practice to define variables right at the top of the function <1> or in your case perhaps after the argc checking <3> do you even listen?! <3> I said BEFORE THE LOOP three times now <6> sorry i pasted that before i read <3> everything happens in the loop, or before it <1> lol <1> CptPotato, put line 41 below line 33 <1> CptPotato, and also you need to .close() the file streams when you have finished with them <6> done and done. so now how would i call a string in the vector to use further in the file <1> on in the case of an error in outFile, you need to close inFile <1> on = or <1> well you dont really have to, but its good practice <6> alright, im looking into that. how would i, for example use the vector i created display the third string in it
<1> CptPotato, hmmm <1> CptPotato, you *could* iterate through the vector or use [2] <6> i dont have to use vecrors. im reading from a file and want to separate the individual strings to examine <1> however there is no range checking when using [] so that could be dicey if there is nothing in the vector <6> its an ***ignment for cl***. i could send u the ***ignment, but im trying to figure it out on my own <1> CptPotato, you want to seperate per word (space delimtered) or per line? (\n delemitered) <1> CptPotato, sending me the ***ignment wont help you understand the subject any clearer <6> each file only has two strings, a random-char string, and a number <1> however it will give me something to do :) <6> ok i'll put it on my server.. the thing is.. i cheated my way through comp sci I, and now im in comp sci II and i really wanna learn this <1> CptPotato, hmmm inFile >> str; inFile >> number; inFile.ignore(): <3> oh geez.. if its filtered output, you went a step toooo far <3> don't need to do the ignore, and you would need a conditional threat <1> or getline(inFile, str, ' '); getline(inFile, number, '\n'); <1> Twister2, you would to get the '\n' <3> you don't want hte \n... <1> which is why it is ignore()'d <3> ignore is only used when switching from >> to getline <1> incase he wants to get another line <3> fhhand >> stringvar; // Ignores whitespace entirely <3> and you need it in a conditional <3> either a while, or an if <3> s/a/the <6> this is my ***ignment: http://cptpotato.dnsalias.org/hw.pdf <3> well, have fun... I am off to sleep. <1> night dood <6> night, thanks for the suggestions <6> threat: did the link work <1> it worked <1> I am reading it now <1> but I refuse to do your homework for you :P <6> some pointers would be good. i have an exam in this on tuesday, i kinda need to learn it <1> CptPotato, hmmm you may want to test whether the int that is entered is > 0 <1> I mean >= 0 even <1> also you should test whether the entered string is of square, right_triangle and isosceles_triangle <6> the non-negative integer in the input file? <1> yes <6> ya i know, im gonna write those later, what im trying to do now is this: pick out the first string and and set it to a variable and the second one to count the heigh of the shape <1> Implement very simple error checking to ensure that 3 arguments are provided and that the input and <1> output file streams are successfully op ened. Your program should exit gracefully with a useful error message <1> sent to std::err if there is a problem with the arguments <1> CptPotato, you should do the simple stuff first :) <1> CptPotato, that way even if you want do the whole thing, you will get at least some marks out of it <1> want = cant <1> stupid typo <1> s <6> ahh ive been working on this since 4.. <1> whats the time now ? <1> (its 16:08 here :)) <6> i cant write those other functions without determing the first string and the size of the shape. its 12 now :-/ <1> so you have been working on it for 8 minutes? :P <1> oh, gay <6> 4=1600, and 12=000 (mil time) <7> how do I get a pointer to the cl*** I'm using from the Frame Cl*** ("MainFrm.cpp")? this MFC <7> it is a view pointer I'm trying to get <7> anyone know MFC? <6> threat: the thing is, we havent learned about vectors yet, so i don't think thats the method im supposed to use <6> threat: char*?? im not really sure what that means.. but the prof used examples with it <1> ? <1> you dont know what char* is? <6> i have a vague idea. would that help in this ***ignment <1> char* is basically the same as char[] <1> no, dont use c-strings, use std::string <6> do u know how to write this pr0g? <1> I should beable to do it <1> but like I said before, I am not going to do your homework for you :) <6> well u can help! i mean, i gave u some entertainment :) <1> CptPotato, indeed you did :) <1> CptPotato, hmm so the file can contain more then one string int pair? <6> correct, the one there is just an example <7> anyone know about CSplitterWnd??? <7> this is MFC <0> look in #winprog or #win32
Return to
#c++ or Go to some related
logs:
#AllNiteCafe #london #java ASOT @ IRCNET #AllNiteCafe idiot blacklist #php #AllNiteCafe #php #c++
|
|