Category : methods

I think this is the right stack for this question as its fundamentally C++ although to be specific its a NodeMCU (ESP8266) being programmed in Arduino with the Visual Code IDE. I am using the Pubsubclient MQTT library within a custom ‘ComsManager’ Class library as part of a environmental monitoring system. Generally everything is working ..

Read more

The following is a snippet of code from a file I/O I wrote using fstream in C++ void getFile() { std::ifstream inputFile; std::string fileName{ "" }; std::string reader{}; fileOpener(inputFile, fileName); readFromFile(inputFile, reader); } void fileOpener(std::ifstream& inputFile, std::string& fileName) { std::cout << "Please enter the directory and name : Example : C:UsersAlexDesktopnumbers.txt "; std::cin >> fileName; ..

Read more