Search Results

Showing results 1 to 40 of 78
Search took 0.01 seconds.
Search: Posts Made By: nizbit
Forum: Python 1 Day Ago
Replies: 2
Views: 91
Posted By nizbit
self.movement = {"run" : {"run1" : (45, 55, 110, 120)
"run2" : (45, 55, 110, 130)
"run3" : (45, 55, 110, 140)}}

I would like load the...
Forum: Python 1 Day Ago
Replies: 2
Views: 91
Posted By nizbit
I have a dictionary that I would like to load from a file into a class variable. The dictionary holds configuration data. I would have different files for different configurations. I was wondering...
Forum: Python 7 Days Ago
Replies: 2
Views: 140
Posted By nizbit
Thanks very much for the help. Now I'm going to study your example.
Forum: Python 7 Days Ago
Replies: 2
Views: 140
Posted By nizbit
I need to be able to print at an offset where the second element of the second list matches up with the first element of the first list. For example have a's line up with the b's:


list = [[a,...
Forum: Python 7 Days Ago
Replies: 2
Views: 191
Posted By nizbit
Thats awesome!! That helps a lot. Thanks!!!!
Forum: Python 8 Days Ago
Replies: 2
Views: 191
Posted By nizbit
I'm trying to print horizontally not having any luck. I need to print
I#x where x one through the length of a list i.e.-I#1 I#2 I#3 I#4 etc. This is what I have which is syntactically wrong:
for...
Forum: Python 14 Days Ago
Replies: 3
Views: 197
Posted By nizbit
I have to correct my above statement. The slicing in afterBNEZ does take into account if there is code after BNEZ. If not, The slicing will return an empty list.
Forum: Python 14 Days Ago
Replies: 3
Views: 197
Posted By nizbit
I should be more clear when I mention parsing. I'm not using any parser generators or writing a parser. I'm parsing in the most basic sense, i.e-pulling what I want based on conditionals.

This...
Forum: Python 15 Days Ago
Replies: 3
Views: 197
Posted By nizbit
I need to parse an assembly program. I have no problems parsing a group of instructions or a group of instructions with one loop. For example:

LD R2, 0(R1)
...
Forum: Python 32 Days Ago
Replies: 1
Views: 179
Posted By nizbit
This is a very basic question, but I'm very new to python. I want to read data in a file. The data is between two delimiters. I'm not exactly sure how I can extract the data and skip the...
Forum: C++ Oct 11th, 2008
Replies: 0
Views: 302
Posted By nizbit
Forum: C++ Oct 9th, 2008
Replies: 6
Views: 1,719
Posted By nizbit
I was a little confused on what get() could do. I thought it would stop reading characters at a newline.



I want to ignore spaces, but I don't know if the file will contain spaces. I cannot...
Forum: C++ Oct 8th, 2008
Replies: 6
Views: 1,719
Posted By nizbit
This is what I came up with, but the output is all zeros

#include <iostream>
#include <fstream>
#include <cstdlib>
using namespace std;

int main(int argc, char *argv[])
{
//Testing for...
Forum: C++ Oct 8th, 2008
Replies: 6
Views: 1,719
Posted By nizbit
I am having a little bit of a dilemma. I have an input file that can have a number 1 through 9 or a asterisk. I am treating 1-9 as a character. I don't know if there is white space or new lines. ...
Forum: C++ Oct 1st, 2008
Replies: 15
Views: 982
Posted By nizbit
I don't believe there was any "dis-information" from "you'd ran it and it crashed" because before that statement I said my program compiled. Although, I should have been clearer about "multiple...
Forum: C++ Oct 1st, 2008
Replies: 15
Views: 982
Posted By nizbit
Compiler: Default compiler
Executing g++.exe...
g++.exe "H:\mylab3\Olympics.cpp" -o "H:\mylab3\Olympics.exe" -g3 -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" ...
Forum: C++ Oct 1st, 2008
Replies: 15
Views: 982
Posted By nizbit
Tried it and got linker errors to methods the linker could not find.
Forum: C++ Oct 1st, 2008
Replies: 15
Views: 982
Posted By nizbit
I thought I would get a linker error.
Forum: C++ Oct 1st, 2008
Replies: 15
Views: 982
Posted By nizbit
I'll add cout statements. I know how to use a debugger, but for only a single file-not multiple files.
Forum: C++ Oct 1st, 2008
Replies: 15
Views: 982
Posted By nizbit
I know its a lot but I don't know really where to start troubleshooting it. The seg fault does not give me any info where the error is.
Forum: C++ Oct 1st, 2008
Replies: 15
Views: 982
Posted By nizbit
I need major help. My program will compile but when I run it I get a segmentation fault. I don't know how to run a debugger with multiple files. Could someone please find when this error occurs? ...
Forum: C++ Sep 29th, 2008
Replies: 7
Views: 666
Posted By nizbit
Well the Contestant class contains strings of first name, last name, age, and country. At run time the user passes a input file with various commands and the info that Contestant class is supposed to...
Forum: C++ Sep 29th, 2008
Replies: 7
Views: 666
Posted By nizbit
Say I have a class named Contestant, could I declare an instance of the Contestant class as:

Contestant *c = new Contestant;
Forum: C++ Sep 28th, 2008
Replies: 4
Views: 618
Posted By nizbit
Thanks, I got it working.
Forum: C++ Sep 28th, 2008
Replies: 4
Views: 618
Posted By nizbit
It doesn't matter that I declared the Olympic class as a friend to the Event class?
Forum: C++ Sep 28th, 2008
Replies: 4
Views: 618
Posted By nizbit
The program I am working on deals with nested linked lists. I have a Olympics class that uses a linked list for events. Events have their own class with a linked list of contestants of a contestant...
Forum: C++ Sep 27th, 2008
Replies: 1
Views: 1,089
Posted By nizbit
I have a class named Contestant which holds all the info on a person playing a game. Then I have a game class for all the different games a contestant could be playing. My linked list in the game...
Forum: C++ Sep 27th, 2008
Replies: 8
Views: 648
Posted By nizbit
Great, it worked! Thanks to everyone for the help!
Forum: C++ Sep 27th, 2008
Replies: 8
Views: 648
Posted By nizbit
Ok, I cleaned up my code a bit from the previous post:

void game::DeleteContestantR(std::string first_name, std::string last_name, ListNode* &node)
//throw (ContestantException)
{
/* See if we...
Forum: C++ Sep 26th, 2008
Replies: 8
Views: 648
Posted By nizbit
Couldn't I compare by changing the statement to:

node->item->data member of the other class
Forum: C++ Sep 26th, 2008
Replies: 8
Views: 648
Posted By nizbit
No character arrays. item is defined by typedef as an instance to another class. first_name and last_name are C++ strings.
Forum: C++ Sep 26th, 2008
Replies: 8
Views: 648
Posted By nizbit
I have a recursive method that traverses a linked list for a first name or last name then deletes the node from the list. This is what I have:

void game::DeleteR(string first_name, string...
Forum: C++ Sep 22nd, 2008
Replies: 9
Views: 649
Posted By nizbit
Great. Thanks for the help.
Forum: C++ Sep 21st, 2008
Replies: 9
Views: 649
Posted By nizbit
Forum: C++ Sep 21st, 2008
Replies: 9
Views: 649
Posted By nizbit
Well class should not be in there. I thought I would have to make an instance so I could add a race car to the linked list.
Forum: C++ Sep 21st, 2008
Replies: 9
Views: 649
Posted By nizbit
Sorry, I fixed the typo. I am working on an assignment and templates can't be used. Also I would like to add that the example is not my assignment.
Forum: C++ Sep 21st, 2008
Replies: 9
Views: 649
Posted By nizbit
First I just wanted to say thanks for all the help everyone has provided for me before. I'm sure you wanted to reach through the internet and strangle me :) .

I having some difficulty with...
Forum: C++ Sep 17th, 2008
Replies: 3
Views: 888
Posted By nizbit
I'm being dense today, because I'm still not getting it.
Forum: C++ Sep 17th, 2008
Replies: 3
Views: 888
Posted By nizbit
I've been banging my head on this errors and can't seem to find where I went wrong. For any of the "set_" errors, set_ (as well as print) refers to a member function of another class . Please, any...
Forum: C++ Sep 16th, 2008
Replies: 1
Views: 579
Posted By nizbit
I have a class named SString, which is a user defined c style string class. The constructor for SString dynamically allocates a char array. Then I have a CD class which contains data about a...
Showing results 1 to 40 of 78

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC