@# 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 an array<int,3> if you have that
<1> Ksan_src ventrilo, lol
<2> Or boost::tuple
<3> probose-Away: p***ing by reference you can return more then one value.
<4> is there a function called chartoint and if so what libray do i need to include
<0> Like '1' to 1?
<0> Or like 'a' to its ascii?
<4> yeah
<0> That was not a yes/no
<5> hey, i made a little program, it works fine on my computer, but when my friend try to execute, it gives a error
<6> Ashe` =)
<4> '1' to 1
<0> char c = '1'; int i = c - '0';
<6> Just take '0' away. =)
<5> the translation of the error message is like "The file was not initialized correctly (0xc0000015). Press ok to finish.
<4> ok, thanks



<7> what kind of program is it, probose-Away?
<8> i am building a game for which i need to make an elongated hexagon board
<5> YUY0x7 just a little DOS program that check if a number is prime
<8> which looks like this http://www.gipf.com/zertz/notations/images/zertz_48rings.gif
<5> it also fatorate the number :P
<8> any ideas what data structure would be the best to use to make the board?
<7> probose-Away, what compiler?
<8> George, can u help?
<7> imesasaasa, you could probably use a list of columns
<5> YUY0x7 im using microsoft visual studio 2003
<7> probose-Away, so it's not DOS, it's windows console
<8> no ideas, anyone
<8> ?
<0> probose-Away: sounds like the message you get when it doesn't even reach main()
<7> what runtime library are you linking with? look in project properties, c/c++, code generation
<5> ok wait
<5> Multi-threaded Debug (/MTd)
<7> i'd think that would be fine.. try Single-threaded Debug maybe?
<5> primos Command line error D2016 : '/MLd' and '/clr' command-line options are incompatible
<7> hmm
<5> =~~~
<0> If it was a runtime problem, you'd get a missing dll error
<0> Maybe he doesn't even have .NET heheh
<7> do you need .net for a native console app though?
<5> i think that all he got is winamp and msn
<0> YUY0x7: he's using /clr
<7> oh that's the option for using the clr, hehe... well he shouldn't be using it i guess, if it's just a native console app
<9> hi
<9> is there any1 here can help me find an ocr program src code in java or c++ ?
<2> http://www.google.com/search?&q=OCR+C%2B%2B+source
<9> i googled it be4
<2> Not hard enough, apparently.
<5> where i can see if im using /clr? :P
<9> well i found one in java be4
<9> but i cant compile it cuz its .jre
<5> hey, there is a most eficient method to "stop" the code than cin.get()?
<10> why do you want to "stop" ?
<10> what do you want to wait for?
<5> i want to "stop" so the user will be able to read the output
<2> probose-Away: There is no standard way to do so. You'll have to rely on non-standard and OS-specific methods.
<10> why aren't they able to read it?
<5> because the program close
<2> Not if you run it from the command line.
<10> they should run it from a console window then
<2> The output is still on the screen.
<5> but it is too hard for "common people" :P
<2> That makes no sense.
<2> If it's a command-line app, then it will be run from the command line.
<2> And as a "common person," I would be seriously pissed off if I ran a command-line app and had to press a key to get my command line back.
<2> (Unless I'm running "more")
<10> /agree
<2> Which, incidentally, is a fine way to get the output to "stop".
<2> more yoursillapp
<11> Hi
<11> someone alive ?
<3> just ask it
<11> I search a compilator wich is able to detect exception error at compilation (like Eclipse for Java do)
<11> or, if VisualC++ can do it, wich options are required..
<3> compilator ?
<11> scuse my english.. i'm french
<3> nop



<11> you know.. "gcc", "vc98", ...
<3> just you can use for visual c++ 6.0 or later version to compile.
<12> What is an "exception error"?
<11> i search a compiler, wich is able to print error when the exception management is bad, you know about C++ exceptions ?
<12> Ahem, yes, I know exceptions.
<12> The word is "compiler", btw.
<11> for example, if a function do: "throw std::exception" and the function header doesn't says "throw(std::exception)"
<12> Do you mean you want a compiler that checks for violations of exception specifications?
<12> It seems you do.
<11> yes
<12> No C++ compiler does that.
<11> like Eclispe is able to do.
<11> :'(
<12> In fact, exception specifications usually are not used in C++.
<13> what's an exception specification?
<12> (The notable exception from that rule is the destructor of cl***es derived from std::exceptions)
<14> like in Java whre you have a "throws ..." in the functions declaration?
<12> EwIck: A throw specifaction that tells which exceptions might escape from a function.
<15> it's evil
<13> I see
<15> and stupid
<12> s/specifaction/specification/
<14> I don't see what's bad about it
<3> NoideaLT why is that anyway
<3> _m_ sounds like sci-fication
<16> i need to load a bitmap into an HBITMAP (actually i already have) but I need to convert the HBITMAP data to 16 colors, and the HDC i drew the bitmap onto doesnt support palette operations.. (can i use palettes with bmps?)
<15> because it's unmaintainable
<12> "maintainable" isn't really the problem.
<12> The problem is that C++ has function pointers. And C++ has C.
<12> There's no way to squeeze exception specifications through C functions.
<12> Even with pointers to C++ functions ES would be very problematic. The ES would have to be part of the FP's type.
<12> This would result in a royal mess.
<14> that's true
<14> they're nice in Java because it allows you to have a function that can have an exception that can be handled however the caller chooses
<12> Using exception specifications (with the exception noted above) is generally a bad idea, because exception specifications *do* get enforce.
<12> s/ce/ced/
<12> However, that happens at *runtime*.
<14> hm
<12> A violation results in program termination.
<14> as in you don't call it from a try {} block?
<12> Worse.
<12> If you violate an ES then unexpected() gets called, which in turn calls terminate().
<12> So the ES does not say what a function throws, it tells which exceptions can escape from the function.
<15> which means
<14> so how do you violate it? that's what I'm confused aobut
<15> everytime someone adds a new exception somewhere down the call stack
<15> every function above it now needs to know how to handle that exception
<15> unmaintainable
<14> only if that exception propagates up through the other functions
<12> Java lives with it. It seems it is maintainable, somehow.
<12> I guess the Java people usually translate alien exceptions to some other exception type that is listed in the exception specification.
<14> that would work
<11> but i heard it was also possible in a C++ compiler..
<16> http://rafb.net/paste/results/ljeGDT18.html
<16> bmpInfoHeader.biWidth and biHeight are both 0
<17> bliep bliep
<17> moop moop
<16> it worked yesterday wtf after i deleted the code i had to rewrite it using HBITMAP instead of HANDLE for LoadImage
<16> the cast works fine cuz i can BitBlt onto the DC, but GetDIBits doesnt fill the BITMAPINFOHEADER with values
<10> heh, people still use BitBlt?
<13> I use it
<13> and I use goto's too
<13> and I use C instead of C++
<16> EwIck do you see any reason that GetDIBits would return 0 for those?
<13> those?
<16> parameters i p***ed along with the function.
<13> and no, I don't see why, I'm dizzy
<16> lol why are you dizzy?
<18> hi
<18> what function can i use to get the file list from a directory
<14> depends on the platform
<14> there is readdir()
<14> if you are on POSIX


Name:

Comments:

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






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

#gentoo
nokia ip330 firewall reconfiguration
#javascript
failed to allocate mem resource nvidia #6
#AllNiteCafe
Where does the girl come from in Astrid Gilberto's most famous song ?
#MissKitten
java g.drawcircle
#AllNiteCafe
#AllNiteCafe



Home  |  disclaimer  |  contact  |  submit quotes