- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re:
Hi!, I have a bit of a problem here. I am looking into a few options. First of all, I have a program that was written in GWBASIC and it runs great on a DOS machine. It will even run in Windows 2000 under QBasic if you run it from … |
|
Ideally I'd like to do it with a list comprehension. Something like this [CODE]result = [(key, value)for key in dict.keys(), value in dict.values()][/CODE] but clearly that isn't the right format. Any suggestions? EDIT: This seems like what I want to do, but it doesn't work: [CODE]result = [(dict.keys[i], dict.values[i]) for … |
|
Re:
Kinda had an idea for artificial intelligence, though I don't think it's original. I don't know much about AI, so I'm taking a shot in the dark. My idea comes from biology and evolution (not new in computer science). The 'algorithm' for evolution is simple. Lets say you have a … |
|
I'm having a problem which can be exemplified by this python (3) code: [CODE] def askname(): sys.stdout.write("What is your name? ") x = sys.stdin.readline() sys.stdout.write("Hello, "+x) [/CODE] When I run it, I expect to get the prompt, type in my name, and then get the greeting. Instead, it prompts for … |
|
I'm wondering if there's a way to open standard I/O as a stream, so I can write and read character by character. Something like [code] handle = open(stdio) [/code] Any ideas? |
|
I'm trapping the onKeyPress event of a textarea, and I'm wondering if there's a way to prevent the key from also being typed into the textarea if it's a certain key. I have tried stripping off the last character from the value property, but it seems that the character is … |
|
I'm probably going about this in the wrong way, but I have a stack of Objects, and some of these can be ArrayLists. I want to be able to pop an object that is actually an ArrayList off the stack, unbox it, add something, and then pop it back on. … |
|
Re:
anyone here know lisp? i'm trying to code a trie in list. i know what to do as i already did it in ruby and python. i just need some guidance with doing the same. reply to this thread if you know lisp or contact me directly at< snipped email> … |
|
As far as I can tell, this method is returning a blank line every other line, but I can't figure out why: [CODE] public static List<string> plain(string path, int num) { List<string> result = new List<string>(); StreamReader reader = File.OpenText(path); string line; int i = 0; while ((line = reader.ReadLine()) … |
|
Re:
We have an ancient WordPerfect Office Notebook 3.01 program that contains my firm's file room tracking and numbering data. The file that contains the information is named: matters.fil and I have been unable to find a way to convert the data to a more current file. I can't even find … |
|
Re:
Hey all, I have been reading some older posts on line/list manipulation, but don't quite understand exactly how to implement all of the tools that you guys are using (line.strip() for example) to get what I need. Essentially, I have a working program that iterates through data and outputs it … |
|
I'd like to extract a column from a dataGridView and add it to a dataSet. Apparently I can't cast a dataGridViewColumn to a dataColumn like this [ICODE]DataColumn col = (DataColumn)inputGrid.Columns[0];[/ICODE] even though they seem like they're holding essentially the same thing. Any suggestions you have would be great, I'm still … |
|
Re:
Hi All, i m currently making a project on departmental store. i m facing a problem in it. i m facing the same problem while Billing and at the time of stock maintainance. the problem is as follows: As seen in many departmental stores there may be different packing of … |
|
I've managed to figure out how to create tables in a dataset, fill them with data, and link one of those tables to be displayed in a DataGridView. It works great when the selectionmode is by row, row header, or cell, but unfortunately for this project I'd like the user … |
|
Is there a way to use the NumericUpDown control without a maximum or minimum value? |
|
I'm storing a bunch of data in nested collections like this: Dictionary<string, (holds tables) .....Dictionary<string, (holds columns) ..........Struct{ ...............string type (names the type of data in column) ...............List<string> values (values for column) ..........} .....> > Anyway I want to be able to display one of the individual tables (by column, … |