No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I get this error: [quote] error C2785: 'std::ostream &operator <<(std::ostream &,const Outsider<T>::Nested &)' and '<Unknown>' have different return types [/quote] When trying to compile the following code with VS2008: [CODE=cplusplus] #include <iostream> using namespace std; template <class T> class Outsider { private: class Nested { private: T myData; public: Nested(const … |
|
Provided the following template: [code=cplusplus] template <class T> class MyTemplate { private: T myData; public: MyTemplate(const T &data) : myData(data) {} bool Contains(const T &); }; [/code] Is there a way to ensure at compile time that the argument T derives from another class? I want T to derive from … |
|
Hello, Does anyone know which GDI API is called to draw menus and menu items on windows? I know its not DrawText, DrawTextEx, TextOut or ExtTextOut. |
|
Hi, I'm using Turbo C 2.01 and im stuck with this problem. I've reduced it to the following. My code in Turbo C is this: [CODE=C] void f(char *); char h[] = "hello"; void main() { f(h); } void f(char *s) { int n = 0; while (s[n] != 0) … |
|
Hi, Im writing a program in Turbo C but i also want to use some assembly functions, for this im using nasm. This is my assembly code: [CODE=ASM] BITS 16 GLOBAL _Add4 n_Add4 equ 4 _Add4: push bp mov bp,sp mov ax, [bp + n_Add4] add ax, 4 mov sp,bp … |
|
Hi Im having a problem with the following piece of code: #include <iostream> using namespace std; #define something 33; void main() { if (33 == something) { cout << "equals" << endl; } } Im using Visual C++ 2008 (not Express) and I get 2 errors and 1 warning when … |