Beginners - March 2016 (Page 4)

understanding the LCV in a Loop
 
How could I write a LCV to make my loop eventually false? #include <iostream> using namespace std; int main() { int firstnum, secondnum; int ...
[5 replies] Last: @kromari. Sorry for the confusion. keskiverto explained it better of w... (by chicofeo)
Drop Lowest, Calculate Average
 
I'm supposed to write a program with 3 functions included to ask for five test scores, find the lowest of the test scores and drop it, then calculate the averag...
[4 replies] Last: Thanks for the help! I see what I did wrong now. (by djr1599)
Working with void functions
 
Not real sure why my totals aren't coming out right? #include <iostream> #include <iomanip> using namespace std; double item = 0.0; double t...
[11 replies] Last: I got it now had to move the loop brackets around as well, thank you (by miah612000)
Linked List Outputting Issue
 
Write your question here. Hello again, I am having a problem with my linked list outputting zeros instead of inputted values. Can someone check what I did wr...
[no replies]
by Gr1m
If else statement question.
 
Write your question here. cout << "Enter the following information about your checking account." << endl << endl; cout << "Beginning balance: ...
[3 replies] Last: I figured out my dumb mistake, thanks guys. (by Gr1m)
Smallest Random Number Problem
 
My goal is to create a program that generates 10,000 random numbers between 0 and 25 and outputs the smallest number. I feel like I'm on the right track but nee...
[5 replies] Last: 1. Loop from 0 to 10000 (inclusive) is 10001 steps. 2. Line 19 makes o... (by keskiverto)
Working with files inside zip folders
 
Hi, I have been working with C++ for the past few months and I have recently been working on a program to search for a string in a text file, and replace that...
[no replies]
Paper, Rock, Scissors help
 
Hello, I'm new to C++ and struggling with my homework. I have to make a paper, rock, scissors game with functions. Here is the specifics of the assignment: ...
[3 replies] Last: I am new too but you may need to seed use the srand function? (by miah612000)
Shifting array elements to the right: why doesn't this work?
 
I'm pretty sure my code doesn't work 100%, but I don't even know how to check. I'm supposed to right a function that takes an integer array (arr ), its length (...
[1 reply] : Neither the code nor the algorithm make any sense. First, your code do... (by fredk)
Derived class move constructor
 
Hi, I got a bit confused about looking at this example in Scott Meyers book "Effective Modern C++". Here is the example class SpecialPerson: public Person{ p...
[3 replies] Last: Tnx you guys very much, putting this all together makes perfect sense ... (by etrusks)
by Bluez
Linked List output never ending loop
 
My extremely basic program to help me understand linked lists is driving me up the wall. It accepts the input perfectly, but when I try to step through the list...
[2 replies] Last: Thank you so much! I thought it had something to do with initializin... (by Bluez)
sorting in link list
 
not getting sorting output need help tomorrow is submission void sorting() { int tid=0,count=0; struct node *q; q=start; while(q!=N...
[4 replies] Last: Consider using a for loop for iterating the list: for (q = start; q !... (by dhayden)
operator overloading
 
i trying to full fill the code to run according to main function .. but how can i use operator overloading function according to main fuction ? #incl...
[1 reply] : Line 41: You have no default constructor. but how can i use operato... (by AbstractionAnon)
by Areey
Sum of prime numbers of an array
 
I'm trying to figure out where the problem is but im kinda lost.I'm not familiar with functions or vectors yet so i dont know? int main(){ int A , i,...
[2 replies] Last: AbstractionAnon that was a great explanation. thank you for sharing ... (by Areey)
Trouble with void functions, program not compiling correctly.
 
This is my first time creating a program using void functions. The program allows a user to enter an employees hours and pay rate to calculate gross pay. In the...
[4 replies] Last: so should I change the getTotalPay function? No there is nothing wro... (by jlb)
please help
 
Hello,I'am having trouble following this code can you explain this code step by step starting at the while loop Thank you #include <iostream> #include <cmath> ...
[4 replies] Last: Suppose n is 21. Then look what happens in the loop: while ( i <=... (by fredk)
Nested WHile Loops
 
After My first Topic. I think I should actually ask this question. Can someone explain to me how a nested while loop works, like with a diagram or something...
[2 replies] Last: https://www3.ntu.edu.sg/home/ehchua/programming/cpp/images/NestedForLo... (by DirtyDan)
Today date output as word
 
Hello everyone! I would like my output of the day be like this: Example today date is: Tuesday 12:00 MY current program output's 29 12:00 time_...
[2 replies] Last: Manipulator std::put_time http://en.cppreference.com/w/cpp/io/manip/... (by JLBorges)
by looky
content and graphics
 
how do you input graphics a car or colour, and is it worth memorizing c ++ syntax ?
[2 replies] Last: Regarding the syntax, create a little cheat sheet with the syntax (or ... (by dhayden)
Problem with recursion function
 
The recursion function int LinkedList::recurDist(Node* curr) on line 71 is supposed to calculate the sum of the distances from LGA to the airport code typed in ...
[5 replies] Last: Your function returned sum + recurDist(curr->prev) , but sum was ze... (by cire)
March 2016 Pages: 123456... 47
  Archived months: [feb2016] [apr2016]

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