This repository contains a collection of C++ and CUDA programming experiments, learning projects, and problem-solving exercises.
HelloWorld.cpp- Simple "Hello World" program demonstrating basic C++ outputDevCppTest01/- Another basic "Hello World" C++ program for testing Dev-C++ environment
Three progressive CUDA examples demonstrating GPU programming concepts:
CUDA_Test01/- Basic CUDA "Hello World" with empty GPU kernelCUDA_Test02/- Simple integer addition on GPU, demonstrates:- Memory allocation on GPU
 - Host-to-device data transfer
 - Kernel execution
 - Device-to-host data transfer
 
CUDA_Test03/- Vector addition template (incomplete implementation)
DevCppTest02/ - Comprehensive solution to a Vietnamese elementary school math puzzle that went viral in 2015:
Fill in the blanks with digits 1-9 (each used exactly once):
_ + 13 × _ ÷ _ + _ + 12 × _ - _ - 11 + _ × _ ÷ _ - 10 = 66
main.cpp- C++ brute force solver that generates combinations with unique digitspythonTest1.py- Python solution using itertools permutations (more elegant approach)Solutions.txt- Complete list of 136 valid solutions1.txtthrough9.txt- Generated digit combination filesLink.txt- References to original news articles about the puzzleMath problem doc/- Documentation and images related to the puzzle
The puzzle gained international attention when it appeared in a Vietnamese 3rd-grade math workbook:
g++ HelloWorld.cpp -o HelloWorld
./HelloWorldRequires NVIDIA CUDA Toolkit:
nvcc kernel.cu -o cuda_program
./cuda_program# C++ version
g++ DevCppTest02/main.cpp -o puzzle_solver
./puzzle_solver
# Python version
python DevCppTest02/pythonTest1.pyThis repository demonstrates:
- Basic C++ programming concepts
 - CUDA GPU programming fundamentals
 - Algorithmic problem solving
 - Combinatorial mathematics
 - Cross-language problem solving (C++ vs Python approaches)