Showing results 1 to 40 of 40
Search took 0.01 seconds.
Posts Made By: coolmel55
Forum: C++ Dec 14th, 2004
Replies: 0
Views: 4,865
Posted By coolmel55
Printing a Hash Table

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>
#include...
Forum: C++ Nov 3rd, 2004
Replies: 0
Views: 1,573
Posted By coolmel55
formatting help

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
tval...
Forum: C++ Oct 25th, 2004
Replies: 0
Views: 1,587
Posted By coolmel55
List help

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: 11,828
Posted By coolmel55
Comparing arrays

How do I compare what is in one array with what is in another array?
Forum: C++ Oct 3rd, 2004
Replies: 1
Views: 1,675
Posted By coolmel55
Heap problem at run time

: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...
Forum: C++ Sep 30th, 2004
Replies: 22
Views: 3,738
Posted By coolmel55
Re: A little Help

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: 2,252
Posted By coolmel55
Re: need help in creating simple line editor

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; //decalare a...
Forum: C++ Sep 30th, 2004
Replies: 2
Views: 1,728
Posted By coolmel55
Re: Plz. Help me get my program to work

#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: 4,649
Posted By coolmel55
Re: How to read in a sentence and insert in to linked list?

Not a problem wanted to know if it worked out for you?

Melinda
Forum: C++ Sep 29th, 2004
Replies: 20
Views: 4,362
Posted By coolmel55
Re: Easy one (I think)!

/* Contains implementation of all functions associated with the Lines Class */
#include <stdio.h>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include "loc.h"
using...
Forum: C++ Sep 28th, 2004
Replies: 20
Views: 4,362
Posted By coolmel55
Re: Easy one (I think)!

/* Contains implementation of all functions associated with the Lines Class */
#include <stdio.h>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include "loc.h"
using...
Forum: C++ Sep 28th, 2004
Replies: 4
Views: 1,950
Posted By coolmel55
Need to know the difference

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: 4,362
Posted By coolmel55
Re: Easy one (I think)!

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 (pos...
Forum: C++ Sep 28th, 2004
Replies: 20
Views: 4,362
Posted By coolmel55
Re: Easy one (I think)!

/* Contains implementation of all functions associated with the Lines Class */
#include <stdio.h>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include "loc.h"
using...
Forum: C++ Sep 28th, 2004
Replies: 20
Views: 4,362
Posted By coolmel55
Re: Easy one (I think)!

#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: 4,362
Posted By coolmel55
Re: Easy one (I think)!

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: 4,362
Posted By coolmel55
Solution Re: Easy one (I think)!

Never mind I did something stupid

THANKS a million!!!
Forum: C++ Sep 28th, 2004
Replies: 20
Views: 4,362
Posted By coolmel55
Re: Easy one (I think)!

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: 4,362
Posted By coolmel55
Re: Easy one (I think)!

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: 4,362
Posted By coolmel55
Re: Easy one (I think)!

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: 4,362
Posted By coolmel55
Re: Easy one (I think)!

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: 4,362
Posted By coolmel55
Re: Easy one (I think)!

Could you explain what you did to me as I don't understand completely?
Forum: C++ Sep 28th, 2004
Replies: 20
Views: 4,362
Posted By coolmel55
Re: Easy one (I think)!

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>
#include...
Forum: C++ Sep 28th, 2004
Replies: 20
Views: 4,362
Posted By coolmel55
Solution Easy one (I think)!

how do you read in a text file char by char a store in a string?
Forum: C++ Sep 28th, 2004
Replies: 22
Views: 3,738
Posted By coolmel55
Re: A little Help

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: 3,738
Posted By coolmel55
Re: A little Help

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 from...
Forum: C Sep 28th, 2004
Replies: 3
Views: 1,332
Posted By coolmel55
Re: i need sm1 to help me with

Are you using the

#ifndef CTRL-X_H
#define CTRL-X_H

#endif
Forum: C++ Sep 28th, 2004
Replies: 22
Views: 3,738
Posted By coolmel55
Re: A little Help

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: 2,338
Posted By coolmel55
Help Counting lines

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: 3,738
Posted By coolmel55
Re: A little Help

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: 3,738
Posted By coolmel55
Re: A little Help

http://bluehawk.monmouth.edu/~rscherl/Classes/CS503/hw1.pdf

This is the actual assignment
Forum: C++ Sep 27th, 2004
Replies: 22
Views: 3,738
Posted By coolmel55
Re: A little Help

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 are...
Forum: C++ Sep 27th, 2004
Replies: 22
Views: 3,738
Posted By coolmel55
Re: A little Help

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: 4,649
Posted By coolmel55
Re: How to read in a sentence and insert in to linked list?

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: 3,738
Posted By coolmel55
Re: A little Help

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,128
Posted By coolmel55
Re: Help with loop

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: 3,738
Posted By coolmel55
Question

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: 3,738
Posted By coolmel55
Re: A little Help

Never mind I got it thanks
Forum: C++ Sep 27th, 2004
Replies: 22
Views: 3,738
Posted By coolmel55
Re: A little Help

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: 3,738
Posted By coolmel55
Help A little Help

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
#define...
Showing results 1 to 40 of 40

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 12:32 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC