Beginners - October 2015 (Page 30)

Calculating Rate of Shipping Company program
 
The Fast Freight Shipping Company charges the following rates: Weight of Package (in Kilograms) Rate per 500 Miles Shipped 2 Kg or less $1.10 Over 2 Kg...
[1 reply] : I have no idea what you are doing wrong either, excluding your origina... (by closed account 48T7M4Gy)
by Edgy
Comparing Integers to Same Array Twice
 
I know where the problem is but am still confused. When I run this program the lastCloseness variable stays at 57 every iteration. This is strange because th...
[1 reply] : See line 82 and comment on line 81. (by helios)
Error C2679. Need help fixing it.
 
Hi! I'm trying to write a simple code where I test the inheritance of a class and two derived classes. I am a beginner and my professor wants to keep it simple....
[4 replies] Last: Sorry I called the function wrong. So this is it: int main(void) { ... (by brownjas)
C++ errors
 
Heyo, I'm new to C++ and I'm having trouble having the function grab two random integers between 1-12 to spit out an equation. #include <iostream> #in...
[6 replies] Last: How, in the generation, can I exclude the previous outputted numbers? ... (by Rhenzo51)
by bigjes
using enum indexed array
 
I'm attempting a program with an array indexed by and enum. I will need user input to determine which part of the multiple dimensioned array to use. My problem ...
[4 replies] Last: My fear is that he may think that I've "stolen" the code. However, if ... (by bigjes)
stack
 
Hello everyone. I'm now writing a code that does some actions with a stack. Actually it's ok, but I have a problem here. I have a stack and I need to copy its e...
[2 replies] Last: Thanks so very much. Sorry for the delay (by The suffocated)
Switch Statement Won't Run?
 
I've been working on this code for hours trying to find a reason why my switch statement won't run and I've run out of ideas. Anyone see what the issue might be...
[2 replies] Last: Ahh yeah my professor did say something about Case C not going to be n... (by dvarona1)
PayStub Help
 
}
[5 replies] Last: Thank you for the help kbw. I am sorry it did work. (by jolley1002)
For Loop Confusion!
 
Hello, Im working through some for loops trying to get the concept in my head but unfortunately I just cant seem to understand them enough to print a shape like...
[3 replies] Last: @zacklucky: actually I wouldn't have the asterisk printing code inside... (by LB)
Help me, to search factor O(log n)
 
can you help to search how many odd number at Numbers of Factor ex : number 8 have factor 1,2,4,8 , result 1 number 9 have factor 1 3 9 , result 3 ...
[1 reply] : http://www.cplusplus.com/forum/beginner/27855/ just adapt it to consid... (by ne555)
NEED ASSISTANCE WITH ERRORS
 
Write your question here. // ImageComponents #include <iostream> #include "Position.h" #include "ArrayQueue.h" using namespace std; void labelComponents(in...
[4 replies] Last: You've made Q templated on int , so Q->dequeue() is going to retu... (by MikeyBoy)
NEED ASSISTANCE WITH ERRORS
 
The following code is giving me the following error Error description : Unhandled exception at 0x00DC5D81 in ImageComponent2.exe: 0xC0000005: Access violatio...
[2 replies] Last: Line 81 (ImageComponents): here will never be NULL while x might b... (by coder777)
How can I delete a node from anywhere in a linked list?
 
I know how to remove a node from the front of a singly linked list, but I have no idea how to remove one from any arbitrary location. In my specific problem,...
[10 replies] Last: Change line 27 to check whether removeAge is the age in question. Als... (by dhayden)
How to exit when different data type is entered.
 
Hello I'm currently trying to write a program that prompts the user to enter alphabets (letters: a, b, c, d etc..) and the program will output an error msg w...
[2 replies] Last: Also, is there a way to do multiple assignments within one loop, for ... (by coder777)
exception not working
 
Well it sort of works but only with integers... The problem is that as I soon as I put a character or string of sort as a response it goes haywire and loops inf...
[7 replies] Last: It makes no sense to throw and catch within the same place. why not li... (by coder777)
Trying to compare two files, each with two datasets, line by line to look for similarities in one dataset [Homework]
 
I have two files, HourlyRate.txt and HoursWorked.txt each file has an employee ID number, and either their hourly pay rate or how many hours they worked that pa...
[1 reply] : You can solve that with stringstream: http://www.cplusplus.com/refere... (by coder777)
Question: Prompt user for a list of numbers.
 
Hi everyone, I would like to know if it's possible to write a program that will allow the users to input the "amount" of number that they wish to enter, and th...
[1 reply] : Something like this? #include <iostream> #include <vector> #include ... (by Ch1156)
loops, arrays
 
So I am trying to save 15 user entered numbers into an array (to eventually find the average of them), Im having some real trouble. Here is what ive got so far...
[2 replies] Last: Wow, thank you! (by b29hockey)
Creating a class - code won't compile
 
Solved
[7 replies] Last: Hi, What does putting the semi colons in front do? I know it's meant... (by TheIdeasMan)
What is the purpose of bool?
 
Hello, I just want to ask a question, as a beginner in c++ programming what is the purpose of bool? Like, can I see a sample code that illustrates what bool is ...
[1 reply] : This code hasn't been completed nor is it close to, compiling will sup... (by Radar)
October 2015 Pages: 1... 2829303132... 57
  Archived months: [sep2015] [nov2015]

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