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



Comments:

<0> -lconio maybe, who knows :p
<1> what?
<1> what needs to be linked?
<1> i'm a biginner in c++ :(
<1> under linux
<2> eh?
<2> there's no conio.h under Linux.
<1> yes it is
<1> /usr/lib/bcc/include/conio.h
<3> what's conio.h for?
<1> defines 14 functions
<2> bcc? WTF?
<2> Who would use bcc on Linux?
<2> javaq_: it's some borland specific non-standard console i/o stuff.
<1> ok ... how do i read the first caracter from the output?
<1> like getche



<3> bloody borland. borland the ripper
<3> i would be very happy if borland give their compiler for free,
<2> "read" and "from the output" don't fit well.
<2> People usually read input.
<2> man fgetc
<1> i need to read the carachters typed on the output
<1> in windows, i have 2 functions for that: getch and getche .... the second function read with echo
<0> It's not part of windows either, it's part of VC++, anyway
<4> :)
<4> greetings
<0> 'lo
<5> I got to shave
<3> are both code correct?
<3> Tank tank1 = new Tank();
<3> Tank* tank1 = new Tank();
<3> tank2*
<6> no
<6> and before you ask...get a book
<7> mooh
<3> so the 2nd 1 is correct
<3> ok thanks
<3> hi Ashe`
<3> rdragon, hi
<3> vawjr: c++ stl book, i'm expecting it tomorrow
<6> hardly the correct book for you
<3> bealtine: my question is simple
<6> the answer is simple too...get a more appropriate book
<3> i do have AC++
<6> read it
<3> The C++ Programming Lang 3rd Ed
<6> read that one too
<3> just a quick question
<3> come on bealtine
<6> if you had you would have known the answer to your last stupid question
<3> Tank tank1 = new Tank() in Java would work well
<6> so?
<6> if you want to write java then use java
<3> don't be rude bealtine
<6> ummm
<6> your definition of rude is obviously flawed
<8> javaq, your question indicates a fundamental failure to understand exactly what new does or what * means
<8> Don't underestimate the significance of the problems in the question.
<6> or what the question tells us
<6> the mere fact of asking it
<3> * is a pointer, dereference operator
<3> new creates new object
<8> Those are vague summaries of 1/3 of each's behavior
<8> Half a cliffs notes chapter on a three chapter subject
<3> c++ is more complicated than Java
<6> that is why reading your books is important...there is a fundamental misunderstanding of what new does here
<3> ok
<8> Heay beal
<8> http://www.amazon.com/gp/music/clipserve/B000BI0WOA001021/0/ref=mu_sam_wma_001_021/104-6245792-4662368
<8> -a
<8> C++ is actually not much more complicated than Java is, but Java hides its complexity.
<8> Which is why fred a = new fred() works in java.
<6> umm i must have wmp blocked :-) haha
<8> You bitch!
<8> http://www.amazon.com/gp/music/clipserve/B000BI0WOA001021/1/ref=mu_sam_ra001_021/104-6245792-4662368
<8> Try the realplayer one
<8> Failing that, try the first Listen link for song 21



<8> http://www.amazon.com/gp/product/samples/B000BI0WOA/ref=dp_tracks_all_1/104-6245792-4662368?%5Fencoding=UTF8#disc_1
<6> d/ls "hurt.exe"
<6> i only open http and ftp and the vpn stuff...
<3> so c++ always use *
<3> thanks guys
<3> i think struct is a lot more easier than cl***
<0> Too bad it's the same
<8> Heh
<6> very little difference between the 2
<3> it doesn't use *
<3> so much more easy
<6> yes it does
<8> struct node { node *left; node *right; int data; };
<6> umm fundamental misunderstanding alert
<8> Heh
<8> Just isn't your night, javaq
<8> You've got to get past the speed bump that since you understand java you understand C++
<6> press F1 to restart brain
<8> Haha
<8> javaq, tip #2 is, don't try to fit the language to your mental comfort zone. Fit your mental comfort zone to the language, by learning it.
<6> you need to understand the difference between heap and stack
<6> arcane for sure but very important
<3> i need a book about heap and stack
<6> not reslly
<3> do you have an ebook for that?
<6> really
<6> AC++ will cover it
<3> StudentInfos
<3> hehe
<8> Flip through your books to any chapters on dynamic memory
<8> And actually read them and don't just scan them or flip through them
<8> I think this conversation has been the straw that broke my back on accelerated C++
<6> this is not a bad intro : http://cplus.about.com/od/beginnerctutorial/l/blcpptutorials.htm
<8> I'm back to recommending C++ How to Program
<8> http://www.cplusplus.com/doc/tutorial/
<8> I like that one. Bit better organization, and nice charts and explanations
<8> Which is odd, since I think it was written by a Japanese guy
<3> JBlitzen: thanks
<6> your specific question : http://cplus.about.com/od/beginnerctutorial/l/aa072502a.htm
<8> http://www.cplusplus.com/doc/tutorial/dynamic.html
<8> Hah!
<8> Dueling tutorials
<6> mine's bigger than yours :)
<6> <grin>
<8> Note the FIRST SENTENCE under "Operators new...", javaq:
<8> Well, FIRST PARAGRAPH
<6> no harm in having a few tutorials
<8> In order to request dynamic memory we use the operator new. new is followed by a data type specifier and -if a sequence of more than one element is required- the number of these within brackets []. It returns a pointer to the beginning of the new block of memory allocated.
<8> Thus,
<8> int fred = new int;
<8> Won't fly
<8> Because fred isn't a pointer, and you can't ***ign a pointer to a non-pointer without at least casting
<8> That's how fundamental your misunderstanding of new was.
<3> :)
<3> in Java int fred = new int; is valid
<6> so write in java
<6> big fat slow programs
<3> maybe they hid the *
<3> thanks
<3> i like c++, very fast
<3> i'm using dev-c++
<8> That's exactly it. Java hides memory management issues.
<8> Which is great if you're in an intro to programming cl*** and don't want to learn intro to programming
<8> But it tends to **** just about everywhere else
<9> anyone in turkey see the eclipse? was it cloudy?
<3> doesn't even have a destructor
<8> http://www.space.com/scienceastronomy/060328_eclipse_overview.html
<3> lol
<8> Top link on the right, yyparse
<3> eclipse happen every 4years i think
<8> Not sure there's any schedule to them
<9> javaq_: no - i believe you are thinking of a leap year
<8> Heh


Name:

Comments:

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






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

failed to allocate mem resource nvidia #6
MySQLdb 'Too many connections'
shramit
#apache
#linuxhelp
#apache
supt pula
skype
paccu malti
#MissKitten



Home  |  disclaimer  |  contact  |  submit quotes