It worked before I had to add the fractions together.
Type: Posts; User: nesagsar
It worked before I had to add the fractions together.
My programs have to be really simple.
My compiler is really old.
Yeah I know. I had to essentialy throw out the old program because my teacher said it was to advanced for my class. Now I have this.
it is giving me wrong output.
#include <iostream.h>
void addfraction (int w, int x, int y, int z, int& newnumerator, int& newdenominator)
{
int number1, number2;
number1=w*z;
...
I got the sort function to work! yay us!
Now, where do I make the call to the search function?
#include <iostream.h>
#include <string.h>
#include <fstream.h>
Hello?
I have a sequential queue program that was supposed to be a linked queue program.
How do I change it to be correct.
#include <iostream.h>
void enqueue (char queue[maxqueue], int& front,...
How do you make a binary tree?
oops.
#include <iostream.h>
#include <conio.h>
const max=10;
int Max=10
Well, here is my new stack program code. It needs a lot of work.
Also, now I have to do both a sequential stack AND a linked queue.
here is the new code
#include <iostream.h>
int GCD(int a, int b )
{
int remainder, quotient, divisor, numerator;
if (a > b)
is that here
{
if(table[count_2]>table[count_2+1])
{
meaning you meant this?
My teacher has informed me that this program is not acceptable becasue it is object oriented and we were not taught that. Now I have to figure out how to do this simpler and I am running out of time...
#include <iostream.h>
int GCD(int a, int b )
{
int remainder, quotient, divisor, numerator;
if (a > b)
{
remainder=a%b;
quotient=a/b; divisor=b;
}
Alright, I fixed that.
I got an email from the teacher. He wants us to add two fractions together and simplify now. if he keeps adding stuff to our assignments we will never get it done.
this is the new code.
#include <iostream.h>
int GCD(int a, int b )
{
int remainder, quotient, divisor, numerator;
if (a > b)
where is that?
#include <iostream.h>
#include <conio.h>
const max_length=10;
#include <iostream.h>
#include <string.h>
#include <fstream.h>
// this program is supposed to read a list of names from a file and then bubble sort them alphabeticaly
// and allow for binary...
I changed the ctrcpy lines to strcmp and I complied. Now I have these errors.
Info :sort and search hoskins beta v1.cpp: build due to .OBJ dependency sort and search hoskins beta v1.cpp
Info...
thanks, the conversion error is gone. The other one is still there though.
Do you have an example of how to fix it?
Do you have an example of the fix on that one?
So is that why my sort routine dosent actually sort the names in the file?