Beginners - March 2012 (Page 51)

Can't figure out what's going wrong in my loop...
 
For some reason my calculations are correct for this loop when the generations are less than the inp...
[1 reply] : Working with ints means you get round-down errors. Work with doubles u... (by LB)
by JJ247
help with counter
 
Hiya! How would I go about writing a statement for the following case? 1. Use a counter named ico...
[3 replies] Last: The question is trying to lead you into something known as a "loop". A... (by Moschops)
random num inside of a nested loop
 
Hi! I have this program and it is running but there is an error..I think I might need to use arrays ...
[1 reply] : Place srand(time(0)); before thr loop srand(time(0)); for ... (by vlad from moscow)
Help Improving my Map Generator (Drunkard)
 
So I'm trying to create a map generator which creates cave-like areas connected by pathways. I'm pre...
[4 replies] Last: Oh man good point, I'll probably take the easy way out and make the ou... (by WhiteWind)
Highest and lowest string in array
 
I have two problems that I am stuck on. First the total accumulator is all over the place. one time ...
[7 replies] Last: I see what I did wrong. Thanks for the help. (by Socratezz)
Help with functions
 
Hi guys. I need to take the following code and create these functions for an assignment: 1. void...
[5 replies] Last: Oops. I meant number 4. I have no idea on 2 and 3. (by LB)
by nars14
understanding errors
 
Hey, i am doing a school project and i find myself struggling with c++. i was given a .txt file wi...
[1 reply] : getline() takes two arguments. The first one is the stream to get the ... (by LB)
Julian day
 
How would you go about getting the current julian date based off of the current time on the OS?
[1 reply] : A simple google search found the answer for me. I had to even learn wh... (by ResidentBiscuit)
Help Please
 
Help me please i need to write a program and have no idea how to get this started if anyone has any ...
[5 replies] Last: so far this is what i have i havent been able to compile it to see if ... (by puma739)
<badptr> Error when Reading From Binary File
 
Hello everyone, In my application, I keep students' records in a struct as struct Record {...
[10 replies] Last: Should be. The string template has it's own overloaded operator>> an... (by ciphermagi)
String array
 
I am trying to get this program to input my names to run with the number of students I input. Howeve...
[8 replies] Last: This works... #include <cstdlib> #include <iostream> #include <s... (by Subzero030201)
Converting to Julian Date
 
Hey guys, I'm trying to take a date and convert it to a Julian number so that I can construct a sch...
[2 replies] Last: Aha! Thanks! (by ErinCorona)
Help
 
OK I need to make a program that determines how many numbers are prime from an array of 5 ints. ...
[1 reply] : The main thing that I see is that p is not initialized. Initialize it ... (by Stewbond)
HELP
 
int main() { std::string SPEACH; std::string WOrt; std::string KUNDE; std::string KUNDE...
[11 replies] Last: Ich bin mir nicht sicher, wie man es besser oder anders zu erklären .... (by ciphermagi)
by arooj
How to display highest value in a two part two dimensional array?
 
I'm completely lost on how to do this. //mid/final.cpp – displays the highest score earned...
[1 reply] : for (x = 0; x < 10; x++) if (scores > highest_midterm) highes... (by Stewbond)
Using int and string?
 
In my function find_lettergrade I need to determine a grade based off of the score entered. I also n...
[5 replies] Last: thanks so much (by Algar32)
by hvigil
for loop dice 21
 
Heloo im trying to make this program function the player has to win two rounds of dice 21 in order t...
[8 replies] Last: Or win 2 games if you roll either 21 or find out your next number woul... (by hvigil)
Help with STL const_iterators
 
Hi I am upgrading from VC++ 98 to VC++ 2010 Express and apearently there have been some changes t...
[3 replies] Last: Ok i get it now. As u said the keys of a set are somehow made readonly... (by blubbersprudel)
I/o Problems..
 
So for this program... I'm trying to read from a .txt file in a very specific format. I have a funct...
[13 replies] Last: I'm pretty sure that it's not entering the for loop. Track your data t... (by ciphermagi)
Mitigate stack overflows?
 
A friend and I have written a basic Proth number tester that asks for k and an upper/lower bound of ...
[1 reply] : Hmm, isn't your pow() calling itself recursively until a stack overflo... (by bartoli)
March 2012 Pages: 1... 4950515253... 71
  Archived months: [feb2012] [apr2012]

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