Beginners - July 2009 (Page 9)

Overloading +=
 
I am working on a program to create two inherited class (savings and checking)from one base class (account) and I have to overload += and-= to work on my define...
[6 replies] Last: Your vector is declared as a vector of pointers to base classes. You ... (by jsmith)
int array[10] == int* array = new int[10] ?
 
I'm just learning C++ for the first time. I have been programing in java for about 2 - 3 years and C for about 1 year. I'm wondering what is the difference betw...
[5 replies] Last: Another difference is that the stack is much more limited in size than... (by helios)
Class instance restriction
 
Hi, I'm writing a class Card (playing cards), when I come across the member variables, I'm wondering what type of variables I should use for the suits and the...
[4 replies] Last: I see. Thank you very much. (by wmheric)
assignment operator
 
Hey i just started reading c++ today, and i was wondering if someone could tell me why we would need this: // assignment operator #include <iostream> ...
[13 replies] Last: Thanks for the answers. I think you guys misunderstood my question, bu... (by blast3r)
by adir
A problem in using template
 
Hi all, I have a problem using template, the code is behind QueueItem.h #ifndef QUEUEITEM_H #define QUEUEITEM_H template<typename Type> class Queue; ...
[5 replies] Last: Oh yes, I add 'const' before 'Queue' at line 22 and it's ok now,thank... (by adir)
urgent point of sale program trouble
 
so im taking this class over summer school and the teacher isn't really helping me so i'd really appreciate it if someone could find the errors in this program....
[1 reply] : Function declaration for tax() is causing an error. It should be voi... (by AR Khan)
Dynamically allocated array/sorting
 
I am looking for assistance in finishing a problem where I need to write a program to dynamically allocate an array large enough to hold a user-defined number o...
[10 replies] Last: if you still have time try to use insertion, it hs similar characteris... (by smilodon)
by garob
gtk+ vs. openGL
 
Can anyone tell me what is easier to learn and where I can find useful information. Thanks.
[1 reply] : Ok, I would like to say wtf. Not only are these not comparable, they a... (by closed account S6k9GNh0)
by Finks
cout.precision
 
Here's my code so far: float total(float subTotal) { cout.precision(4); float taxes; float grandTotal; float tax; ...
[5 replies] Last: Thank you all very much for your help. (by Finks)
by JuliaF
Array with Variable as Index Problem
 
Hi, I am making a game using OpenGL and SDL on Windows using Visual Studio Express 2008. The problem is not related with either though (hopefully). I have a p...
[6 replies] Last: At the beginning of the program #include "SDL.h" #include "SDL_op... (by JuliaF)
Question regarding assignment operator and copy constructor
 
Hi all, I have few basic questions here. Consider the following class : class Test { int a; } What is auto generated here by the compiler ? I think it'...
[4 replies] Last: Yes, of course. (by cppuser)
How to output the highest number
 
Hi guys, I think this might sound silly, but im not sure! I need to know how to output the highest number which is stored in an array? meaning if I have 4 te...
[6 replies] Last: I tend to agree, but since this can be solved in 1 line, I didn't thin... (by Tevsky)
by NGen
Using the << and >> Operators on Bits (1,2)
 
What exactly are the effects of these operators, and how do you use them? I know that they shift bits, but in what way? I can't seem to find any documentation o...
[21 replies] Last: Alright, good thing I got that right. I published it on my blog before... (by NGen)
I am trying to make the character dissapear.
 
I am trying to make the 3D buzz game, but the eraseSprite function does not work as I want it to. I hoped it would go to the location of the sprite, but rather ...
[3 replies] Last: I agree. Perhaps your sprite's position has changed since you last cou... (by Duthomhas)
Need to read from file with cin! Assignment due in 12 hours! AHHH!
 
Hey guys, I'm new to C++ and have an assignment for class where I need to read in words from a text file, but I can't get it to work. The instructor said after ...
[6 replies] Last: Thanks, that really helped :D (by iamsmooth)
how to connect to DB on win console
 
Hi, How to connect to DB on win console? I mean without MFC For example, I want to connect to Mysql or Mssql to do some simple work on win console. And I ha...
[2 replies] Last: yes, I just want to avoid MFC to connect DB, because I think MFC is to... (by oz toto)
by Moss
Writing a paragraph, ignoring ENTER.
 
I am a beginner in C++. I must write a program that takes in a paragraph (including spaces and enter and tab), and it must count the frequency of each letter, ...
[6 replies] Last: In *nix, often a paragraph is a series of lines separated by a blank l... (by Duthomhas)
Confusing function definition
 
Hi All, Can you kindly tell me what the following is supposed to mean: void *SomeFunction (AnotherFunction *, int); I am trying to decipher some ...
[4 replies] Last: @Duoas: Thanks, I guess that is what I am dealing with here. Am going ... (by farhan3d)
by Finks
Advice on POS Project
 
I've made a few simple programs in c++ before, so I'm looking for a new challenge. I'm getting ready to start working on a full-blown pos system (without printe...
[no replies]
Encrypter
 
Hello im trying to make a encrypter so far and im somewhat of a beginner i like to go for challenges that interest my needs and this is one of them...so my goal...
[8 replies] Last: Thanks for the examples everyone and the time you've spent to help me ... (by Dadopeman)
July 2009 Pages: 1... 7891011... 20
  Archived months: [jun2009] [aug2009]

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