Search:

Type: Posts; User: Callith

Search: Search took 0.00 seconds.

  1. Replies
    13
    Views
    2,469

    Bleh, I guess it's not so much that it only works...

    Bleh, I guess it's not so much that it only works once, it just...barely works at all. =P In some cases, the first list will save correctly (by finding that it first actually does exist, then making...
  2. Replies
    13
    Views
    2,469

    The code's attatched to the thread I mentioned in...

    The code's attatched to the thread I mentioned in the first post.
    And nah, I never blamed it on the library. I realize there's obviously something faulty with my code. =P That's why I posted it, so...
  3. Replies
    13
    Views
    2,469

    The former. A C++ string's '==' operator is...

    The former. A C++ string's '==' operator is overloaded to compare the strings, obviously, but for some reason


    while (buffer!="!"){

    only seemed to work once. Oh well, it's not of great...
  4. Replies
    13
    Views
    2,469

    O.o I understand the difference...I guess I...

    O.o

    I understand the difference...I guess I just don't understand why using C++ strings the way I did is a problem.

    They are classes, and as such have boolean operators right?
    The only one I...
  5. Replies
    13
    Views
    2,469

    strings or arrays of characters?

    Bleh. I'm not really sure what the difference is between a 'string' and a 'c string' and I was having troubles from before that unfortunately haven't been resolved. (The previous thread is at...
  6. Replies
    3
    Views
    1,850

    Thanks, and yeah.

    Thanks for taking a look. =|

    And yea, it reads a line of the file into the string buffer, and then compares it to another string literal. =\ That works, desn't it? =P

    Maybe I'll try that.
    ...
  7. Replies
    3
    Views
    1,850

    Console-based file i/o troubles

    Well, I've been wrestling this program around for awhile now, and decided I'd try the file I/O part on my own. Sadly, I failed.

    I did however manage to get a very nice portion of it completed. I...
  8. Replies
    6
    Views
    5,446

    Well, assuming these are proto-types of...

    Well, assuming these are proto-types of functions, you forgot to set each functions return type, but I'm a beginner so I'm probably just not making any sense. =\
  9. Replies
    5
    Views
    1,094

    Hrmm well, I do think it is probably about time I...

    Hrmm well, I do think it is probably about time I try it. I have a good grasp on logic I think, I just have to work on crazy pointer solutions, and have google at hand.

    Mind directing me to a good...
  10. Replies
    5
    Views
    1,094

    Filename Problems

    Well, the saving part of my program works fine, it saves data like it should, but I have one problem.

    I want my program to display a list of names depending on existing files in a directory, and...
  11. Replies
    2
    Views
    2,646

    Dynamic filenames?

    Well, as anyone reading this probably knows, I'm working on this address book. It's going great now that I've realized some simple things, but this is the first (productive) time I've ever used file...
  12. Replies
    6
    Views
    1,263

    Finally, victory is mine.

    Alright. =) With a bit of time and experimentation, not to mention staring at a few examples really hard, I was able to understand how the sorting works. I'm suprised at how simple it really is now,...
  13. Replies
    6
    Views
    1,263

    I'll keep that in mind, but I guess I just can't...

    I'll keep that in mind, but I guess I just can't get that concept through my head.
    I am trying to swap things in actual code, but I had no idea how to use the algorithm library. I figured the best...
  14. Replies
    6
    Views
    1,263

    vector sorting [beginner]

    Well, with a little help I got started writing my own functions to sort a vector from least to greatest by a member of it's elements.

    It doesn't work at all, and I'm totally perplexed as to why...
  15. Thread: Vectors

    by Callith
    Replies
    15
    Views
    2,218

    Thanks for pointing that out Zach, but it just...

    Thanks for pointing that out Zach, but it just went back to the error I had before. There's no match for operator=, which I thought (for vectors,) just replaced one vector with the new one. SHouldn't...
  16. Thread: Vectors

    by Callith
    Replies
    15
    Views
    2,218

    Another problem.

    Well, infact I have another question.
    I worked on the code abit more and wrote everything, but it won't compile now. I looked at a few examples and checked out a few more reference sites and vector...
  17. Replies
    5
    Views
    1,398

    [b]this[/b]

    Well, in the previous code they didn't have member functions, but they do in my current code. I've worked on it a bit more and realized that's probably the best way to do it.... :P

    Anyways, it's...
  18. Thread: Vectors

    by Callith
    Replies
    15
    Views
    2,218

    Vectors

    I read cprogramming.com's tutorial on the vector class, and I understand how they work. However, I encountered yet another problem while programming a console based address book.

    I want the user...
  19. Replies
    5
    Views
    1,398

    Ah I decided what I would, which was using...

    Ah I decided what I would, which was using CornedBee's suggestion. Thanks everyone. ^^
  20. Replies
    5
    Views
    1,398

    Umm...Inheritance or something similar?

    I've read a few books on learning C++, and I have the basic idea of what OOP is all about, but I encountered a slight problem while writing a console based address book.

    I'm certainly not trying...
  21. Replies
    1
    Views
    1,304

    creating class instance from a file

    Keeping in mind that I'm a beginning programmer, I have a question about a program I've been writing for practice, and to hopefully learn some new insights on programming technique.

    Please also...
  22. Replies
    8
    Views
    2,081

    D'uh

    Well, I read the FAQ, and it fixed the problem. Windows XP are teh sux0rz.

    I feel like a moron for not looking at the FAQ earlier, but it's OK. At least I can compile my own friggin' programs now....
  23. Replies
    8
    Views
    2,081

    Update

    I figured if it was the code, I'd just start from scratch and see where it went wrong along the way.

    The following code also gave me the same exact compile error as stated above:



    #include...
  24. Replies
    8
    Views
    2,081

    Here's the code.

    I uninstalled DevCpp and reinstalled. Same problem. Maybe it is the code. Now hoever, there's one error that won't even let it compile that I can't figure out. (Jeeze this is a wreck huh?) It says:
    ...
  25. Replies
    8
    Views
    2,081

    Problems w/ Dev C++

    I wasn't really sure where to put this. It's my first post on this board, and it might not be the last. :)

    But anyways, I've been having trouble with that free compiler Dev C++ and I was wondering...
Results 1 to 25 of 25