Beginners - October 2013 (Page 66)

Homework help
 
Need help with the user friendly functions and how to ask the user if they want to play again. The assignment: An elementary school teacher is looking for ...
[6 replies] Last: Why isn't numbers used when checking the answer? The switch () ... (by Chervil)
STL containers vs queues through linked lists
 
1) What is the difference between queues developed through linked list concept and STL containers? 2) In linked list concept we use pointers while in STL co...
[2 replies] Last: What is the difference between queues developed through linked list c... (by Catfish4)
for loop?
 
Hi everyone! I need help with a loop...I believe the one I need to use is a for loop but I might be wrong. Basically the program needs to count every min...
[4 replies] Last: I agree with giblit , a for loop is good when the number of iteration... (by TheIdeasMan)
avoid switch crash
 
Hey folks, I've already turned in this assignment as it fulfills the requirements. I was just wondering if anyone knew how to make it so that users can inpu...
[2 replies] Last: For example function to validate input: #include <iostream> #include ... (by MiiNiPaa)
by layzer
Help with getting functions to work
 
So for my homework i have to create 3 files, a main, a functions, and a header file. The program is supposed to calculate the charges for a internet company ba...
[10 replies] Last: This will work also double validpck() { if ((pck == 'a... (by admkrk)
while loop not reading "\n"
 
how do i stop the loop? int main() { string str; while(str != "\n") { cout<<"Insert data or a blank line to quit:\n"; getline(cin,str); //run code...
[2 replies] Last: ah I see. Totally forgot about that .empty() function.. Thanks (by jorellc)
Help with "error: expected `;' before '{' token"
 
Despite trying to follow the conventions for a void function, I still have an issue with the bug at line 17 that is going to keep me from finishing this assignm...
[5 replies] Last: thanks all. (by cpplease)
A dynamic 'vector' container that cannot be resized
 
Is there a container like std::vector that is guaranteed not to be resized or re-allocated? I would like to take pointers to objects stored in the vector, but I...
[2 replies] Last: Why not a vector of pointers to objects? Makes more sense to me. Or ev... (by xismn)
How to copy constructor with unique_ptr in Linked Stack
 
So, moving from Linked List, I now have to build a Linked Stack, which I think is pretty much similar to it. However, I get an access error, saying that cannot ...
[5 replies] Last: Instead of this:[code firstline=11] LinkedNode(T newElement, un... (by LB)
Problem with switch structure
 
Can anybody tell me what is my problem here? #include <iostream> #include <iomanip> using namespace std; int main() { char medium ; int distance...
[7 replies] Last: integer divided by integer returns integer. Throw a float in there and... (by giblit)
Starting to get annoyed with this
 
Im not sure whats wrong with my code but I've tweaked it like 20 times. Can anybody help me? I feel like I'm missing something obvious. //Shipping Widgets...
[4 replies] Last: @Hedgehog Ninja Sorry 'bout that ;) I guess the saying is true, then... (by whitenite1)
Need Help with Part 2
 
ok, so im doing a c++ programing class at my online school, right now, it needs me to make a second version of the tic tac toe program i just made, and have pla...
[7 replies] Last: nvm, figured it out, just replaced all the code for the else in the ge... (by logoster)
by AGZZ21
C++ 3 dice rolls with only 1 int?
 
I'm doing a project of a crown and anchor game where you basically bet on a side of a dice and if you guess correctly you win or vice versa. I've done most of t...
[3 replies] Last: for(int x = 0; x < 3; x++) { //dice roll code } while(//us... (by GRex2595)
Why is my program crashing?
 
My program was basically made to prompt the user for a positive integer and tell the user whether the number is deficient, perfect, or abundant. It should conti...
[1 reply] : Line 30. Division by zero. See if you can step through the program and... (by booradley60)
by Wakobu
Do-while Beginner Question
 
Hi there, I'm new to the forums here so forgive me if there is some Code of Conduct I'm not following. I just needed help with my code, for I am, a beginner...
[3 replies] Last: why doesn't it work if I declare it inside the loop? By creating va... (by Uk Marine)
Creating a new object within a function implementation for that class.
 
Just trying to make a new object temporarily for swamping values. It's not liking what I'm doing. Errors here: http://imgur.com/nE01yZ6 template<typename T> ...
[3 replies] Last: Try it this way: template<typename T> void MyVector<T>::swap(MyVector<... (by norm b)
by brillo
Producer and Consumer problem
 
Hey guys I am working on a producer and consumer problem where a producer will produce 5 random numbers and put it on a global array and a seperate consumer fun...
[2 replies] Last: It worked! Thanks for your help. (by brillo)
Array Based Deque
 
i need to create an array-based deque implementation. It should not use shifting, it needs to allow the items to move around the interior of the array. I have n...
[7 replies] Last: That is really difficult to read. (by GRex2595)
Homework help
 
I am having trouble understanding my teacher's explanation. I need help with this assignment. 3.Given the following coded function double calcBonus( int ...
[6 replies] Last: I can figure out this: double calcAverage(double value1,double valu... (by eyenrique)
if/else syntax question
 
Good evening everyone. The following is part of a code for a photocopy cost calculator program. I am having a hard time with the if/else part and I can't figur...
[2 replies] Last: Line 1 to 12 is where the user is supposed to choose what paper format... (by Annatar)
October 2013 Pages: 1... 6465666768... 86
  Archived months: [sep2013] [nov2013]

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