devxlogo

Tip Bank

Pointers

Question: On a test in college an instructor asked if it was possible to multiply and divide pointers. In the book we are using it says nothing about it, and

String arrays and pointers in C++

Question: I declared a string array, char *cities[15];, to hold the names of 15 cities. I want to allow the user to enter the 15 cities, but I do not

General Protection Fault

Question: #include #include void main(){ randomize(); const int max_num=1000; int value[max_num]={0}; const num_word_per_line=8; cout

OnMouseOver in Visual C++

Question: I have found many resources discussing the OnMouseOver event in JavaScript. I would like to know if this event is available in VC++ in any capacity, whether through an

How to use a pointer to a pointer to an int

Question: How do you use a pointer to a pointer to an int?Like this: ————–int **IntPtr;————– How do you access the value “underneath” two pointers? Answer: You can deference a

Running an Access Macro from ASP

Question: It’s possible to run an Access macro from ASP? Answer: Although you can run a macro from Access, it takes preparation, nerve and luck.Preparation, because you have to set

Emergency Exit

This is a trick you should never, ever apply, unless it is your lastchance to meet the deadline for the presentation which will save yourjob: #define private public #define protected