Beginners - July 2009 (Page 5)

Permuted Index explanation.
 
Hello everyone. I am currently learning C++ from a book: "Accelerated C++ Practical Programming by Example" There I have a exercise that requires me to ...
[1 reply] : 123 132 213 231 312 321 (by helios)
by hkproj
Stupid problem about headers
 
Hello. I have this code in 'grid.h': template <typename T> class Grid { public: Grid(int inWidth = kDefaultWidth, int inHeight = kDefaultHeight); ...
[4 replies] Last: You aren't supposed to include cpp files (by Disch)
What can I do about this error?
 
1>LINK : fatal error LNK1104: cannot open file 'dplayx.lib' I installed something called directx SDK for the DarkGDK engine. What can I do?
[2 replies] Last: You should add DirectX directories to the environment settings. If th... (by Bazzy)
by XeonXT
Circular Class References?
 
First, I apologize, as my question is most likely trivial; I have, however, done numerous searches and read a post on this very topic, but something is still no...
[2 replies] Last: Thanks enormously. Knew I was missing something. Wasn't sure what "for... (by XeonXT)
by panli9
WHAT'S THE brushExisting??
 
I am a beginner.When I learn a Class of the MFC,I found a question. Look at the following code that post on Microsoft. // Example for CBrush::GetLogBrush LOG...
[1 reply] : I know. LOGBRUSH logbrush; brushExisting.GetLogBrush( &logbrush ); ... (by panli9)
how to separate 1 var into 2 vars?
 
in new programmer and i got a problem the problem is that i need to separate 4 digits hex number into 2 bytes(2 digits each) to two different variables, its pr...
[4 replies] Last: thanks working! (by yoni0505)
Someone must know whats happening to my loop
 
Hey Guys, I have posted once before on this subject but I'm still having problems with this damn loop!! When the program loops around again for some reason...
[2 replies] Last: yes I did post this earlier today and I also posted saying I was unsur... (by DragonKnight)
Component COM in a DLL
 
Hello, everyone. I'm new here and also beginner in C++. I need to develop a C++ COM component (DLL) that is accessed by an application developed in delphi5. Th...
[no replies]
Loop keeps repeating itself in a weird order
 
Moved on
[1 reply] : Things like int x; cin >> x; do not consume carriage returns, b... (by jsmith)
Error passing temp object
 
Hi guys. Given the simple class definitions: class Bar { public: Bar(): value(21) {} Bar(int i): value(i) {} private int value; }; c...
[4 replies] Last: Thanks jsmith, very nice faq. (by felipe21)
slot
 
this is the code i have so far for a slot machine i am working on. i feel like my functions are ok so far but i am having trouble in main. does anybody see wh...
[9 replies] Last: You can omit the "static". Where to call it is up to you. (by jsmith)
calling member functions from within the constructor
 
1. Is it bad practice to call member functions from inside the constructor? 2. Is it bad practice to call member functions from inside other member funct...
[7 replies] Last: Because the vtable isn't built completely by the time the constructor ... (by Disch)
problem with hex file editing
 
I'm kinda new to C++ and I've started to build a program. the program need to edit a hex variable at a specific file. everything seems to work well except when...
[7 replies] Last: Thanks a lot Duoas! you solved the problem! so i had to use the put() ... (by yoni0505)
by salex
Run Time Error
 
Hi all.Please, help me with an run-time error. I need to create a file and put a string in it.My string lenght is set by a constant from a class.While introd...
[14 replies] Last: thank you a lot. this method works correctly. (by salex)
by Bv202
private inheritance
 
Hey, I'm now learning about inheritance and I understand it up to this point. I understand how to use private inheritance, but don't understand what it actua...
[5 replies] Last: Very nice explanation, I understand it now. Thank you very much, Di... (by Bv202)
Question regarding code in tutorial
 
On page 98 of the pdf version of the tutorial the following code is shown: CVector& CVector::operator= (const CVector& param) { x=param.x; y=param.y; ...
[4 replies] Last: No, you cannot return local objects. However, you can return an ext... (by Duthomhas)
by NGen
getPixel?
 
At a programming camp I've been going to, one of the instructors showed us some of the programs he made in C++, and when I asked him what library he used, and h...
[6 replies] Last: Yes. Very. Back when I worked with WinGDI, the way to do pixel-lev... (by Disch)
Can't figure out a line of code
 
Hi, I have the following line of code in Primes.cpp file. std::vector<BigNatural> PrimeNumbers::primeNumbers_; I am trying to figure out what it is ...
[3 replies] Last: Thanks, Got it. (by tsliyan)
by arash
Simple C code does not compile in VS2008.
 
Hi everybody, this is my first post here...I choose Kernighan , Ritchie Book to follow and refresh my knowledge in C and this site forum to accompany this proc...
[4 replies] Last: it does highlight them , but after that if you want to read your code ... (by arash)
Greenhorn failing to compile first program.
 
I've been using Microsoft Visual C++ Express 2008. When I build the following code I get the following error report. I'm confused because I've checked and rec...
[7 replies] Last: You can also look at the first line, it tells you that you were compil... (by Duthomhas)
July 2009 Pages: 1... 34567... 20
  Archived months: [jun2009] [aug2009]

This is an archived page. To post a new message, go to the current page.