Beginners - August 2010 (Page 26)

How do I overload
 
I have the code written but now I have to overload the void drawBar() I am lost on how to do this any help would be appreciated. #include "stdafx.h" #includ...
[3 replies] Last: hmm well, the basics of function overloading is when you define two fu... (by Duncan)
Problem with 'Banking System' code
 
Hi Guys I'm working on a project for school were I need to create a simple banking system.(Acct creation, withdraws, deposits, simple processes like that) My...
[2 replies] Last: Skillless is mistaken you're right to #include "Bank Class.h" instead ... (by Duncan)
A problem with clearing std::cin
 
I wrote a program to test if I could successfully input text from my keyboard into different vectors and then have the program output all the text. #inc...
[8 replies] Last: Hello Friends i am jim smith and i am new to this forum. When I ... (by jimsmithusa12)
repetition and invalid if statement
 
somebody help...i want this program continuous.and my if else got problem.someone help me.. #include <iostream> #include <cmath> using namespace std; ...
[3 replies] Last: What is it that you want your get_score function to do? Why does it... (by daveD)
creating a copy constructor
 
Hi guys. I have created a class which is basically an array that allows me to do vector algebra on the array. I have overloaded the copy constructor ass fol...
[6 replies] Last: I'm sorry, data_ was a leftover from the code I copied from. I edited ... (by R0mai)
Initializing null-terminated char array inside class
 
I'm just starting to learn classes and I want to initialize null-terminated char array inside a class, but I'm doing it wrong: //assume the class is in a he...
[6 replies] Last: Assuming you initialize i to 0... Memory and stability wise, no, they ... (by jsmith)
by Wander
Deque Problems
 
I am trying to create a program that will allow you to add up amounts of troops that different people own. To do this, I'm using deques. I keep getting a weird ...
[3 replies] Last: nameCounter = 0; monsterCounter = 0; number... (by Wander)
PLEASE H3LP: Converting color bands(strings) to resistance and tolerance
 
currently working on creating a function within a class that will receive colors on a resistor from user input (cin) and convert to resistance and tolerance. T...
[9 replies] Last: [quote=jewing87]i cannot use a struct i have to use a class... Do it... (by m4ster r0shi)
Global variable not declared in this scope
 
Hello all, I'm trying the exercise Dungeon Crawl. I made an apart function for the drawing of the board. I made an array for it, a global variable. In mai...
[10 replies] Last: If you have an array like this: int myarray , then they are 5 eleme... (by guestgulkan)
Calculator class
 
So I need help using classes to build a calculator class with the same functionality as the following calculator, but having the functions embedded with an obje...
[5 replies] Last: Heres an example on how to have the numbers and operators in your clas... (by Skillless)
Question about the PlaySound() function
 
I've used this function a couple of times but for some reason only certain WAV files work with it. I can have two separate WAV files named wav1 and wav2 in the ...
[5 replies] Last: I tried using FMOD but I couldn't get it to work. It acted as if there... (by AdventWolf)
Unbuffered IOstream transforming char to int...
 
Hey. I'm pretty new to coding and all, and don't really know it yet. I'm trying to piece together a program that allows for a key to be changed into an integer ...
[no replies]
by imod
'main' must return 'int'
 
Hey there Whenever I compile this (see below) with gcc on Cygwin it returns with: test.cpp:25: error: 'main' must return 'int'; Here is the source code ...
[5 replies] Last: This can be confusing since some compilers allow void main() and you... (by cnoeval)
Token Problem in Calculator
 
Hi!, I am doing the exercises in Stroustrup's book, Programming: Principles and Practice Using C++. The 6th chapter uses a simple calculator to demonstrate T...
[1 reply] : like you are doing there the ! operator comes before the expression I... (by Bazzy)
Problem Using MSVC Express
 
Hello World! I started teaching myself C++ a few months ago. I read tutorials on the Web and bought Stroustrup's 'Programming: Principles and Practice Usi...
[2 replies] Last: I recommend you stick to VC++ Express. It's a fine IDE and it's very e... (by filipe)
by DBarzo
Copy structs with string members
 
Hi, suppose to have to return a structured type from a method struct TMyType { LONG Member1; INT Member2; std::string Member3;...
[2 replies] Last: Oh my God!! Ssss...don't tell to anyone what I asked! :-P (by DBarzo)
Priotity Queue Again
 
Hello there thanx to Mr. Hellios i can now modify the data inside a stl priority queue explicitly. But here is a problem i am facing. Here is some code to push ...
[2 replies] Last: zee Thanx. :D (by dumbterminal)
How does a C/C++ compiler work?
 
Can you please explain how a C/C++ work exactly in detail? As such in the compiler stage. Can you please expalin the assembler stage and the linker stage.? T...
[1 reply] : Can you be more specific in your question? http://en.wikipedia.org/wi... (by Bazzy)
typedef and array as parameter
 
I am an very beginner and try this in codeblock,windowXP. main.cpp as followed class printtt; using namespace std; typedef unsigned int type_num; int ...
[2 replies] Last: Thank hamsterman, I get it !!! I didn't understand what hamsterman s... (by javanovice)
Sorting and finding strings.
 
I am working on an assignment that allows the program to ask the user to input a name in the last name "comma" first name format, (e.g. "Collins, Bill"). The in...
[3 replies] Last: Hi, Few changes: 1) Instead of using >> use getline to enter name i... (by phoenix111)
August 2010 Pages: 1... 2425262728
  Archived months: [jul2010] [sep2010]

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