Beginners - November 2009 (Page 12)

Don't really know how to search for this.
 
Hi all, apologies if this is posted somewhere else, not really sure what is wrong here. Code compiles fine, 0 errors and the program runs but crashes when it re...
[4 replies] Last: IndDicT::IndDicT() { for(int a=0; a >= MAX_TABLESZ; a++) { ... (by Solarix86)
function with variable arguments
 
So I have to make a program that accepts any number of arguments the user enters, then has the user enter numbers. The function will then determine if the list ...
[7 replies] Last: return isOrdered; is not part of any block or class. He's ... (by jRaskell)
How can I take in a name as string?
 
I am a real beginner and wanted to ask a simple question, how can I get this to only accept names under names and not numbers? and also I have a bug I cant fix ...
[2 replies] Last: Thank you. (by Jmiahsonfire)
visual c++ breakout ball fire
 
hello i was wondering if anyone could help me, i am a college student and am having a little bit of trouble sorting out my code.basically i have the space bar s...
[1 reply] : Only check for the space button when it's legal for the ball to fire. ... (by Disch)
Read data from .CSV and store in different variables
 
Hi, I am a mechanical engineer, and I've learnt the basics of VBA (excel's macro) and C++ in the past week, because I have to programm a simple C++ model. The ...
[4 replies] Last: Yes! It's working... Thank you! Now I have to fix the model, bec... (by Alzatan)
Overloaded Input operator and Set stmt
 
I have 2 functions... one is a composition of the other... and then I'm building and overloaded input operator to capture input to enter into some of the variab...
[2 replies] Last: This makes no sense at all: in >> F.Pipe.set_height(); wha... (by jsmith)
Finding the mode and variance.
 
I have come up with the following code, using Pseudonumber Generator. I need to use these generated numbers to figure out a couple of things (Mean, median, mode...
[2 replies] Last: median: The median is the middle-most value in a sorted list. You h... (by jsmith)
by sato
Number into array as a single digits
 
Hi Let's say I have 4 digit number and I want to extract each digit and assign to array elements. So instead of having int rrrr = 1998 I have a int rrrr ={1, 9...
[5 replies] Last: Here is an algorithm. Every line of the algorithm should translate to... (by jsmith)
Is it bad practise to use namespace?
 
I have been told that using the whole namespace std is bad practise, due to dragging in the whole standard library... As with Java I was also told that you sho...
[7 replies] Last: This is a quote from bazzy on another topic which kind of sums up what... (by gcampton)
question abt std:: and STL containers
 
why is it that when I see quite a number of codes, they prefix std:: onto the STL container type like std::vector<int> instead of just using using namespace std...
[1 reply] : http://www.cplusplus.com/forum/beginner/15930/ (by helios)
Dislplaying Contents of a binary file
 
Hello, I've written code that is supposed to write data contained in structures to a binary file, and then display the contents of the file by opening it, re...
[12 replies] Last: eof() works differently with text and binary files. As for the '\n'... (by helios)
Easy fix?
 
I got it so when I enter a negative number for hours it asks for it again, but after I put that in, I want it to ask for payRate next. Any help? #include <i...
[1 reply] : look at line 20. You ask the user to re-enter the hours, but you neve... (by Disch)
Question
 
My program is below, however it keeps outputting 1 as the average rainfall (the last function) instead of the actual average. Any help? #include <iostream> ...
[13 replies] Last: Sounds like you have multiple cpp files, and each file declares a glob... (by Disch)
question (1,2)
 
i need some help please i keep trying stuff out for this code but nothing works, can some one please help me out and tell me what i am doing wrong. #inclu...
[30 replies] Last: yes and how can i stop it from doing that cause all i want it to do i... (by hpfreak080)
Recursion problem
 
I have to make a recursive function that is passed a location in a previously allocated 2D array, and changes the "color" (indicated by a letter) from the "oldC...
[5 replies] Last: thanks helios. I don't think I would've used recursion if I had had... (by hpfreak080)
a question about powerful numbers
 
I found this code in a website that is meant to echo all powerful numbers between 4 and 1000. I'm not being able to fully understand it! Here is the code ...
[2 replies] Last: I did and the program works 100%; I'm just trying to understand how th... (by assaado)
by umax
Declaring Strings/Class trouble
 
Good day internet forum browsers! I have a dilemma here, quiet embarrassing since I've been programming in c/c++ for a good couple of years now. I just star...
[3 replies] Last: Thank you sir, I forgot to include the using namespace std since I had... (by umax)
Private Functions
 
What is the need for private member functions?
[3 replies] Last: Thankyou! (by mcleano)
what is a build error
 
I'd like to know what a build error is and how I could fix this problem in case the code has no errors thanx
[2 replies] Last: You can't be serious. You couldn't have googled at all? (by closed account S6k9GNh0)
by Akyrun
Logical Errors with Arrays.
 
This program is now fixed for syntax errors. Now I am having issues with the arrays. When the program starts, all the slots for the inventory are filled with ...
[7 replies] Last: ah. a guessing game. i won't ruin it for the two of you. here is an... (by herbert1910)
November 2009 Pages: 1... 1011121314... 25
  Archived months: [oct2009] [dec2009]

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