Search:

Type: Posts; User: tallguy

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    1,294

    This is my clear() function: template...

    This is my clear() function:



    template <typename Object>
    void CircleList<Object>::clear()
    {
    CircleListNode<Object> *p = theBase;

    if ( p->next == 0 || p->next ==theBase)
  2. Replies
    8
    Views
    1,294

    operator= problems

    I am currently creating a circular linked class and I am having trouble with the operator= function. This is what I have.


    template <class Object>
    const CircleList<Object> &...
  3. Thread: Error Message

    by tallguy
    Replies
    6
    Views
    1,274

    Ok I got that error to go away but now I'm having...

    Ok I got that error to go away but now I'm having a problem in my main.

    The error says undefined reference to CircleList<int>::CircleList()

    Main File: http://rafb.net/p/C3Y5PO55.html...
  4. Thread: Error Message

    by tallguy
    Replies
    6
    Views
    1,274

    Ok so I changed the NULLS to 0's and this is my...

    Ok so I changed the NULLS to 0's and this is my error message now:
  5. Thread: Error Message

    by tallguy
    Replies
    6
    Views
    1,274

    Error Message

    I have these three files and I am obtaining the error message:
    NULL Undeclared.

    http://rafb.net/p/3u04E569.html
    http://rafb.net/p/hfzCT686.html
    http://rafb.net/p/oSxr5T24.html


    Anyone know...
  6. Replies
    4
    Views
    1,022

    But I'm doing that because I want to display it...

    But I'm doing that because I want to display it again on the next line as the first name.
  7. Replies
    4
    Views
    1,022

    Help with output

    void Graph::printPath( const Vertex & dest ) const
    {
    string m;
    if( dest.prev != NULL )
    {
    vector<Edge> e = (dest.prev)->adj;
    for(unsigned int i = 0; i< e.size(); i++)...
  8. Replies
    12
    Views
    1,316

    Well my program is pretty big but if any of you...

    Well my program is pretty big but if any of you want to look at the files to see if I am going wrong anyplace else here they are:

    Actor.cpp http://rafb.net/p/ubeLtL52.html
    Actor.h ...
  9. Replies
    12
    Views
    1,316

    Ok so in graph.h i have class Graph { ...

    Ok so in graph.h i have


    class Graph
    {
    public:
    Graph( ) { }
    Graph( std::vector<Actor> * d ) : data(d) { }
    ~Graph( );
    void addEdge( const ActorDB::tag & sourceName, const...
  10. Replies
    12
    Views
    1,316

    Ok so in graph.h I put std::vector *...

    Ok so in graph.h I put


    std::vector<Actor> * setActorList();

    and in graph.cpp I put


    std::vector<Actor> * Graph::setActorList()
    {
  11. Replies
    12
    Views
    1,316

    Where would the setActorList function to set the...

    Where would the setActorList function to set the pointer go?
  12. Replies
    12
    Views
    1,316

    Ok I believe my problem is that when I create my...

    Ok I believe my problem is that when I create my Graph object I am not passing it the correct reference to the vector.


    static Graph actorGraph;

    That is how I'm currently calling it which...
  13. Replies
    12
    Views
    1,316

    Ok I've got a new error now. void...

    Ok I've got a new error now.


    void Graph::printPath( const Vertex & dest ) const
    {
    if( dest.prev != NULL )
    {
    printPath( *dest.prev );
    cout << " was with ";
    }
  14. Replies
    12
    Views
    1,316

    Why am I getting this error?

    Below...
  15. Replies
    1
    Views
    1,251

    How to Improve?

    So I'm working on a project that solves the Kevin Bacon problem. The code works fine for a small file size, but I have to read in the entire IMDB movie database file, which contains thousands of...
  16. Replies
    17
    Views
    3,954

    Ok so here's my problem now.... #include...

    Ok so here's my problem now....


    #include "App.h"

    #include "Movie.h"
    #include "Actor.h"
    #include "ActorDB.h"
    #include "MovieDB.h"
  17. Replies
    17
    Views
    3,954

    Ok so I made actorGraph static. Now I have an...

    Ok so I made actorGraph static. Now I have an error in my actorConnections function:

    "undefined reference to Movie::actorGraph"

    I'm sure this has something to deal with it being static, so is...
  18. Replies
    17
    Views
    3,954

    I need one actorGraph for all the movies because...

    I need one actorGraph for all the movies because this is the Kevin Bacon problem, so I need connections(vertices) between all actors in all movies. I know, this will be a lot of edges.

    Yes I do...
  19. Replies
    17
    Views
    3,954

    This is actorConnections function in my...

    This is actorConnections function in my Movie.cpp file:


    void Movie::actorConnections(ActorDB::tag a) const
    {
    for (unsigned i = 0; i <the_cast.size(); ++i)
    {...
  20. Replies
    17
    Views
    3,954

    I'm not too familiar with pointers, but would I...

    I'm not too familiar with pointers, but would I change


    ///The private graph for the Kevin Bacon Problem
    mutable Graph actorGraph;

    to


    mutable Graph *actorGraph;
  21. Replies
    17
    Views
    3,954

    Is there any way to fix this?

    Is there any way to fix this?
  22. Replies
    17
    Views
    3,954

    MovieDB.h.... #ifndef MOVIEDB_H_ #define...

    MovieDB.h....


    #ifndef MOVIEDB_H_
    #define MOVIEDB_H_

    #include <set>
    #include <string>

    class Movie;
  23. Replies
    17
    Views
    3,954

    This is the error message: make -k all ...

    This is the error message:


    make -k all
    Building file: ../Graph.cpp
    Invoking: GCC C++ Compiler
    g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"Graph.d" -MT"Graph.d" -o"Graph.o"...
  24. Replies
    17
    Views
    3,954

    Why am I getting this error?

    I have a Graph.h file....


    #ifndef GRAPH_H_
    #define GRAPH_H_

    #include <iostream>
    #include <string>
    #include <sstream>
    #include <fstream>
  25. Replies
    18
    Views
    9,328

    http://rafb.net/p/RksEga83.html

    http://rafb.net/p/RksEga83.html
Results 1 to 25 of 33
Page 1 of 2 1 2