I dont think you can declare like that, you need to do like this
int *first, *second;
oh also, yer assigning a literal to a pointer, where it may not have an address, what you need to do is something like this
int *first = new int;
*first = 23;
that way a memory allocation has been made, then you just assign that value into the already allocated memory.
[sig]<p>Karl<br><a href=mailto:kb244@kb244.com>kb244@kb244.com</a><br><a href=
int *first, *second; [code]
That was my first attempt, it also gave an error, but I think it appeared during my build attempt.
Well, i'll try that other part you had. [sig][/sig]
It compiles okay, but when I attempt to build the executable, I get "error LNK2001: unresolved external symbol _wWinMain@16"
When I check the explanation of the error, i'm told this happens if I don't have an entry point to wWinMainCRTStartup, and I need to type this value into the Linker Settings dialog box; I found what seems to be this box, and this value is already there.
Perhaps my problem is something else? I accidentally linked a different file to my project; in my project settings I have clicked the box to exclude it from the build....how do I completely get rid of it? [sig][/sig]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.