Search:

Type: Posts; User: jackfraust

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Here's the class //Rolodex.h //Declaration of...

    Here's the class

    //Rolodex.h
    //Declaration of class Rolodex

    #ifndef ROLODEX_H
    #define ROLODEX_H

    #include <map>
    #include <iterator>
  2. Rolodex(information manager) =>Check my Code

    here's what i should do:





    //
    #include <iterator>
    #include "Rolodex.h"
    #include <iostream>
  3. Can somebody help me on this? are these two...

    Can somebody help me on this?
    are these two function good?

    list() function

    void Rolodex::List()
    {
    std::ostream_iterator < string > output (cout, "\n");
    std::copy( rolodex.begin(),...
  4. I tried to create a new object to call the Add...

    I tried to create a new object to call the Add function but the compiler said that there is no default constructor available

    void Rolodex::Add(Rolocard card)
    {

    string first, last, add, occ,...
  5. I've got to create a rolodex with a container for...

    I've got to create a rolodex with a container for cards which contains information.

    I've already create the rolocard class which holds the information. Now my next step is to create the rolodex...
  6. Help with STL container list for INformation Manager

    I'm trying to create a info manager like rolodex.
    Rolodex.cpp
    List() function


    void Rolodex::List()
    {
    list<string>::iterator cIterator;
    for (cIterator = cardlist.begin(); cIterator !=...
  7. Replies
    3
    Views
    1,255

    not to mention you can't just use them without...

    not to mention you can't just use them without initializing them.
  8. Replies
    56
    Views
    13,196

    how come i can't sort the mshape[i]->toString()...

    how come i can't sort the mshape[i]->toString() in ascending order depending on the area?


    for (int nStartIndex = 0; nStartIndex < number; nStartIndex++)
    {
    int nSmallestIndex =...
  9. Replies
    56
    Views
    13,196

    here is what i did. shape* mshape[10];...

    here is what i did.




    shape* mshape[10];
    int i, number;
    cout << "CREATING SHAPE(circle, rectangle or square)\n\n" <<endl;
    cout << "\nHow many shape you wish to create? " << endl;
  10. Replies
    56
    Views
    13,196

    How do you suppose i can store the shape* in an...

    How do you suppose i can store the shape* in an array and pring them all at one time with toString()
  11. Replies
    56
    Views
    13,196

    I did this but it craches shape* mshape[10];...

    I did this but it craches

    shape* mshape[10];
    int i;

    for ( i = 0; i < 2; ++i){
    shape *shape_obj = getShape();
    mshape[10] = shape_obj ;}
  12. Replies
    56
    Views
    13,196

    Can i sort toString by area like this? for...

    Can i sort toString by area like this?


    for (i=0; i<10-1; i++)
    for (j=i+1; j< 10; j++)

    if (dshape[i]->area()>dshape[j])
    {
    temp=dshape[i];
    dshape[i]=dshape[j];
  13. Replies
    56
    Views
    13,196

    nothing, its just that main.cpp doesn't recognize...

    nothing, its just that main.cpp doesn't recognize getShape(). It doesn't recognize, circle, square or rectangle either.



    int main()

    {
    shape* dshape[10];
    for ( int i = 0; i <...
  14. Replies
    56
    Views
    13,196

    I'm not talking about the getShape.cpp, i'm...

    I'm not talking about the getShape.cpp, i'm talking about shape and other derived classes, they shouldn't include getShape.cpp. ON the other hand, getShape.cpp is supposed to include circle.h,...
  15. Replies
    56
    Views
    13,196

    the source file shouldn't contain the...

    the source file shouldn't contain the implementation of getShape(). getshape is supposed to be the source file getShape.cpp and include the headers of circle.h, rectangle.h and square.h. Main.cpp is...
  16. Replies
    56
    Views
    13,196

    why is it that the compiler can't recognize the...

    why is it that the compiler can't recognize the getShape() function.
  17. Replies
    56
    Views
    13,196

    this is the instruction for main: The main.cpp...

    this is the instruction for main:
    The main.cpp file contains the main() function. It should define an array of base Shape pointers, and loops calling getShape() and storing the returned Shape...
  18. Replies
    56
    Views
    13,196

    It still doesn't work here is what i wrote. I...

    It still doesn't work
    here is what i wrote. I wrote again.


    #include "Circle.h"
    #include "Square.h"
    #include "Rectangle.h"
  19. Replies
    56
    Views
    13,196

    That's the thing, the getShapte() function is...

    That's the thing, the getShapte() function is suppose to get the dimensions from the input stream, then store them in an array. The getShape function is supposed to be in getShape.cpp. Then the main...
  20. Replies
    56
    Views
    13,196

    It doesnt work. It says that getShape(); is...

    It doesnt work. It says that getShape(); is unidentified.
  21. Replies
    56
    Views
    13,196

    what i want to know is how do i run a program...

    what i want to know is how do i run a program with function like Shape* getShape()??? That's what i really want to know.
  22. Replies
    56
    Views
    13,196

    what do you think is wrong with the program and...

    what do you think is wrong with the program and how can i fix it?
  23. Replies
    56
    Views
    13,196

    when i say compiled i dont mean "work". It did...

    when i say compiled i dont mean "work". It did compile without errors but the program doesn't run meaning there's a problem in the code. suppose the program is named shape.exe; I run shape.exe but...
  24. Replies
    56
    Views
    13,196

    I'm telling you it really did compiled for me and...

    I'm telling you it really did compiled for me and the terminal wouldn't display anything. But tell me, where do you think the error is?
  25. Replies
    56
    Views
    13,196

    it compiled in visual C++. How do you supposed i...

    it compiled in visual C++. How do you supposed i call the getShape function in main()?
Results 1 to 25 of 72
Page 1 of 3 1 2 3