devxlogo

Tip Bank

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

Creating paradox-type tables at runtime

Question: I want to create paradox-type tables at runtime, which I am generally doing in this way:Table1.FieldDefs.Add(‘IDnum’, ftInteger, 0, False)….Table1.CreateTableHowever, there seems to be no FieldType for an auto-increment number

Exporting data

Question: I wasn’t able to find out what all the command line switches for dbexport do. The only ones I found were -o and -c.Is there a way to export

Initializing a deck of cards using a for-loop

Question: I have two enumerated types: enum suit_type{club,diamond,heart,spade} and enum rank_type{ace,two,…,queen,king}. In structure CARD, I have the variables suit_type suit and rank_type rank. In class PILE, I have a private

Processor fault

Question: Why do I get with the following program, this error: general protection exeption, 0x215f:0x1ef3timer(1) 0x215f:0x1ef3 Processor fault.Program (very small):#include #include int get_value (int _value);void main (void){ int _time=0; int

Virtual function is abstract

Question: We are getting an error message that says a function fromwithin a class C cannot allocate instanceof type C because one of the virtual functions(the one we wrote) is