Tags:C++ Questions | 40 views
im wanting to make a class called Log. with the template as follows class Log { private: std::ofstream outputFile; SYSTEMTIME systemTimeBuffer; public: Log( std::wstring error1 ); Log( std::wstring error1, std::wstring error2 ); Log( std::wstring error1, std::wstring error2, std::wstring error3 ); Log( std::wstring error1, std::wstring error2, std::wstring error3,……. ); ……… …….. ~ Log(); } here is [...]
Tags:C++ Questions | 38 views
I am running Windows 7. After 60 seconds, when I search using Windows Explorer search box, I get the following message: "Microsoft Visual C++ Runtime Library. This application has requested the Runtime to terminate it in an unusual way. Please contact the application’s support team for more information." To correct this problem I have tried [...]
Tags:C++ Questions | 41 views
I’ve been snooping around trying to figure whether or not this was completely safe. I’ve noticed that if you were to simply "delete this" you might have occurrences where the deleted pointer is still in use elsewhere in the program. To prevent this, you’d need to dereference it and perform a check to ensure that [...]
Tags:C++ Questions | 38 views
I need to be able to loop and get information for up to 10 "BankAccount" arrays, but when I use less than 10 it gives me garbage and I don’t know how to fix it. Here is my Code. #include <iostream> #include <iomanip> using namespace std; class BankAccount { private: int [...]