void showTree(QObject* theparent){ cout << "\nMember: " + theparent->objectName() + " – Parent: " + theparent->parent()->objectName(); }
Continue reading about Exercise : QObject’s Child Management.
So I haven’t programmed in two weeks. The C++ book is still pegged to the second section. I know I have to finish what I started before the next semester starts. This unfinished work reminds me of the many things that I have left behind hoping that I will pick up ‘next time’, when I [...]
Continue reading about I haven’t programmed in over two weeks.
A quick note on Facebook: A lot of blogging has been going on about how privacy settings have been rigged in favor of Facebook vs User. While outrage should be expected, rationale should also be coupled with that outrage. The rationale is understood using the web unknowns. Web unknowns: 1. Any transaction over the internet [...]
#include <iostream> using namespace std; void change(int a); int main(int argc,char *argv[]){ double purchaseAmount = 0.0; double payment = 0.0; int totalChange = 0; cout << "\nEnter purchase amount :\t"; cin >> purchaseAmount; cout << "\nEnter Payment :\t"; cin >> payment; totalChange = (payment * 100)-(purchaseAmount * [...]
#include <iostream> #include <string> #include <cstdlib> #include <ctime> using namespace std; int diceThrow(); void result(int a); void lostThrow(int a); int choice = 0; int whileLoop = 0; int main(int argc,char *argv[]){ while(whileLoop == 0){ cout << "Let\’s play dice\n" "Press 1 to exit or 2 to throw the dice\n"; [...]