No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I need to make a program which uses 3 parallel numeric arrays, references each other, then displays the price and quantity of the supplied product id. It gives me an error message on line 36 about my != searchforID, can anyone enlighten me as to why? [code=C++] //Ch11AppE12.cpp //Displays the … |
|
For some reason, my numbers aren't adding in correctly and it's taking the -1 sentinel value and adding it into the total. [code=C++] // worthless testing.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> using std::cout; using std::cin; using std::endl; int main() { int … |
|
Hello again, My assignment is to calculate a 10% bonus based on sales figures. I have to use a main() function, obviously, and 3 void functions, getSales(), calcBonus(), and displayBonus(). I'm pretty sure I have the functions coded correctly, I'm just having some issues getting them to actually run correctly … |
|
Alright, my homework assignment is by using separate function definitions convert a temperature from Fahrenheit to Celcius. I've looked over the whole chapter, looked at the examples, and am having trouble somewhere. My program will only convert one temperature correctly to Celcius, which is 32, because it always returns a … |
|
Hi there, I'm new to the site and new to learning C++. The program I am writing is for a C++ college class, and I'm just having a little trouble on if I am formatting the if statements I am using correctly. I'll give a breakdown of the assignment. I … |