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 compile...
[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 ...
[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 un...
[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 ...
[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 pas...
[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 inpu...
[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 ...
[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. S...
[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 st...
[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 lik...
[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,...
[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, ...
[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) inste...
[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 ple...
[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, an...
[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 ...
[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 progr...
[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 e...
[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 prog...
[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.