Search Results

Showing results 1 to 40 of 40
Search took 0.01 seconds.
Search: Posts Made By: coolmel55
Forum: C++ Dec 14th, 2004
Replies: 0
Views: 6,939
Posted By coolmel55
I need to create a function that will allow me to print a hash table below is my code. There are 5 files all together: main.cpp, hash.h, hash.cpp, rec.h, rec.cpp.



#include <iostream>...
Forum: C++ Nov 3rd, 2004
Replies: 0
Views: 1,824
Posted By coolmel55
Need a bit of help formatting my output. I'm not even sure that this can be done. The output from the following code looks like this:

Here is your output!
********************
rval = 0.954316...
Forum: C++ Oct 25th, 2004
Replies: 0
Views: 1,962
Posted By coolmel55
Here is a link to the actual assignment http://bluehawk.monmouth.edu/~rscherl/Classes/CS503/hw2.pdf.
At this point I am able to build the linked list from a users input string as well as display...
Forum: C++ Oct 4th, 2004
Replies: 9
Views: 18,919
Posted By coolmel55
How do I compare what is in one array with what is in another array?
Forum: C++ Oct 3rd, 2004
Replies: 1
Views: 2,189
Posted By coolmel55
:eek: I have revised my program and am getting a run time heap error. Any ideas on what I need to fix?


#include <iostream>
#include <assert.h>
#include "rectangle.h"
using namespace std;

...
Forum: C++ Sep 30th, 2004
Replies: 22
Views: 4,608
Posted By coolmel55
Ok soo it appears that this program maybe a little easier than I was making it, but nothing new. I sometimes make things a lot harder than they need to be. I don't have to take user input for this...
Forum: C++ Sep 30th, 2004
Replies: 4
Views: 3,263
Posted By coolmel55
Try something like this!



#include <fstream> //include this standard template library

char filename[16]; //declare a variable string this one is 16 characters long
string line; ...
Forum: C++ Sep 30th, 2004
Replies: 2
Views: 2,086
Posted By coolmel55
#include <iostream>
#include <cmath>

using namespace std;

void ftoc(double farenheit, double& temperature); //Gets input in farenheit, makes conversion to Celsius, displays results.

void...
Forum: C++ Sep 30th, 2004
Replies: 3
Views: 5,981
Posted By coolmel55
Not a problem wanted to know if it worked out for you?

Melinda
Forum: C++ Sep 29th, 2004
Replies: 20
Views: 5,289
Posted By coolmel55
/* Contains implementation of all functions associated with the Lines Class */
#include <stdio.h>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include "loc.h"...
Forum: C++ Sep 28th, 2004
Replies: 20
Views: 5,289
Posted By coolmel55
/* Contains implementation of all functions associated with the Lines Class */
#include <stdio.h>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include "loc.h"...
Forum: C++ Sep 28th, 2004
Replies: 4
Views: 2,309
Posted By coolmel55
What is the difference between a method and an object?

Isn't this a method?

void Standard::print_results()

What denotes an object?? CONFUSED!
Forum: C++ Sep 28th, 2004
Replies: 20
Views: 5,289
Posted By coolmel55
Now the trick is that I have to print out the object name and method counts for each object.

So I would have to use:
// If found, add here
pos = line.find("::");
if...
Forum: C++ Sep 28th, 2004
Replies: 20
Views: 5,289
Posted By coolmel55
/* Contains implementation of all functions associated with the Lines Class */
#include <stdio.h>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include "loc.h"...
Forum: C++ Sep 28th, 2004
Replies: 20
Views: 5,289
Posted By coolmel55
#include <stdio.h>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include "loc.h"
using namespace std;


//Constructor, initializes necessary variables
Forum: C++ Sep 28th, 2004
Replies: 20
Views: 5,289
Posted By coolmel55
Now I need to be able to count the total LOC in each object of the program as well as the number of methods in each object. I also need to get the name of the object.

HELP!!
Forum: C++ Sep 28th, 2004
Replies: 20
Views: 5,289
Posted By coolmel55
Never mind I did something stupid

THANKS a million!!!
Forum: C++ Sep 28th, 2004
Replies: 20
Views: 5,289
Posted By coolmel55
Not to be a pain now how do you read from an input file line by line
Forum: C++ Sep 28th, 2004
Replies: 20
Views: 5,289
Posted By coolmel55
Stuck again!! I'm going to quit soon!


/* Contains implementation of all functions associated with the Lines Class */
#include <stdio.h>
#include <iostream>
#include <iomanip>
#include...
Forum: C++ Sep 28th, 2004
Replies: 20
Views: 5,289
Posted By coolmel55
I would definately appreciate the explaination, it's one thing to copy and paste but I need to understand.
Forum: C++ Sep 28th, 2004
Replies: 20
Views: 5,289
Posted By coolmel55
Ok soo it appears that I have to change my whole program as I'm off track right?

