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...
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;)...
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...
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...
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.
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...
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...
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.
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 "#include <so-and-so>" doesn't register in VS's peebrain compiler...
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 "const type_info::`vftable'" (??_7type_info@@6B@)
I have a whole 2 pages of...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.