@# 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 10 11 12 13



Comments:

<0> Or to debug.
<1> c0s- you clearly need a good book to learn from, and we don't teach C++
<2> ...
<1> and you commented out one of your function definitions, and spelled another one wrong, so you're not looking carefullly enough
<2> no...I had those commented but in my actual code they aren't anymire
<2> anymore
<1> why are you not even showing us the code you have, and expecting us to find the problem?
<2> do a refresh to that page
<2> it is exactly what I have now
<1> you still spelled getRadius wrong
<1> and what happened to using std::cout
<1> ?
<1> c0s- : http://www.rudbek.com/books.html
<2> hit refresh again pls
<1> and it still doesn't make sense to call delete this;, especially not in the destructor
<1> and main still doesn't return void



<1> and iostream.h is wrong
<1> and getRadius is still spelled wrong...
<2> I am compiling in borland C not visual
<0> And exactly how does that matter?
<0> Are you trying to do C++ or C?
<0> If it's C++ you're after, you need to ditch Borland altogether because it's not a standards-compliant compiler.
<0> And we only deal with standard C++ here. No Borland crap.
<3> even borland's latest compilers are not compliant?
<0> yep.
<3> damn
<2> ok....thank you for your time
<1> even if they were, his code is still wrong
<0> Indeed.
<3> ah
<1> c0s- we're trying to help but you're not really listening
<2> rdragon ..
<2> leave apart geetRadius
<2> spelled wrong
<1> can't you just fix the spelling?
<2> and iostream.h without using namespace std
<2> I fixed it
<1> iostream.h went away in 1998
<2> ok...I am using borland
<2> not Visual C++
<1> doesn't matter
<4> <IOSTREAM> IS THE RIGHT
<1> and void main was never legal C nor C++
<3> lowercase ;)
<4> =(
<1> and delete this; is still incredibly bad to do, especially in a destructor
<2> I always used void main() without any return
<1> well, it's wrong
<4> calc works
<5> works = "it works, IT WORKS!!! OMG! OMG! OMG! OMG!.... I mean, it compiles... now what is a segfault?"
<4> ;)
<6> I don't know about C++, but in the C standard a hosted system is allowed to defined its own entry point function
<1> main returns int
<2> ok....but those are not the things that generate my problem
<6> making void main() legal
<4> hmm
<4> I've read that the environment who actually calls the main (), expects int value
<4> But nevermind
<1> c0s- it's silly to try and fix a problem that may not even exist, given there are tons of other problems
<3> the only place I can think of where void main() really makes sense is like if you are writing code for a microcontroller, where the code never returns
<4> c0s-: Read what these guys tell you, forget the problem, learn C++
<4> Forget the current specific* problem
<1> c0s- you *really* need to get a good C++ book and read it, it's as simple as that: http://www.rudbek.com/books.html
<6> cn28h: of course using void main() has to make sense, but it's legal :)
<0> EwIck: It's not standard.
<0> You can call it tmain, WinMain, or whatever.
<3> well, only when defined by the host as legal, but it's not portable
<0> But we deal with standard C++, and teach same.
<4> main must return int. period
<0> The C++ standard says that main returns int, so we stress that.
<6> that's why my sentense started with "I don't know about C++"
<0> Heck, you don't even have to type the "return"
<1> http://www.research.att.com/~bs/bs_faq2.html#void-main
<0> So int main() {} is still one fewer character to type.
<0> (That returns 0)
<3> where is it in the C standard?



<1> See the ISO C++ standard 3.6.1[2] or the ISO C standard 5.1.2.2.1
<6> hmm. somewhere at the beginning
<1> (according to bjarne)
<7> someone know a good site to learn about visual c++?
<2> ok thanks...gonna read smth in that book
<0> probose-Away: I'd say www.relisoft.com
<1> probose-Away - do you want to learn C++, the programming language, or how to use the visual C++ IDE? (what version?)
<7> (rdragon): i finished the cplusplus.com tutorial, now i want try visual c++
<7> to mess with windows aplications
<1> that didn't answer my question
<6> 5.1.2.2.1 in the c standard
<8> Guess you didn't really understand the c++ tutorials then
<3> right, that's where I was just looking - you have to *really* stretch that to make it include void main() -- you have to interpret "or in some other implementation-defined manner." to mean that 'anything goes'
<6> there's a very short writing ", or in some other implementation-defined manner."
<0> EwIck: "Implementation-defined" implies non-standard.
<3> that was Schildt's excuse ;)
<1> anything does go, and it's called 'nonstandard' if it doesn't 'go' the way the standard says it does/should
<0> Schildt... what a dumb***. Is he still writing?
<3> dunno
<3> I hope not
<3> haha
<0> Oh dear lowered...
<0> http://www.herbschildt.com/
<0> MY EYES!!!11
<6> well there's WinMain in every program I write
<6> so shoot me
<0> EwIck: Nothing wrong with that. It just makes it non-standard.
<0> Of course, if you trace through the code, you'll end up in main
<9> hello
<1> EwIck there's probably an int main() under the hood
<9> does anyone know an alternative to incredibuild? it doesnt work on ME..
<1> windows ME?
<9> yeah
<6> there is, but it doesn't make it work on any non-win32 compiler
<1> probably best not to use that OS
<9> well, its on the laptop
<9> my PC is windows XP.
<0> Ugh
<1> i'm pretty sure MS stopped sale and support of ME
<0> Windows Me is without a doubt the worst thing to ever come out of Redmond.
<1> and has tried to make the world forget it ever existed
<6> heck, MS even stopped supporting Win2k
<6> drop ME already!
<10> when did they stop supporting 2k?
<1> jj2006 the best answer is to change the OS
<9> well its quite an old laptop and i am afraid to put XP on it because it will be very slpw.
<9> slow
<6> few months ago
<1> don't be afraid
<1> what kind of system is it?
<0> Not if you tune it properly, but oh well.
<1> how much ram / processor speed?
<9> its 64MB ram
<11> outch
<9> processor is 800mhz or so
<6> windows updates are still available for win2k, but "support" has gone
<1> mmm, not sure if it'll install with 64mb ram
<11> If you can put 256M of ram in it, it will run xp fine
<9> yeah exactly it is not much
<9> i dont want to change OS just to make a distributed build
<11> Even for ME 64M is not much
<1> jj2006 you should probably change the OS because the one you're using is pretty horrible
<1> i guess you could try win98, though
<9> yeah i could, but incredibuild doesnt work on that either :(
<0> Well, in any case I don't know what Incredibuild is.
<9> i have windows 2000 server, is that any good??
<0> And the fact that it doesn't work on 98 or Me tells you that you should probably upgrade.
<9> i never actually seen it or tried it before.
<1> i don't think you're going to get much in the way of a performance boost with that little machine
<0> 2000 Server's good. 2003 is much better, though.
<9> and it is safe to install to a laptop?
<6> yeah, you have win2k server but have "never tried it"
<6> yeah, that tells me you paid for it


Name:

Comments:

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






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

#c
What country did venetian blinds originate from ?
#AllNiteCafe
#AllNiteCafe
#java
Cannot add module via name 'mod_headers.c': not in list of loaded modules
#london
landed smack in the middle of plock
#chatzone
Mevlana Cellaleddin Rumi



Home  |  disclaimer  |  contact  |  submit quotes