Search:

Type: Posts; User: Bitphire

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,272

    Thanks for all the replies. Sorry its been so...

    Thanks for all the replies. Sorry its been so long since I posted. Things came up but i'm back. Had class tonight and got this error and even the teacher wasn't to sure on why. So I am hoping you...
  2. Replies
    7
    Views
    1,272

    Thanks, that is something I was looking for. Just...

    Thanks, that is something I was looking for. Just a basic design of my classes. Now that you have shed some light maybe i can this thing started :) Thanks again
  3. Replies
    7
    Views
    1,272

    LOL, thanks I never thought about that. I had not...

    LOL, thanks I never thought about that. I had not defined the other class yet. Gave it a shot and then I got a different error this time. It's a fatal error: INTERNAL COMPILER ERROR. I am using...
  4. Replies
    7
    Views
    1,272

    Help with Linked List

    Just started learning Linked List and I am pretty lost. I have started a class but not sure it it is correct. Just need some feed back on if the class is setup right and any additional things about...
  5. Replies
    6
    Views
    4,645

    no, i did not make the post. i found the answer...

    no, i did not make the post. i found the answer in some one elses post from some other forum. I was doing a google search and i found someone elses post. Is that wrong? I did not post on another...
  6. Replies
    6
    Views
    4,645

    Thanks for the reply. I had just found another...

    Thanks for the reply. I had just found another forum from google and just solved the problem. I also originally had the '\n' part after the for loop but was trying everything to get this to work and...
  7. Replies
    6
    Views
    4,645

    Post has been Edited. :)

    Post has been Edited. :)
  8. Replies
    6
    Views
    4,645

    return char array

    I need to create a function that returns a char array. I am not sure how to do this. I designed a custom string class for school and one of the functions has to convert the string to a char array and...
  9. Replies
    3
    Views
    1,123

    operator[](string key)

    operator[](string key)
  10. int gcd(int a, int b) { Above is a function...

    int gcd(int a, int b)
    {

    Above is a function that takes two ints and gives them the name a and b



    if (b == 0)

    This checks to see if b is equal to zero
  11. Replies
    8
    Views
    1,314

    Not sure if this is what you need but why not use...

    Not sure if this is what you need but why not use a bool? If they enter case 3 then set bool true then do an if statement to see if the bool is true or false. Hope it helped in a way :)
  12. Replies
    2
    Views
    1,134

    Reading filenames and creating folders

    Hey I was just wondering how I could read the filename of a folder or mp3. I want to be able to search the filename for a special character. Then create a folder unless folder already exist then just...
  13. Replies
    2
    Views
    792

    Ok, thanks. Thats exactly what I thought was...

    Ok, thanks. Thats exactly what I thought was happening. Now I just need to find a way to remove that from the vector :). Thanks again
  14. Replies
    2
    Views
    792

    Overloading the + operator

    Designing custom string class for school. This is what I have so far. How does it look? Ok great knew you liked it :P. No, I am having trouble figuring out how to write the +operator overload. What I...
  15. Replies
    1
    Views
    807

    Undefined Type or something of sort

    How would you got about doing something along the lines of:



    int size;
    char array[size];


    This gives an error because size is not set. Even if I initialize size at start up and then give...
  16. Thread: String Class

    by Bitphire
    Replies
    6
    Views
    1,785

    LOL, thanks will give it a try and see what...

    LOL, thanks will give it a try and see what happens
  17. Thread: String Class

    by Bitphire
    Replies
    6
    Views
    1,785

    Teacher is trying to get us to understand OOP...

    Teacher is trying to get us to understand OOP better. Says we are still not programming the OOP way or something of the sort.

    So got any ideas on how to do this? LOL not the whole thing just...
  18. Thread: String Class

    by Bitphire
    Replies
    6
    Views
    1,785

    String Class

    Ok, I have to try and code my own string class. I am doing a char array of course to store the characters. Is there a way to allocate memory as needed? So i do not have to know the predefined length?...
  19. Replies
    2
    Views
    916

    Creating an Operator

    Just wondering if it is possible to create your own operator? ex

    use <- instead of <<

    so
    cin >> test

    cin <-test
    or just
    <- test
  20. Thread: Class Help

    by Bitphire
    Replies
    9
    Views
    1,161

    Thanks for all the reply's. This is what I have...

    Thanks for all the reply's. This is what I have and I am pretty happy with it :). It works and so far its what I need. Now if anyone wants to help figure out how to find or set coords for x,y, and...
  21. Replies
    26
    Views
    2,448

    Thank you so much for the help. :) Hope this...

    Thank you so much for the help. :) Hope this helps the person who orginally started this post. :)
  22. Replies
    26
    Views
    2,448

    Once I have multiple objects created, I need to...

    Once I have multiple objects created, I need to be pick and object and then grab a specific material for it. Lets say I grab the steelBall and need to get the info from the mat class for the steel...
  23. Thread: Class Help

    by Bitphire
    Replies
    9
    Views
    1,161

    You say coping into a vector is bad idea, why?...

    You say coping into a vector is bad idea, why? Also the second option Objects.push_back(obj()); How does this work and it sounds like the same as first option just using a function somehow? Is this...
  24. Thread: Class Help

    by Bitphire
    Replies
    9
    Views
    1,161

    Okay, I am really confusing myself :(. I cant...

    Okay, I am really confusing myself :(. I cant even think of what to tell you the problem is. um give me a sec.......
    First:
    objSteelBall' : undeclared identifier

    Second:
    This wont work because...
  25. Replies
    26
    Views
    2,448

    Zack L. could you give an example of doing this?...

    Zack L. could you give an example of doing this? TIA
Results 1 to 25 of 40
Page 1 of 2 1 2