- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
10 Posted Topics
Re: Having installed VS2012 RC could cause that. http://social.msdn.microsoft.com/Forums/da-DK/vssetup/thread/d10adba0-e082-494a-bb16-2bfc039faa80 or runing VS2010 without SP 1 http://msdn.microsoft.com/en-us/library/7dz62kfh.aspx | |
Re: public: operator std::basic_string<TCHAR>() const { return _fmtedString; } This means that the class can be interpreted as a basic_string when used. public: operator const TCHAR*() const { return _fmtedString.c_str(); } In this case it will be interpreted as a TCHAR* pointer | |
Re: You must have an instance of the animal class in order to use it. int main() { animal a; a.ReadIN(fname); a.setAnimal(....) etc etc } | |
![]() | Re: When you have a member variable which value you want to share among all instances of a class, you declare it as static. In order to access that member with a method, the method also has to be declared static. #include <iostream> class MyClass { static int x; public: static … |
Re: The first include statement must be "stdafx.h" when using pre-compiled header #include "stdafx.h" #include <iostream> #include <fstream> | |
Re: Think you are posting in wrong area. This area is about C++ | |
Re: Here you are declaring monthlyInterest as a float `float monthlyInterest` Here you are calling the function monthlyInterest, which does not exist. Its just a float as declared above. `monthlyPayment = monthlyInterest(purchasePrice - amountDown)` If you want monthlyInterest to be a function that calculates the interest you must create that function … | |
Re: Your code is using a library that is not included in you list of input libs in the linker. |