No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I am working on an application that will keep an eye on specific folders on a computer and monitor whether a modification will occur, I am wanting the capability to monitor Windows OS, OS X, Linux. I am planning on developing this in python, from what I have been able … |
|
Hi - I have a project I am going to be working on which will be a python gui. After meeting with the user yesterday I have found out that the computer this application will run on will not have internet access always. Which brings me to my question, how … |
|
Hi - I am working through learn python the hard way and I am trying to practice using nosetests command with the "game" I created. The problem when I run nosetests it works fine until it is time to test a class that has raw_input in it, then it just … |
|
Hi All, I have a project I am going to be starting shortly, just recieved the specs. I plan on using python with flask for this project and the question I have (for now) just has to do with the python. My question is, this calculator is going to calculate … |
|
Hi all - Working on teaching myself some python and have some code I am working on, I am at a point where I would like to update a parent class variable from within a subclass, I am wondering what is the proper method for doing this. Something similiar to … |
|
Re:
hi ihave create simple stored procedure for test in sql server 2008 studio then i run it inside sql query : exec test it gives me red line under test (strored procedure name) and when mouse come over it tolled me "could not find stored procedure test" then i go … |
|
Re:
def verifyNeighbor (boardWidth, boardHeight, neighbor, me): my_row=me/boardWidth neighbor_row=neighbor/boardWidth if my_row==neighbor_row and abs(me-neighbor)==1: result=True else: result=False my_column=me/boardHeight neighbor_column=neighbor/boardHeight my_column=neighbor_column if my_column==neighbor_column and abs(me-neighbor)==boardHeight: result=True else: result=False x=boardWidth*boardHeight if neighbor>x: result=False else: result=True if neighbor<0: result=False else: result=True return result given a board of height like 4,5 etc and a width of … |
|
Re:
# VARIABLE DEFINITIONS name="" adress="" city="" state="" zipcode="" course1="" course2="" course3="" course4="" course5="" #----------------------------------------------------------------------- # CONSTANT DEFINITIONS courses= "Enter courses name (Type 'STOP' when finished) :" pointsR = "\tEnter points received ( Type '9999' when finished) :" pointsP = "\tEnter points possible for this assignment :" #----------------------------------------------------------------------- # FUNCTION DEFINITIONS … |
|
Re:
write a program in vb.NET to generate the Premiere league table? Meaning the programme will generate the match played, win, loss, goals against, goals in favor, and the points for each team. This is a sample of how the table should do; Position|Team|MatchsPlayed|Wins|Draws|Loss|GoalsFor|GoalsAgainst|GoalDifference|Points Thanks iN Advance |
|
I have to be missing something obvious here right? I ran test on all the variables and everything looked like it was correct when i > val the loop kept running. Any suggestions? Thanks x = raw_input(":") def whileloop(val): i = 0 numbers = [] while i < val: print … |
|
Hey guys I am writing my first program ever in java starting tonight and all has actually gone smooth which has been a surprise but I have run into a problem with an if else area. Basically, what I am suppose to be doing in this section is the user … |
|
I am working on a small program to hopefully use for my work and what I have so far is there is a home page where the user can select the number of forms they desire, which will then lead them to a page where the forms are. I want … |
|
Hey guys I am having issue with declaring an iterator of type vector. I know there are other errors within this file but I am more concerned with why these declarations arent working. Everyone gives me an error saying something along these lines for each iterator heapsort.h:45: error: expected `;' … |
|
Hey guys I am trying to print the contents of a map container I have. I seem to be getting a nasty error from the compiler which seems to come from the pos = wordList.begin() part. any suggestions? [code=cplusplus] map<string, unsigned>::iterator pos; for(pos = wordList.begin(); pos != wordList.end(); ++pos) { … |
|
Hey guys I am writing code that uses a dynamic casts then prints out some objects. What I am having trouble with is my code test as null when it isn't suppose to. Here is what I got and the dynamic cast code looks dead on to me. Maybe not … |
|
I am working on a doubly linked list assignment for my class and I am getting a segmentation fault on my test for the copy constructor. I don't know if the problem lies within my copyList method or my copy constructor logic. Any assistance be great. Here is my header … |
|
I get the warning control reaches end of non-void function and I'm not seeing what causes it. [code=cplusplus] double ExprTree::evaluate(TNode* p) const { if(p->data == "+" || p->data == "-" || p->data == "*" || p->data == "/") { double op1 = evaluate(p->left); double op2 = evaluate(p->right); if(p->data == "+") … |
|
I am writing a method that does insertion into a doubly linked list and I was looking for some assistance with my code to see if I was heading in the write direction and what needs to be fixed to make this work. [B]Instructions[/B] template <class T> Iterator<T> List<T>::insert(Iterator<T> pos, … |
|
For some reason I am having trouble with just returning the address of the data field being pointed to by the node pointer. [code=cplusplus] template <class T> T* Iterator<T>::operator->() const { return *nodePtr->data; } [/code] |
|
I am writing a iterator class which I am having no problem with yet my problem I am having now is I need to declare some methods as Iterator in my List class and I am getting errors from that. [code=cplusplus] template <class T> class List { friend std::ostream& operator<< … |
|
I need to return the size of a doubly linked list and I am having trouble thinking of the logic to go about doing this. template <class T> int List<T>::size() const Returns the current size of the list; i.e., the number of data items currently stored in the list. Since … |
|
I am working with traversals for the first time and am running into some errors with my them I am just going to post my preorder code because I am gettin the same error for post and in order. The Error: BSTree.h: In member function Ć¢void BSTree<T>::printPreorder() const [with T … |
|
I am writing a function that inserts an item into the rear of the queue. [code=cplusplus] template <class T> void Queue<T>::pushBack(const T& item) { QNode<T>* newNode; newNode = new QNode<T>[item]; if (empty()) qFront = newNode; else qRear->next = newNode; qRear = newNode; qSize++; } [/code] It seems like line five … |
|
I am having trouble with my copy constructor for a Deque program I am writing. It just does not seem to be doing any copying anyone notice a quick fix on this? [code=cplusplus] Deque::Deque(const Deque& oldDeque) { dArray = new int[oldDeque.dMaxSize]; int sub = oldDeque.dMaxSize; for (int i = 0; … |
|
Been working with operator overloading for the first time and am running into quite the standstill with this one. I finally got rid of the code I had written and decided to start from scratch. If anyone has any advice on how to code this for me it be a … |
|
I am writing a method that has to do with strings and I was stuck on how to go about coding this. Any help getting it started or tips at all would be great. Thanks. MyString::MyString(const char* s) This constructor takes a pointer to a constant C-style string as its … |
|
Today is the first day I have attempted Operator Overloading and am running into a few errors so any assistance would be great! The first one I'm having issues with is here: const MyString& operator=(const char* rightOp) The assignment operator should also be overloaded to allow assignment of a C-style … |
|
I have been working on this program for my class and I have everything working fine it seems up until I get my New Balance output. What I get for the output is below. Date Account Type Amount New Balance 06/19 9858-5420-3025-7452 P 5500.00 -2694.35 06/19 1111-1111-1111-1111 C 430.00 -2264.35 … |
|
Hey, I'm writing a function that searches for an id in an array of a structure, for some reason it returns -1 everytime, so I was just hoping another set of eyes could help me clarify this. [code=cplusplus] int searchAr(student studentar [], int size, int searchid) { int i; for(i … |
|
Hey, I'm working my first program that includes structures. For some reason though I have having errors with my getline. [code=cplusplus] inFile.getline( studentar, 20 ); [/code] My getline is being used in a function, so I don't know if that effects anything. The studentar array is declared as type student … |