| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Comments:
<0> so you typed like <0> mybinary.exe > foo.txt ? <1> i will try again <1> cn28h its nowhere to be seen, maybe im not closing the file, i close the console window to stop the program <1> im using the run dialog box from start button in windows to invoke that command line redirection thing <1> my project also happens to be a debug version <0> try killing the program using ctrl+c <1> ok <0> that's one thing that pisses me off, you can't make the windows shell run things in the background <0> I had to open up like 6 or 7 consoles the other day :| <2> *cough* linux *cough* ;) <2> probably not the most useful for MFC though <0> I use Linux (or other *nix) for most things <0> but I was testing something on windows <0> (this is why it pissed me off so bad, because it was easy in *nix haha) <1> well, no luck ......i guess its redirection i should use as a search word to search for an answer on the net
<3> cluelessi: try > <3> C:\>dir > hej.txt <3> C:\>type hej.txt <3> works wonders, although _from_ a cmd window <3> you probably cant do it from the run button.. <3> since you dont have the interpreter there.. <4> how do i create a list? <4> im tryint to figure it out but, do i need to have a bunch of container() functions above the code? <3> methody: have you checked your book? <4> anonimasu it's confusing... :S <4> anyway it doesn't say in the book i have <4> i joined #list by mistake and asked my question there <4> wow.. <5> a list of what? <4> just a standard list that i can use the list commands on.. <5> commands? <5> Are you talking about the std::list container? <4> yeah clsk, pleeeease tell me how to get that up and running.. <4> what do i need for a list..? <5> A modern book on c++. <5> and a modern c++ compiler. <5> that are standard compliant <1> thats the good thing about standards...there are so many of them <0> not for C++ <0> if there even are any others, the only one anyone cares about is the one from ANSI/ISO <1> yeah, but i thought the stl was once considered a bolt on xtra <1> anonimasu <1> are u about <0> perhaps in the olden days of the 20th centurey ;) <4> okay after about two hours and no help from here i finally found the example i need to create a list <2> ffs <0> methody, welcome to google :) <2> one google would throw a list at you <6> throw new std::list; <2> amazing. I google for "c++ stl list example" and the first page has a list example. Fancy that ; ) <4> is there any handy function to search a list? <1> u want to ***ign it dynamically or to a variable? <6> easier to search a map <2> stl::find <2> wait actually <2> thats in algorithm isnt it <2> but yea, with a map you can just reference the one you want straight off <1> cn28h...did u follow that what ano typed? <1> i did nt <2> methody, get a decent c++ book <0> cluelessi, about the I/O redirection? <0> it was pretty much the same thing I said except a little more explicit <0> you *are* running said program from the windows shell, correct? <1> i have a vs 2003 win32console with mfc support debug proj and lots of couts. without messing around with all theses couts, how can i send the screen dump to a file. <0> cluelessi, I'm going to ask you to do something bold and daring :) <1> cn28h ok, for the dumb arse i am, say my program is path.filename.exe where and what do i type <0> minimize VS <0> open a command prompt <1> ok <0> cd to the proper directory <0> (you are familiar with how to operate the windows console, right?) <1> no <1> its ok i will come back another day <1> bye <7> for what is usefull the "try" instruction? <7> hi first of all
<7> :D <8> erm.. it delimits a section of code from which exceptions can be caught <8> i.e., check the spec <7> what kind of exceptions jottinger? <9> the exceptional kind <7> gee.. 10x... :D <9> ask a stupid question... <10> what do you mean - what kind ? <9> by definition exceptions are exceptional <10> there are exceptions to this rule, though <7> well.. what is an exception.. as an error or something like that? <9> sigh...read a book <10> irinuca^ : a situation that is not a part of the expected program flow. Get a book, though <7> sory bealtine if i'm too dumb for you <2> i.e division by zero or something similar would throw an exception <7> 10x exception <7> 10x nnp also <7> :D <9> new failing is an exception <11> int main() try { int x = 123 / 0; } catch (...) { std::cerr << "You <11> Crap <11> int main() try { int x = 123 / 0; } catch (...) { std::cerr << "You'll end up here."; } <7> now I see.. I thought they were program errors or something like that <10> Solamente : is it a new function-wide try block syntax, or just a missing { ? <7> :D <7> 10x <10> irinuca^ : it's a way to separate error treatment from the normal flow of the code <11> exception: Nothing new about that. <9> i bet that sounds like chinese to him <7> bealtine sorry to tell you, but I'm a her <9> do i look like i care? <0> yeah, you think bealtine is interested in women? :) <9> not on irc <11> Only if her name is "Guinness" <9> heh <9> and I can touch it <10> Solamente : I know that syntax exists, but few compilers supported it till recently <11> Because few compilers didn't **** until recently <9> anyway I'm laying bets on irinicua being from .ro <9> its IQ is prolly less than your shoe size <0> Meyrin, sorry I disappeared on you last night dude <12> hi! i want to p*** an array of fixed length to a function by reference. do i have to do this with a pointer or can i use a "real" reference? <0> shoudl be able to use a reference <6> ehm <6> just p*** it as is <6> void function(char array[700]) { } <0> true, there's not really a reason to use a reference <0> though the 700 there has no real meaning, correct? <12> is it always a reference? or how are arrays handled? <6> arrays are handled by a p***ing a pointer to the first element (or if you will, a reference to the array) <11> If you're going to p*** a pointer to the start of an array, ALWAYS provide anothe parameter that tells the function how many elements are in the array. <11> You're better off, though, just using a std::vector <12> ok, what i really want to do is a cl*** for filtering positions of 3, 4, or 5 components. i thought it should be easy to use a template <int DIMENSION> cl*** Filter {...} for that, but i'm running into problems i didn't know yet. <11> That's fine, as long as you know the number at compile time. <13> hey <9> use a vector it does 99% of all the housekeeping for you <9> instead of nikkid arrays <13> if anyone has MS SDK installed could you send me a few very small files please ? <11> No. Go install the SDK yourself. <12> yes, i know it. my problem is that for the function declarations i'm trying to use syntaxes that my compiler doesn't like. <9> small files are generally useless w/o the libs <12> i started out trying to make template function to get the hang of it before starting to write the cl***. <13> i need some samples only <11> So go download it. <13> i cant, without getting the whole 1gb of the SDK <12> template <int DIM> void test(float[DIM] p) { <12> for (int i = 0; i < DIM; i++) <12> p[i] += 1; <12> } <12> e.g. the above one. but the compiler says it can't find the function when i want to use it: <11> Besides a really big *eww*, it's probably because you have to specify the template parameter, since the compiler can't deduce it. <6> float p[DIM] <11> And that, too <12> test.cpp:33: error: no matching function for call to `test(float[5])'
Return to
#c++ or Go to some related
logs:
Unrecognized Windows Sockets error + jvm_bind CAPCAPLI drivers for nv-fx5200 WHO IS THE BUXOM BOSOM BUDDY OF CAPTAIN KREMMEN ?
WHAT IS THE FAMILY NAME IN THE H E BATES STORY A LITTLE OF WHAT YOU FANCY #MissKitten kendle of kittens #java #linuxhelp java vertical menu
|
|