It bums me out that I spend time and then have to start over!
Forum: C++ Sep 28th, 2004
Replies: 20
Views: 5,289
Posted By coolmel55
Could you explain what you did to me as I don't understand completely?
Forum: C++ Sep 28th, 2004
Replies: 20
Views: 5,289
Posted By coolmel55
How do I find for example ; in the file now?



/* Contains implementation of all functions associated with the Lines Class */
#include <stdio.h>
#include <iostream>
#include <iomanip>...
Forum: C++ Sep 28th, 2004
Replies: 20
Views: 5,289
Posted By coolmel55
how do you read in a text file char by char a store in a string?
Forum: C++ Sep 28th, 2004
Replies: 22
Views: 4,608
Posted By coolmel55
Still getting the errors.

wouldn't using namespace std; handle the using std::min;
using std::max;
Forum: C++ Sep 28th, 2004
Replies: 22
Views: 4,608
Posted By coolmel55
Getting these errors:

error C2664: '__thiscall Rectangle::Rectangle(const class Rectangle &)' : cannot convert parameter 1 from 'const int' to 'const class Rectangle &'
Reason: cannot convert...
Forum: C Sep 28th, 2004
Replies: 3
Views: 1,600
Posted By coolmel55
Are you using the

#ifndef CTRL-X_H
#define CTRL-X_H

#endif
Forum: C++ Sep 28th, 2004
Replies: 22
Views: 4,608
Posted By coolmel55
Yes that is what I need to do but I'm having difficulty with the class and the private data members as I'm required to have the pointer to the dynamically allocated array as a private data member and...
Forum: C++ Sep 28th, 2004
Replies: 0
Views: 3,169
Posted By coolmel55
Ok I wrote this program a while ago and it just counts the line, now I need to modify it to these requirements:

Count the total program LOC, the total LOC in each object the program contains, and...
Forum: C++ Sep 27th, 2004
Replies: 22
Views: 4,608
Posted By coolmel55
but I can't write my own function according to the instructions given we can only use the functions he is giving us?
Forum: C++ Sep 27th, 2004
Replies: 22
Views: 4,608
Posted By coolmel55
http://bluehawk.monmouth.edu/~rscherl/Classes/CS503/hw1.pdf

This is the actual assignment
Forum: C++ Sep 27th, 2004
Replies: 22
Views: 4,608
Posted By coolmel55
Thanks Stack,

That makes perfect sense except I re-read the assignment and the part that I'm stuck with is that the rectangle we are going to print has two sets of points (x1, y1, (x2, y2) these...
Forum: C++ Sep 27th, 2004
Replies: 22
Views: 4,608
Posted By coolmel55
Had a chance to implement the dynamically allocated array but I did it in main and I'm supposed to add it in the private data memeber section of the Rectangle class.

#include <iostream>
#include...
Forum: C++ Sep 27th, 2004
Replies: 3
Views: 5,981
Posted By coolmel55
Try something like this! Remember to #include <list>

void Standard::get_list()
{
char filename[16];
char variable;

cout << "Please enter a filename: ";
cin >> filename;
Forum: C++ Sep 27th, 2004
Replies: 22
Views: 4,608
Posted By coolmel55
I got the print_rectangle function implemented and working. Now I'm supposed to have a pointer to a dynamically allocated array of points as a private data member and I'm a little stuck with this...
Forum: C++ Sep 27th, 2004
Replies: 7
Views: 2,431
Posted By coolmel55
Can you use a sentinal value, like ask the user to enter values and q to quit sort of thing?
Forum: C++ Sep 27th, 2004
Replies: 22
Views: 4,608
Posted By coolmel55
Need more help I got the program to compile with 0 errors!!!

Now I asked the user for two sets of (x,y) coordinates and I would like to print the rectangle. Can someone help me implement the...
Forum: C++ Sep 27th, 2004
Replies: 22
Views: 4,608
Posted By coolmel55
Never mind I got it thanks
Forum: C++ Sep 27th, 2004
Replies: 22
Views: 4,608
Posted By coolmel55
Umm I don't understand what you are saying Dave, I'm just curious why I'm getting that error.

Thanks
Forum: C++ Sep 27th, 2004
Replies: 22
Views: 4,608
Posted By coolmel55
I'm very new at this but I'm getting some weird error:

unexpected end of file while looking for precompiled header directive

I don't have much yet but here it is:

#ifndef RECTANGLE_H...
Showing results 1 to 40 of 40

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC