Tip Bank

DevX - Software Development Resource

‘Structs and classes

Question: Please examine my code and tell me what I am doing wrong!This is the first part of my program:#include #include class LinkedLst{ public: LinkedLst(); //Constructor void AddToFront(int Value); //Add

DevX - Software Development Resource

The time.h Header File

Question: I am trying to write a program that provides a constructor that’s capable of using the current time from the time() function declared in the C standard library header

DevX - Software Development Resource

Type conversion

Question: How does one convert a double to an int? Is there a function like floor that actually returns an int? Answer: There are many things you can do to

DevX - Software Development Resource

What happens to dangling pointers in java?

Question: What happens to dangling pointers in Java? Supposedly there is garbage collection, but when is it performed? From what Ihave read, it seems really easy to have persistent danglingpointers

DevX - Software Development Resource

ActiveX and Delphi

Question: Does Delphi support ActiveX? If so, do I need something extra to run ActiveX controls in Delphi? Answer: As long as the OCX is registered (which you can do

DevX - Software Development Resource

How to access your comport

Question: How can I access my comport? How can I send bytes to the datatransfer pin? I’m using Delphi 1.0I’ve tried writecomm and transmitcommchar (and I’ve opened the port with

DevX - Software Development Resource

Two-dimensional array

Question: How can I dynamically declare a 2D array and pass it as a parameter to a function?Here’s an example of what I’m trying to do:#include #include #include const SIZE