No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
15 Posted Topics
Here's the question : /* 4. Modify your showTree() function so that it produces the same output as dumpObjectTree() . QObject::A Stack Object QObject::Mike QObject::Greg QObject::Peter QObject::Bobby QObject::Carol QObject::Marcia QObject::Jan QObject::Cindy */ This is what i have thus far ... if(!childlst.isEmpty()) foreach(Person* t,childlst) { cout << "QObject::" << t->parent()->objectName() << … | |
I'm having some trouble attempting to implement the constructors for each class. I have this constructor for the class Transaction. Is this correct ? Transaction::Transaction(QString type, QDateTime datetime) : m_Type(type), m_DateTime(datetime) { } AND how do i implement the constructor for the class Deposit ? Is this correct ? I'm … | |
I'm using the streamreader to read in a text file and using the function EndOfStream to detect the end of the text file. The problem i facing is that i'm getting this weird error message -- > [B]System Error &H80131c25&[/B] Does anyone know what this means and how to solve … | |
Here's my function that i call from main. However i'm getting an error "stackType undeclared" Does anyone know what i'm doing wrong ? [CODE="CPP"] template<class Type> void removeX(queueType<Type>& Q) { stackType<Type> stackQ; while (!Q.isEmptyQueue()) { stackQ.push(Q.front()); Q.deleteQueue(); } } [/CODE] | |
[CODE= C++] //Pg.288 #include <cassert> #include <iostream> using namespace std; void deleteKthElement(int k, int& count); int main() { struct nodeType { int info; nodeType *link; }; nodeType *first, *newNode, *last, *traverse; int num; int count = 0; cout << "Enter a list of integers ending with -999.\n"; cin >> num; … | |
Re: In your 'for' loop you're using the variable 'hours' as the control variable. ..try something similar to this .. [code=c++] for (int i = 1; i <= hours; i++) [/code] and like 'vamnes' said you need to look at your method of calculation | |
I have a pc loaded with XP Home Edition.I recovered all the data on my harddrive but after installing it again my pc won't boot. I read on Microsoft support website that XP Home edition needs floppy disks (6 of them - i've downloaded this already). At present all that … | |
Hi anyone. Please help with this seperate compilation. Many thanks ! ================================== //pointerDataClass ;Header file [code=cplusplus] class pointerDataClass { public: void print() const; //Function to output the value of x and //the value of the array p. void setData(); //Function to input data into x and //into the array p. … | |
I'm getting the above error at this section --> SetCurDir ("\\Cls000008\actuarial_data\Xtractor") in my code below ... please help ! _____________________________________ Option Explicit Private Declare Function SetCurDir Lib "kernel32" _ Alias "SetCurrentdirectoryA" (ByVal lpPathName As String) As Long Public Sub Extract_POL(strinputfile, lngTOTpno, blnPOL, blnIDAT, blnTcode, _ blnHPTAR, blnTerm, blnOccode, blnAge, blnPollines, … | |
Hi .... i'm getting the following error " 'buildListForward undeclared' when trying to compile this program. Please help ! [code=cplusplus] //Linked lists //Pg.288 #include <iostream> using namespace std; nodeType* buildListForward(); int main() { buildListForward(); nodeType* buildListForward() { nodeType *first, *newnode, *last; int num; cout << "Enter a list of integers … | |
Is there perhaps a single statement that will do the job ? Public Class Polis Public Nr As String Public Fonds As String Public KBR As String Public Land As String Public Usplit As String Public Tcode As String Public Reels As Integer Public BELBON(40) As Double Public BELEBON(40) As … | |
Hi.I don't know where to post this ... please help. I'm trying to put each character in a string into an array. Private Sub cmdNameslow_Click() Dim username As String Dim index As Integer Dim myArray() ReDim myArray(Len(username)) 'prompt username username = InputBox("Enter your name", "NAME") 'display username one charachter at … | |
Program to demonstrate the Stack class #include <iostream> #include <vector> using namespace std; template<class T> class Stack { public: Stack(); bool empty() const; T top() const; T pop(); void push(T element); void Output(T element); private: vector <T> pool; }; //constructor template<class T> Stack<T>::Stack() { pool.reserve(10); } //function to output the … |
The End.