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



Comments:

<0> T*?
<0> it couldn't, T* would be a primitive type
<0> it's probably that .begin() on a string gives you a char *
<0> it's like trying to compare two char arrays using ==
<0> compiles, but in most cases doesn't make sense
<0> hm
<0> maybe I'm just on crack
<0> heheh
<0> now that I think about it what I said doesn't make sense :)
<1> vc8's string::iterator is a cl***, not char* let's see if that compiles
<0> right



<0> I was thinking it was a char * for some reason
<0> but it should be an iterator
<0> std::string::iterator
<1> std::string s = "hello";
<1> cout << (s.begin() == "h");
<1> that doesn't compile in vc8
<1> it must have been a non-standard issue in vc6
<1> Pfloyd, ditch that awful compiler already
<2> hy! Can anyone tell me what's wrong with this code? http://pastebin.com/550213
<2> If circular includes are a problem, how can i solve it?
<0> use #define guards
<0> #ifndef MY_HEADER_H
<2> aham
<0> #define MY_HEADER_H
<0> ... (your code)
<2> ok
<0> #endif
<2> let me try that...
<0> YUY0x7, out of curiosity, does it work if you do s.begin() + 1 ?
<2> nope... that was not the problem
<1> remove line 3 and replace it with cl*** GameEngine;
<1> cn28h, nope
<2> hy! Can anyone tell me what's wrong with this code? http://pastebin.com/550213
<2> <2> If circular includes are a problem, how can i solve it?
<2> oops, sorry
<0> MrMuscolo, wheer did you put the #define's?
<2> around the #include
<0> no, that's not right
<0> you put it *in the include files*
<2> #ifndef xxxx
<1> MrMuscolo is there any reason you're using your own linked list structure instead of std::list ?
<2> #define xxx
<2> #include dddd
<2> #endif
<2> not really... I just started c++, and i don't really know my way around the cl***es
<1> apropos guards
<3> YUY0x7: guards = "guards" "include guards"
<1> calc include guards
<3> include guards = #ifndef SOME_UNIQUE_LABEL #define SOME_UNIQUE_LABEL cl*** A; #include "b.h" cl*** A { /* code */ }; #endif // or even better, just put them in the same file, if they're that dependent on each other
<0> you should generally do that in every header you create
<1> MrMuscolo then you're not really qualified to make a game engine, imho



<2> just a simple one... :P
<0> then you should include it in every file that uses it, even if that file is already included by another file you are including
<2> not really a game engine, i just couldn't find a better name for it
<1> learn the language well enough first
<1> you'll find yourself reinventing the wheel less if you do
<2> :))
<2> yeah... good point :P
<1> #if !defined(GAME_OBJ_H) #define GAME_OBJ_H cl*** GameEngine; cl*** GameObj { .... }; #endif (no #include "GameEngine.h")
<2> is there anything wrong with my struct define? because compiler says: syntax error : missing ';' before identifier 'Data', and it is the first identifier... where does it want me to put the ; ?
<1> the other header already has #pragma once which is not standard, but will do what the include guards do
<1> MrMuscolo, that usually means that the compiler does not know about the type you gave Data
<2> ohh yes... i should have added forward declarations...
<1> again, remove #include "GameEngine.h"
<2> yeah, okay. thanx
<2> a lot :)
<1> np
<2> erm... one more question. I have added a forward definition for the cl*** GameObj
<2> but still error C2079: 'ObjList::Data' uses undefined cl*** 'GameObj'
<1> you didn't include "GameObj.h" in GameEngine.h? don't remove that one
<2> no, i've put them both in one file
<1> oh
<1> let's see it
<2> http://pastebin.com/550241
<1> do it the other way around
<1> put GameObj's definition at the top and forward declare GameEngine
<2> same
<2> oh
<2> wait
<2> yep works now
<2> so I have to declare cl***es that were forward declared before any other cl***eS?
<1> hmm, not sure i understand your question
<4> Damned reporters. Look at this sentence...
<4> "The plane, with a wingspan as wide as an 11-storey building is tall, landed with just 200 pounds (90 kg) of fuel left."
<4> Why didn't they write...
<4> "The plane, with a wingspan as wide as an 11-storey building is tall, landed with enough fuel to weigh as much as a 6-foot-tall man."
<2> :))
<1> lol
<4> If they're going to tell me the exact weight of the fuel, why not tell me the exact wingspan?
<4> Idiots.
<5> yup
<4> My favorite unit of "reporter" measure is the football field, though.
<2> nope... reporters
<5> was it 2 footbalpitches long?
<4> I wonder how many football fields his trip was.
<5> i agree that measuring in storties and footballfields is annoying
<5> so how high is 1 story exactly?
<0> check SI's website
<2> ~2.5 metres


Name:

Comments:

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






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

#linux
TaskbarCreated C++
facepic
gillian attard
zob arbi
What disease do the French call 'la rage' ?
#c++
#mirc
#php
reddiena



Home  |  disclaimer  |  contact  |  submit quotes