That code doesn't look like C at all, but like C++.Exactly, i can't tell C and C++ apart. I need some help.
Exactly, i can't tell C and C++ apart. I need some help.if you intend to port C and C++ code to Pascal, you'll need at least a basic understanding of C and C++.
I have this code in c and want to convert it to Pascal
Any particular reason why you didn't use a bitpacked array of boolean, which is closer to a C++ vector of bool than a bitpacked record of booleans ?It's all fine. I don't have to mimic internals structure of vector. Vector is used to build a tree. "true" for right branch, "false" for left branch. All program is only 400+ lines.
Any particular reason why you didn't use a bitpacked array of boolean, which is closer to a C++ vector of bool than a bitpacked record of booleans ?The record supports partial initialization, the array requires full.
Please provide the full program. It should print 2, 3, 4, 5 from this array.
const Duplication1: array of array of boolean = ( (True, False), // 2 (True, True), // 3 (False, False, False), // 4 (False, False, True, False) // 5 );
The record supports partial initialization, the array requires full.Hadn't thought about that. Thank you.
This is even better solution.Please provide the full program. It should print 2, 3, 4, 5 from this array.
const Duplication1: array of array of boolean = ( (True, False), // 2 (True, True), // 3 (False, False, False), // 4 (False, False, True, False) // 5 );