General Programming Codes (C++)