Author: Felix Tang
-
C++ Recursion: introduction and example codes
In C++, recursion is a programming technique where a function calls itself directly or indirectly. A C++ recursive function typically consists of two parts: Problems Write a recursive function to find the factorial of n Write a recursive function to sum the integers from 1 to n Write a recursive function to compute:f(n) = 1… Read more
-
Web-Based console for Raspberry Pi: procedure to show the console
-
Web-Based console for Raspberry Pi: webpage content update
The web-based console of Raspberry Pi utilizes three HTML files: login.html, index.html, and config.html. To illustrate the interaction between an HTML file and the server.py file (which utilizes the Tornado framework) for updating webpage content without needing to reload the entire web page, let’s take index.html as an example. The data flow for reading and… Read more