| |
| |
| |
|
Page: 1 2 3 4
Comments:
<0> Or, they think your question is stupid, and you should just try it. <0> Not that it sounds like a very good design. <1> Rethguals : please check this past and tell me what's wrong : http://www.rafb.net/paste/results/S8SDvb93.html <0> The initialiser list should appear on the constructor definition, not the declaration. <0> By the way, that's the worst formatted code I've seen this month. <1> Rethguals : why r u like this i am just a newbie <1> hum <1> if u want to help me i would be thankfull <0> I gave you the answer. <1> i am just askin about the parameter fp; <1> can i use it in the derived cl*** like i did , i want the file opened to add extra information at the end <0> Not without making it a member or creating it from the drived cl*** and p***ing it to the base constructor. <0> The question isn't a very clever one: you can't access variables local to one function from another, no matter what the relationship of the cl*** involved. <1> ok my question is how to p*** the paramter fp from the base to the derived one <0> You can't. <1> oh?
<0> You can make it a member, if you like. <1> a member in base cl*** you mean <0> Yes. <0> A protected member. <1> okey <1> just like FILE *fp; as protected member <0> Yes. <1> nice :) <0> While you're at it you should add an 'fclose' to your dtor. <0> Or put one somewhere, anyway. <1> i ll put it in derived cl*** <1> because i need the file opened to add informations <1> well can y tell if the file pointer will keep same postion while p***ing the paramter fp to the derived cl***? <1> after writing first info block and i wanna add the second one on the same line <0> How would it be moveD? <1> alright :) <1> now why u said that my code looks crappy? <0> Well, the indentation isn't consistent, which makes it very hard to read, and therefore hard to help you. <1> ok Rethguals :) <1> thanks :D <1> Rethguals : still around? <1> i got a chain ' abcdedf ' how can i learn it begining with the third caracter c <0> learn? <0> I'm ***uming you mean 'string' for chain, but I don't know what verb you mean. <0> read from it? <1> hum <1> read from c <1> yup <0> Well, just use pointer arithmetic, or start subscripting from there. <0> c == str[2] <0> Er, 'c' == str[2] <1> oh ok <1> :) <0> Or equivalently, *(str + 2) == 'c' <2> 2[str] mwahaha <3> hi all <3> anyone here ? <3> i have a problems on this <3> configure: error: no acceptable C compiler found in $PATH <3> what should i do ? <1> i got a problem wiht your compiler , he cant find the right compiler on the the patch $path <1> *path <4> asdf <5> anyone online ? <6> maybe <5> FILE *f; <5> ... <5> <5> fclose(f); <5> i used this <5> thats the error--> [C++ Error] Unit1.cpp(20): E2451 Undefined symbol 'FILE' <5> ? <7> well that's C not C++ <7> and you likely need to include whatever FILE is defined in. <8> It's C++ <8> I don't see anything that isn't C++ <6> #include <stdlib.h>, <stdio.h>, <io.h. <6> one #include per line <9> hey guys! is there a way to use shared memory using semaphores in windows? <6> yes <9> great! any links that could help?
<6> RTFM at msdn <9> u got it! <6> any more bangs and some bot will pop up <9> alright dimi great help see ya later! thnx <8> Well, this is retarded. <10> Hey all! :) I'm new to C++ but have programmed C#... I have created a struct called CellPoint and CellSize, and i currently programme on CellRect, but i will not work... My CellPoint is http://pastebin.com/760183 (CellSize is almost identical) and my CellRect is http://pastebin.com/760184 <10> my errors is "CellPoint does not name a type" <10> and 20 other errors, but that is the first one <6> close cl*** { }, struct { } with a ; <10> its the same errors, but yes, i forgot it in CellRect <6> where do you get the error? at the point where you try to instantiate it ? <6> anyway, in C++, struct starts with an implicit 'public' <10> in the header file l:9 <6> CellPoint header ? <10> no, CellRect... CellPoint should work fine... <6> of course <6> at that point it does not know whaqt a CellPoint is <6> add a forward reference <6> inside the namespace <6> struct CellPoint; <6> like that <6> but inside the namespace <6> and before the beginning of struct CellRect <10> it seems that it was the solution :) thanks a lot... i did not know i should do that... <6> Hm, also add a #include "CellPoint.h" before/after #include "CellRect.h" in the second file <6> well, you used a type in a header that was unknow to the compiler when parsing that header <6> it needs to know at least a type even with no details <10> okay :) <10> do you use qt? <6> also, the second include goes in the cpp/cxx file, not the header <6> qt ? no <6> I work on platforms that use qtware (embedded version of qt) <10> okay, i use CodeBlocks (is there something better? other than VS) and Qt do not work proberly in it <6> sorry, never used it <10> fair ;) <11> Hello, C++ coders! <12> Hello,world! <11> Hey, Fma <11> Well, I'm not seeing very conversation about C/C++ <6> it comes in spurts <11> ah, ya <11> Well, _Dimi, I'm a C++ programmer <11> although I'm not actually working as a coder <6> what are you working as ? <11> As a system administrator, <11> here, in the University where I've been studying for years <6> universidad de vigo ? <11> Oh! <11> You know where is it? <11> Where are u from, _dimi? <6> west coast, Spain <6> aus Griechenland <11> Wow, You're good in Geography <11> You're greek!! <11> Great <6> Greek, not Geek <11> It's the first time I have the opportunity to chat with a "hellenik" <6> I've been here for about... 10 years or more <11> Which part of the "HELLAS" do u live? <6> north <11> El Pireo? <11> Near MAcedonia? <6> that's mid-south <6> right <11> OK; so you're living there but you're not from Greece, I suppose <6> I live, and I am <11> Well; <6> How's Pontevedra this time of year ? <11> Do you like C++ programming, _Dimi <6> Actually, I hate it :)))) <6> jk <11> Oh, you surprise me, _Dimi <6> jk == just kidding <11> you know where Pontevedra is, Where VIgo is
Return to
#c++ or Go to some related
logs:
poem beuwulf #india #allnitecafe #india #allnitecafe milllet nbr
ldconfig is empty, not checked #chat-world #netcafe #kl
|
|