Seems I can't change the title now.
Type: Posts; User: Guru_
Seems I can't change the title now.
It doesn't display the cost correctly. It just calculates the total x without taking into account the discount. What would I have to change/add to get the total cost after it calculates the discount?...
:eek:what?
Parts of the code I didn't post. The main trouble I have is on the if else then part
Fixed!
D'oh xD
Thanks for everyone's help.
I don't end up with the same results.
[QUOTE=dwks;888729]I get two solutions from my methods, and presumably the first one is invalid (it starts with a 0). I first used an extremely inefficient brute force method, the bulk of which looks...
Forgot the 4. There should be only solution but the answer I'm getting doesnt match.
I only get 2 solutions.
This is what I have for part of the loop.
if((100*T+10*O+O)==1000*G+100*O+10*O+D)
Solved. Thanks for everyone's help >3
Actually I have it defined, I just didnt paste it xD
int count_file_values(char input_filename[]);
void load_array_from_file(char input_filename[], int things[], int array_size);
void...
I’m trying to code a program that displays the alphabet in alphabetical order. The file has the letters in random order and then I coded to where its in alphabetical order. The problem is when I...
I understood the avg = sum part, but what did you mean before that?
How do I find the average of the values that are within the array? I was planning on using interger division since I'm using interger values.
#include <iostream>
#include <fstream> ...
The problem I have is how to do a switch where I have to call the certain choices.
int main(void)
{
do
{
cout << "Hello there ." << endl;