pointer (4,068)


c# - Wiggling the mouse

c# - Wiggling the mouse

OK. This is a bit of a vanity app, but I had a situation today at work where I was in a training class and the machine was set to lock every 10 minutes. Well, if the trainers got excited about talkin…


Reading a C/C++ data structure in C# from a byte array

What would be the best way to fill a C# struct from a byte[] array where the data was from a C/C++ struct? The C struct would look something like this(my C is very rusty): typedef OldStuff{CHAR Name[8…


java - IllegalArgumentException or NullPointerException for a null parameter?

Closed.This question is opinion-based.It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by…


c++ - What are the barriers to understanding pointers and what can be done to overcome them?

Why are pointers such a leading factor of confusion for many new, and even old, college level students in C or C++? Are there any tools or thought processes that helped you understand how pointers wor…


How do you pass a function as a parameter in C?

I want to create a function that performs a function passed by parameter on a set of data. How do you pass a function as a parameter in C?…


Passing more parameters in C function pointers

Let's say I'm creating a chess program. I have a function void foreachMove( void(*action)(chess_move*), chess_game* game); which will call the function pointer action on each valid move. This is al…


objective c - In Cocoa do you prefer NSInteger or int, and why?

NSInteger/NSUInteger are Cocoa-defined replacements for the regular built-in types. Is there any benefit to using the NS* types over the built-ins? Which do you prefer and why? Are NSInteger and int t…



What C++ pitfalls should I avoid?

I remember first learning about vectors in the STL and after some time, I wanted to use a vector of bools for one of my projects. After seeing some strange behavior and doing some research, I learned…


java - C++ and SOAP

I have a C++ app that needs to connect to a JAVA web app, are there any good, open source SOAP packages for this, or would it be easier to just roll my own?…


C++ deleting a pointer to a pointer

So I have a pointer to an array of pointers. If I delete it like this: delete[] PointerToPointers; Will that delete all the pointed to pointers as well? If not, do I have to loop over all of the p…




function array how example pointers and reference null pass type