Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by TuxedoTemplar

  1. TuxedoTemplar

    Destructor deleting string: Should be easy, but...

    Oooooh! Ok! I knew it was something just outside my vision. Something obvious. :p Usually is. Thanks a lot for the help!
  2. TuxedoTemplar

    Destructor deleting string: Should be easy, but...

    Ok a bit of clarification: at the end of main() the default destructor for "Hoy" is called, deleting the allocated char *s for the label, body, and timestamp. It doesn't matter what these strings do or what's in them, as the problem is simply that they won't delete[] like a good string is...
  3. TuxedoTemplar

    String input question..?

    Hmm, actually that code is a bit off. You'll have to concatinate '\n' after each getline(), plus of course declare filesize as an int. ;) To write the file, just use ofstream in a similar way as I used the ifstream but with the '<<' operator, just like you would with cout (fout << fullfile;)...
  4. TuxedoTemplar

    String input question..?

    ifstream fin("filename.txt"); if(fin.is_open()) { fin.seekg(0, ios::end); filsize = file.tellg(); file.seekg(pos, ios::beg); if(filesize > 0) { char *input = new char[128]; char *fullfile = new char[filesize + 1]; fullfile[0] = '\0'; while(fin.peek() != EOF) {...
  5. TuxedoTemplar

    Destructor deleting string: Should be easy, but...

    delete [] myArrayy, delete[] myArrayy, and delete []myArray are all the same, as far as I've been taught. I'm also pretty sure you can't have anything in the [] brackets of the delete operator, though I haven't tried before. This still puzzles me...
  6. TuxedoTemplar

    Destructor deleting string: Should be easy, but...

    I've gone over this thing with a fine-tooth comb until my face is blue and I've only narrowed it down to the delete[] operators in the destructor not working (the program gives an assertion error.) As far as I've learned and I can observe everything is done as it should be, so I'm basically...
  7. TuxedoTemplar

    How to write a program?

    I'm not exactly sure what your asking. Do you want specific functions for file IO or help with being able to open/edit/delete said files through the IO functions? General questions get a general answer, so be more specific.
  8. TuxedoTemplar

    My collection of unresolved Windows API questions...

    Hey thx alot for the help, even if it didn't completely answer all my questions (I didn't figure it would, but its a start, which is better than nothing.) Anyway I have one more and I'll stop bugging all of you, and this one I need to get resolved rather quickly: How do I make a control that...
  9. TuxedoTemplar

    My collection of unresolved Windows API questions...

    Well I'm relatively new at API programming, so bear with me here. I'm doing a few C++ windows API programs that I had been planning to do for a while now, but I've hit been running into more problems than I think I can get resolved in a reasonable time frame, so I've instead been collecting...
  10. TuxedoTemplar

    I've been at this for hours, STILL won't compile!

    Hmm, neither, actually. Well I did TRY it, but it still was giving me the same obscure errors so I had concluded that wasn't the problem. Now that I got a bit further though I'll retry it with both and see if that does anything new. Thx for the help, btw.
  11. TuxedoTemplar

    I've been at this for hours, STILL won't compile!

    All right, sorry to double post, but I got a tad further in sleuthing this, so now instead of being generally cluelessly stumped, I'm now specifically cluelessly stumped over what part of a very clearly mentioned &quot;#include <so-and-so>&quot; doesn't register in VS's peebrain compiler...
  12. TuxedoTemplar

    I've been at this for hours, STILL won't compile!

    Alright I'll TRY to be specific on the problem, but then again I have no clue whats causing it, so I'll start off with the part that has me baffled: Trigger Happy error LNK2001: unresolved external symbol &quot;const type_info::`vftable'&quot; (??_7type_info@@6B@) I have a whole 2 pages of...
  13. TuxedoTemplar

    Dykstra's Shortest Path Algorithm

    I'd tell you the formula, if only I could remember it :P. Sorry I guess that wasn't very helpful, so I guess I'll be asking also if anyone who reads this knows...
  14. TuxedoTemplar

    Be nice, this is a newbie windows API question.

    Ok since I just learned windows API programming yesterday (well all the concepts, but the fun part of actually doing anything useful I'm still crawling through [tongue]), I'm now trying to start on the application that I had in mind. All I want to know is what I need to do to have a splash...

Part and Inventory Search

Back
Top