Beginners - March 2012 (Page 48)

multiple input arrays
 
I have built this program and for some reason am having memory issues remembering how to make is so I can input more than one lab and exam score. To be more spe...
[3 replies] Last: I'm not getting any errors, I am just forgetting how to use the array ... (by John Reynoso)
Write to File Issue
 
I am having a major algorithm design issue with writing to a file. I have thought about this for quite some time now (I even perused Stroustrup with no luck), ...
[9 replies] Last: Thank you all very much for your help. I was able to implement all my... (by skyline01)
Pass by value, reference
 
This is just not sinking in no mater how much I go over my text and this site. I am completely lost using these, I need to write 4 functions including main to ...
[11 replies] Last: I've had a go at writing you code. I've omitted the body of computeCo... (by closed account zb0S216C)
copying objects
 
lets say i have a custom class called DOODAD and i have a list of doodads stored in a map like this. std::map <std::string, DOODAD*> doodads; each doodad st...
[3 replies] Last: IIRC you've created some prototypes, and store them in a correspondenc... (by ne555)
looking for some pointers to improve my C++ code
 
I'm new To C++ and decided to have a go at the spotify challenges on their website, http://www.spotify.com/uk/jobs/tech/best-before/ I have now finished but ...
[1 reply] : Your main problem is formatting. 1. Make sure you indent when applica... (by Stewbond)
simple program not working_Help
 
this is an example program from Robert Lafore OOP in C++ book,but its not working in Visual Studio 2010, can anyone please help me out what I'm doing wrong? ...
[3 replies] Last: Thanks Stewbond and vlad too.. I should have tried to understand the e... (by durresam)
file locating with xcodes
 
i need help finding a file that is needed for a program i am writing, the file is ALWAYS never found or an error within the file prevents the compiler to work, ...
[3 replies] Last: I know that include is for actual code I'm just throwing things at it,... (by ui uiho)
by chipp
return *this
 
what's the use of *this ? i tried to do: cout << *this; but it doesn't print the value of the this , so what value returned by this statement: return ...
[7 replies] Last: oh yeah... right... thanks stew... i totally didn't notice that part..... (by chipp)
C++ Would someone take a look at my code to see what is wrong.
 
Would someone mind to take a look at my code to see what is wrong. I need a program should allow the sales manager to enter the number of registrants for as ma...
[2 replies] Last: Diana, Actually I think your code is really far from meeting its requ... (by Rodolfo Ferraz)
possible to use derived class as parameter in base class function?
 
In order to compile a derived class, the base class must be stated in the code previously. But in order to use the derived class as a parameter in a base class ...
[7 replies] Last: Does that also mean that I can assign a derived object to a base obje... (by cire)
Code::Blocks Programs' argument
 
I tried everything to debug my project with an input file. but it doest work. "C:\\....tabu\\bin\\debug\\tabu.exe"<input.txt isnt that true? or what is ...
[2 replies] Last: it works. but it doenst take my input file as input datas. I just want... (by whocares21)
by m9220
no idea why every single program crashes during loop ( C programming)
 
For any program, which requires looping a few times, after around the 5th loop, the printf statement prints continuously, without waiting for scanf input. Have ...
[2 replies] Last: I would guess from the code that you're accidentally entering a charac... (by cire)
reverse algorithm loop
 
My homework says to create a function whose input is an integer which returns the reverse of that integer, using a loop. I figured out the algorithm by hand, an...
[12 replies] Last: @Fraidy Levilev What compiler are you using? C++ requires a return f... (by andywestken)
Loop Structure
 
Hello, I am trying to build a program that outputs how many years it takes for population of town A to be greater than or equal to town B's. This is the error...
[4 replies] Last: Were you using Visual Studio 2010? I've noticed a slight bug where it ... (by Randi Miller)
Making an ending cout
 
I downloaded this code from xoax.net, pretty nifty little program game. I guess because I surprised myself that I figured out the puzzle that I started to lik...
[no replies]
by Jynks
Caculating Fibonachi Sequence WITHOUT using Recursion??
 
Our teacher as part of our tutorial work wanted us to make a program to take a user input of "n" and calculate the Fibonachi sequence of that number. BUT... he...
[1 reply] : Use a loop. (by cire)
Do While Loop Does not work with ||?
 
I just noticed that || does not work in do while loops. But && acts as ||. I dont get why. Could someone explain.
[1 reply] : Those operators work as expected within the terminating condition of a... (by shacktar)
Guess the Number
 
I made this probability game for my school gr.6 project. You guess the number that the computer has randomly generated. It will ask questions about probability ...
[no replies]
by SekalN
Error issue
 
Here is a program I wrote for an assignment, there is an error that I tried for days to fix but with no luck. I know where it is but I dont know why the error s...
[4 replies] Last: Can you explain a little more? I'm new at this and is very confused ... (by SekalN)
by Lej
Very simple question..
 
I am trying to write a program that stores all the prime numbers up to 1000 in an array.. I can do that.. but when it's doing the check to see if it's prime, if...
[3 replies] Last: [quote=Lej]But how would I just not store it in the array to begin wit... (by atropos)
March 2012 Pages: 1... 4647484950... 71
  Archived months: [feb2012] [apr2012]

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