Search:

Type: Posts; User: I BLcK I

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    4,292

    Ya, I was told about his during lecture. The...

    Ya, I was told about his during lecture. The purpose of this is to simulate secondary storage access : /



    ofstream outfile;
    outfile.open("Bout", ios::out);


    Does this mean open "Bout" for...
  2. Replies
    3
    Views
    4,292

    File I/O - Hash files

    I'm having problems with the basics of binary file i/o. I really don't know too much about file i/o so far, so I'll try to describe my question as best I can.

    What I'm trying to do is to create a...
  3. Replies
    3
    Views
    1,970

    Thnxs. I gotta engrave this into my head somehow....

    Thnxs. I gotta engrave this into my head somehow.

    EDIT: heh i just read about the mention of "vector" in my book. It does sounds like it will make things a lot easier, but i dont wanna keep on...
  4. Replies
    3
    Views
    1,970

    Array of Pointers to Structs

    Every once in a while, I mean year, I need to create an Array of Pointers to Structs (at runtime - user defined size) and i can NEVER remember how to do it and my reference book example doesnt seem...
  5. Replies
    4
    Views
    1,169

    Thnx for the advil :D

    Thnx for the advil :D
  6. Replies
    4
    Views
    1,169

    here it is:

    here it is:
  7. Replies
    4
    Views
    1,169

    Pointer problem

    I'm getting this compiler error(below) for 3 lines(in bold) that are similar where im trying to assign a pointer to a pointer and I cant figure out why. Shouldn't a pointer thats in a struct be able...
  8. Replies
    2
    Views
    1,213

    Ya, I was kinda thinking of how it wasn't going...

    Ya, I was kinda thinking of how it wasn't going to work, thnx. I didn't skip over those functions heh... I just started writing this :) I haven't wrote anything for a while :/ so i cant really...
  9. Replies
    2
    Views
    1,213

    Array of structs Problem

    I don't think I've learned how to access all of an array of structs (that have pointers) through a member function. So, I'm trying to output all of the array's struct pointer to data , but I cant...
  10. Replies
    2
    Views
    1,861

    unresolved external symbol errors

    I know im not doing something right but i cant figure out atm. Ive tried looking up the error at microsofts page and i cant really make much sense of it. I have a client program that has:

    #include...
  11. Replies
    19
    Views
    2,414

    That should be enough to solve your problem....

    That should be enough to solve your problem. (assuming you learned what a stack is and how it works. The '@' problem should be fundamental if you know what a stack is.)
  12. Replies
    6
    Views
    1,252

    What I'm really writing is a basic test inventory...

    What I'm really writing is a basic test inventory program. i just tried to dynamically cast but its not right

    Inventory.h:


    #include "InventoryItem.h"
    #include "String.h"
    using namespace...
  13. Replies
    6
    Views
    1,252

    whoops Shape *pBasicShape[100]; should be:...

    whoops

    Shape *pBasicShape[100];

    should be:
    BasicShape *pBasicShape[100];


    didnt think of a dynamic type cast i think thats what i will need to do. and I am using a polymorphic base class....
  14. Replies
    6
    Views
    1,252

    Inheritance and Array question

    My question is that can you put objects from several different objects into an array of pointers from a base class?(i think the answer is yes b/c its an array of pointers) and how would you access...
  15. putting using namespace std; in string .h made...

    putting using namespace std; in string .h made them the errors disappear. im sort of confused on this namespace std. could you please explain what the cause of the problem is?



    my intention was...
  16. When i include iostream in String.h, it still...

    When i include iostream in String.h, it still gives the same errors


    friend ostream& operator << (ostream &os, String &s) //line 23 - this line
    {
    os << s.pch;
    return os;
    }
    ...
  17. Replies
    6
    Views
    7,775

    Its much more simplier and logically reasonable...

    Its much more simplier and logically reasonable to use a do while loop, but i dont see why you would want to use a for loop. To answer your question, yes I can do it with a do, and for loop, but its...
  18. Replies
    6
    Views
    7,775

    use a do-while loop because you dont know how...

    use a do-while loop because you dont know how many iterations your going through, but with a for loop you do.



    do{
    if (a%2==0)
    {answer = a/2;}
    else
    {
    answer =...
  19. ack srry bout the double post i thought i lost...

    ack srry bout the double post i thought i lost all i typed when i hit the post thread button and got some Invalid thread specified error and thought "ahhh shhhhhht" ><

    id prefer this one to be...
  20. Custom String class gives problem with another prog.

    This works fine when its in a project with just these files. I have 2 problems: 1 is with the overloaded << and >> operators being inline and the compiler complains about not having access to pch...
  21. Custom String class gives problem with another prog.

    This seems to work with the overloaded "<<" and ">>" operators placed in the header file, but complains about not being able to access pch even though its a friend function and i have no idea why its...
  22. Replies
    5
    Views
    1,164

    ajksld;fiaweg;whg *Bark bark*, *Grrrrrrr* I...

    ajksld;fiaweg;whg *Bark bark*, *Grrrrrrr*

    I found my error on this line


    ifstream infile("c:LAB1DATA.txt");


    should have been:
  23. Replies
    5
    Views
    1,164

    Well i agreee with you that i should be using...

    Well i agreee with you that i should be using standard code, but thats the least of my worries right now. I've helped out a friend with java and his instructor was a dinosaur who refused to accept...
  24. Replies
    5
    Views
    1,164

    well the instructor made no mention of depricated...

    well the instructor made no mention of depricated headers but on the sample codes its listed as ".h" and this is a data structures class so i dont think he really cares so <_<
  25. Replies
    5
    Views
    1,164

    Problem with fstream

    First off, I'd like to say this is a hw problem. I have gutted out other functions that are fine and left only the one im having a migraine on X_X. So, the problem is reading data in from a file...
Results 1 to 25 of 26
Page 1 of 2 1 2