Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~1K People Reached
Favorite Forums
Favorite Tags
c++ x 11
c x 10
Member Avatar for paolomontero

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 …

Member Avatar for paolomontero
0
147
Member Avatar for paolomontero

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 …

Member Avatar for paolomontero
0
187
Member Avatar for paolomontero

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.

Member Avatar for marco93
0
131
Member Avatar for paolomontero

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) …

Member Avatar for paolomontero
0
192
Member Avatar for paolomontero

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 …

Member Avatar for xrysf03
0
438
Member Avatar for paolomontero

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 …

Member Avatar for Salem
0
83