The Dog You have to excuse me I am a little new at this can you help me apply this to my function?
Swoopy, no I have index from earlier in my program its a string I need to compare from an input...
Type: Posts; User: 3kgt
The Dog You have to excuse me I am a little new at this can you help me apply this to my function?
Swoopy, no I have index from earlier in my program its a string I need to compare from an input...
Hey guys I can get this to compile, but the results should come back as 0 or 1 but if i try to output the results of c1 or c2, I get -44 or 8, which does not make sense. What might be wrong with...
What do you think? I have to turn this in by midnight and its getting nowhere. Do you have AOL instant messanger or yahoo or MSN or something, I could really use some one on one I am so close.
I can get this to compile but i am getting a segmentation fault error what do you think about the getline fxn now?
//Name: Joseph Valenzuela
//Date: 04/28/03
//Purpose: The driver for...
Ok I got my header and definition files finally worked out and now I just need help with the driver here is the driver.
#include <string.h>
#include <iostream.h>
#include <fstream.h>...
driver
#include <string.h>
#include <iostream.h>
#include <fstream.h>
#include <stdlib.h>
#include "building.h"
definitions building.cpp
#include <string.h>
#include <stdlib.h>
#include <iostream.h>
#include "building.h"
void building::intLocationOne(char location1[10])
Here are all my compnents to my program, the driver file, the header file for building and the definitions for building. I am getting seven compiler errors for the building.cpp the definitions, it...
Thanks for your help with my program, it looks like I have an older compiler and it doest have the string type included in its libraries.. So I will have to change everything to char location1[]...
In the driver file if I had 12 different directions, so there are 36 lines in my txt file. is this how I would write the code for the for loop? How do I tell the program to get to other buildings...
Perspective
After thinking this out for awhile and reading this pseudo code you gave me It has been very difficult for me to implement the program. In this class route that you gave me what...
Here is what I have for my function to multiply the matricies, but it doesnt compile and I am haveing trouble knowing what parameters I need for the fxn call...
int matrixMultiply(int...
I am having trouble writing a function to multiply two matricies together. Here is what I have so far, what needs to be done? The fxn is called matrixMultiply. Another question on my printArray fxn...
Thanks alot for your help I will try to think about it some more and possibly e-mail you if thats ok with you? Any other ideas, or suggestions would be appreciated. Thanks again!!
...
Oh sorry I was confused about the way you wrote stadard IO. So what your saying is I could store the different routes in the input file, and create a class of building, and give it characeristics...
Hey thanks for the help, I am in a 1st semester C++ class here at the Colorado School of Mines, I dont think I have used StandardIO or Path algorithms or nodes. Do you think I could just do routes to...
I have to design and inplement a project that makes use of classes, arrays, input files, functions etc.. I need an original unique ideas. I was think maybe street directions to my campus, calculus...
What I have to do is create a fxn called bubbleSort and a helper fxn called swap. bubbleSort takes two parameters, an array of doubles and a size, and puts the list in descending order. Swap takes...
Hey I got it guys dont worry about it. Thanks
here is the whole program...
//Name: Joseph Valenzuela
//Date: March 11, 2003
//Purpose: To design and implement my own program for project1.
#include <iostream.h> // For output to the...
Hey thanks that fixed it and now it compiles correctly but how come it doesnt return anything, it returns 0 every time, is there something wrong with the code?
Ok guys here is what I came up with for my median function, but I am still getting a compiler error saying that it expects a statement before the else? How should I fix that?
double median...
Hey thanks for trying to help me out with that, I am trying the call by refrence right now, I dont think I can compute the median that way because we haveent learned the algorithm or vector...
If I wanted to compute the median of all the numbers in my input file, in this program what would be the best way to go about this? Thanks!
In my first function "compute" if I want to return the values of "sum" and "sum_of_squares" in main what do I have to do?
//Name: Joseph Valenzuela
//Date: March 11, 2003
//Purpose: To design...