Forum: C++ Dec 14th, 2004 |
| Replies: 0 Views: 4,865 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 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 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 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 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 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 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 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 |
Forum: C++ Sep 29th, 2004 |
| Replies: 20 Views: 4,362 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 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 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 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 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 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 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 |
Forum: C++ Sep 28th, 2004 |
| Replies: 20 Views: 4,362 |
Forum: C++ Sep 28th, 2004 |
| Replies: 20 Views: 4,362 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 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 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 |
Forum: C++ Sep 28th, 2004 |
| Replies: 20 Views: 4,362 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 |
Forum: C++ Sep 28th, 2004 |
| Replies: 22 Views: 3,738 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 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 |
Forum: C++ Sep 28th, 2004 |
| Replies: 22 Views: 3,738 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 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 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 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 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 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 |
Forum: C++ Sep 27th, 2004 |
| Replies: 22 Views: 3,738 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 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 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 |
Forum: C++ Sep 27th, 2004 |
| Replies: 22 Views: 3,738 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 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... |