No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hello, I'd like to get started with PostScript. I'm completely new to it and would be very grateful to you for any hints. And my first question is (please don't ridicule me): how do I make a PostScript file? I mean, a plain text file with PostScript code, produced by … |
|
Hi, I've made a class whose member is a reference to a dynamically created object. How should I code a destructor? |
|
How is it possible that my program asked to cout a bool variable writes 104 on the display? Even if the variable wasn't initialized, it should display 0 or 1 I thought? Another thing is that it seems to be initialized and to go wild at one moment. |
|
Hello, I can't understand what compiler wants from me. I trying to create quite a big class structure with many abstract classes. Below is a part of the code with some of them. The compiler doesn't like my classes and says the he needs more constructor which I don't understand. … |
|
Hello, I'm not much of a programmer and will probably never be, but am just curious. Can I initialize a pointer with a constant value different than NULL? I.e. can I tell my pointer to point at one particular memory cell? It's a number so why couldn't I? I know … |
|
Would you be so kind and help me solve this problem? [code=C++] #include <string> using namespace std; class Okno { protected: int x1,y1,x2,y2; string nazwa; public: }; class NieDesktop : public Okno{ private: Okno& ojciec; NieDesktop(const NieDesktop&); }; class OknoWlasciwe : public NieDesktop{ OknoWlasciwe(const OknoWlasciwe&); public: OknoWlasciwe(Okno&,int,int,int,int,string); }; OknoWlasciwe::OknoWlasciwe(Okno& _ojciec,int … |
|
If we have three classes A,B,C declared as follows: [code=C++] class A{ protected: int x; }; class B : A{ //... }; class C : B{ //... }; [/code] does class C see its member x? It seems to me that it doesn't according to what the compiler says to … |
|
Hello everybody, I'm new here. I'm new to C++ as well and have many problems that you might find silly. One of them is this code, not willing to compile: [code=C++] #include<iostream> class Okno; class ListaOkienEl; class ListaOkien{ ListaOkienEl* pocz; public: ListaOkien(); ~ListaOkien(); void DodajPocz(ListaOkienEl&); void UsunPocz(); ListaOkienEl* WezPocz(); }; … |