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



Comments:

<0> that is what I meant
<1> then you ain't gonna do it in an int, or an unsigned int
<0> i know
<0> hence my dilemna
<2> then enlarge your interval, and set your range type to the next largest after intt
<1> there is no dilemma
<2> __int64, long long, whatever
<1> pick a larger type than int
<0> OK, i wasn't aware of these types :)
<3> select a type thats aproperiate for the value you want it to contain
<3> or _handle_ it on creation..
<3> if you are worried about memory
<2> there we go. an amicable conclusion
<1> btw, that seems a VERY peculiar range of numbers to want to play with
<0> what is one to do for example, if one wants to represent a long long as a string and validate max range and min range? I mean, what happens one you go to the biggest type?



<4> I'm hungry
<0> vaw: well, i am mainly validating this range, because most of the string will hold nothing bigger than an unsigned int
<0> and smaller then the lowest signed int value
<1> mozai WHY did you pick those numbers?
<1> that's a very peculiar range (since the min and max are computer / compiler dependent)
<5> still on this? heh
<3> hehe
<6> C:\temp\ans\ansi\ansi\ansi.cpp(48) : error C2065: 'OPENFILENAME' : undeclared identifier
<6> even after i have included windows.h
<5> what's OPENFILENAME ?
<2> oh, so sad when a good game throws it all away with a retardosection
<7> An undeclared identifier.
<6> an information struct for OpenFileName()
<7> So, did you #include the header that defines OPENFILENAME and OpenFileName()?
<8> iirc its in commdlg.h
<8> but dont hold me to it
<9> ansi ansi ansi oi!
<5> HeaderDeclared in Commdlg.h, include Windows.h
<6> yeah
<6> i have windows.h included
<8> ja and calling your cpp ansi.cpp is err optimistic :)
<6> stdafx.h is the first header being compiled
<6> i have re ordered my header files, cleaned and rebuilt these error messages are still showing up
<9> stdafx.h must always come first
<10> that's why it ****s.
<9> and you should include windows.h and any other PSDK header from stdafx.h itself
<9> pffft, PCH = much faster
<10> what about list, or map, or other STL headers?
<9> when you're ****ing in globs and globs of headers
<9> STL headers as well
<9> any header that doesn't change
<10> interesting
<8> i always put stl stuff in stdafx
<10> I didn't know if it could save a compiled version of templates
<6> windows.h is already included in stdafx.h
<6> double you tee eff
<10> I just don't like the stdafx thing, I thought they changed that
<8> commdlg.h
<10> so precompiled headers no longer depended on stdafx
<9> it's just the default name, feel free to call it pch.cpp and pch.h
<5> you can change the file name (if thats what you were asking)
<1> student_ why are you using the windows exclusive I/O stuff instead of the portable stuff?
<10> heh, no, I meant, I thought in the new version of VS it could do precompiled headers without a special header file at all.
<9> vic, that particular API is responsible for displaying the open file dialog
<1> oh, THAT pos
<9> noidea, not to my knowledge
<6> k works now... thx
<10> I'm probably wrong
<10> I just thought I had read it somewhere.
<1> the preprocessor won't let you #define blah(x) something AND #define blah somethingelse <sigh>
<10> no
<10> the preprocessor is dumb like that.
<10> which is fine with me, anything that discourages its use.
<1> yeah, well somehthing can't be done otherwise
<10> true
<11> stupid question, is there a constant for the compiler version?
<1> depends on the compiler
<11> right
<11> don't suppose theres any way to get the compiler
<1> huh?
<1> oh, that



<1> what are you trying to do?
<11> basicly what I want to do is print a string that say what compiler the app was compiled in
<11> as well as the OS
<11> whilst trying to make it work in as many compilers as possible
<1> I suggest you go to www.boost.org and look at their config stuff
<1> they MAY have a solution buried in there
<11> looks usefull thanks
<1> lemme know if you manage
<11> looks like a header file that covers most compilers
<1> I meant to use it as an example... I'm not sure it identifies the compiler
<3> hm
<12> Hi folks.
<11> whel they have a config file that has the list of constsnts defined by the compilers
<13> nei duh..
<14> http://www.opinionjournal.com/taste/?id=110008009
<15> I have this code:[ #include <stdio.h> ... const int x=3; ... int i; for(i=0;i=x;i++) { printf("%d value: ",i); ... } ... ]. When i execute it the loop does't stop, and it always prints "3 value: "...help!!
<2> = is the ***ignment operator. x = y means "Set x to y"
<2> == is the comparison operator
<2> x == y means "Are x and y equal"
<9> printf means try #c
<9> BA DUM CHA
<2> That too
<2> Ba
<9> his thanks came in the fact that he left
<16> :))
<16> aplauze
<16> cade cortina
<16> io mam uitat acum la lacrimi de iubire
<16> login
<17> please type username:
<9> root
<17> p***word:
<18> hi
<9> jbsux0rs
<18> http://www.rafb.net/paste/results/GChKlU17.html
<17> kernel panic.
<18> can someone look at this for me and tell me why it's not working ?
<9> i don't fault it
<18> cout << strc.a << strc.b << endl;
<18> should have been a->a and a->b here
<18> but i get
<18> 10 C:\Dev-Cpp\struct.cpp two or more data types in declaration of `woot'
<9> 1) i don't see a comma after wtf's closing }, 2) strc is not static in woot, therefore returning an address of strc is undefined behavior, 3) stop saying struct before structures, this isn't C
<9> structures = struct identifiers
<9> comma = semi-colon heh
<9> i failed english
<17> cout << strc.a << strc.b << endl;
<17> where is strc declared?
<9> he already caught that
<9> oh
<9> yeah, it should be a->
<9> ***uming that woot was implemented correctly
<17> and it will generate a runtime error
<17> cuz the pointer returned points to a structure that get's destroyed
<17> in woot, it should be wtf *strc=new wtf;
<18> i just said it's a mistake
<17> but it's not a good idea to play with new
<18> [23:48:54] <18> should have been a->a and a->b here
<18> here
<17> ah, sorry
<19> np
<14> damn it
<14> can't you people read the topic?
<14> use my paste site
<14> I made it for all of you.
<14> all that time and effort
<14> and then you go run off to someone else's web site.
<9> pfft
<17> well, you're declaring strc inside woot() and then you return a pointer to it, after woot() exits the strc gets distroyed so the pointer is pointing to some undefined memory space
<19> finally fixed


Name:

Comments:

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






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

ntop apache rewrite
#MissKitten
XieX 9
#asm
#linux
nokmin
#MissKitten
(due to unsatisfied devel(libpangocairo-1.0))
joe pesci uhq
oracle collaboration mx record



Home  |  disclaimer  |  contact  |  submit quotes