Ah. Well, after changing the constructor's parameter type to a reference to an int, all the problems with incorrect values for the pointers were corrected. Thank you very much, I doubt I would have...
Type: Posts; User: Michty
Ah. Well, after changing the constructor's parameter type to a reference to an int, all the problems with incorrect values for the pointers were corrected. Thank you very much, I doubt I would have...
Thank you! How can I test to see if heap storage has been allocated?
#include <iostream>
using namespace std;
class Point
{
private:
int* ptr;
public:
Point(int val) {ptr = &val;}
~Point() {delete ptr;}
Thank you.
#include <iostream>
using namespace std;
class Multitudinous
{
private:
int int1;
float float1;
public:
float float2;
Thanks very much for the help everyone. I had no idea that char* behaved this way, but it does describe the seemingly odd output I had been getting.
#include <iostream>
using namespace std;
int main()
{
int * myInt = new int;
long *myLong = new long;
char* myChar = new char[100];
float* myFloat = new float[100];
Thank you...
Greetings.
Can anybody tell me how to put a working font box into a program using the Win32 API? I have initialized my struct and passed it to the correct function (?) so that when I compile the...
Sorry about that. I posted one post before with the error message to see what was wrong, but I didn't really understand the generous replies and my program still wouldn't compile.
Anyway, forget...
I really, really need somebody to help me! I've struggled with my compiler (DevC++ 5) for a long time now, and still it will not compile my program...
The program utilises a basic menu, which I...
I've just begun to learn about programming in win32 API, and all my previous examples worked more or less perfectly (after a while), but my latest program, with dialog boxes, won't compile.
There...
Why thank you, Mithoric. I'm most grateful.
Could somebody please help me? I programmed a Win32 API program (involving dialog boxes) which should compile perfectly, but when I try to compile my project (windowsmenu.dev) I receive the message:...