659 Topics

Member Avatar for
Member Avatar for Ims333

I've searched for two days for a way that when you press a button (In this case button15) that when its pressed, it will retrieve a .txt from online. Basically I need to turn this: [code=c#] DirectoryInfo di = new DirectoryInfo("C:\\"); FileInfo[] rgFiles = di.GetFiles("*.dll"); foreach (FileInfo fi in rgFiles) …

Member Avatar for Lusiphur
0
108
Member Avatar for kaydee123

Hello, I defined a list in a class and want to do a class containing get/set functions. How can I set or get a data struct (list element) that has variables of different type and each variable is taken separably as an input from the user (I do the input …

Member Avatar for jonsca
0
131
Member Avatar for intelfx

Hi there! I have a task - to compare 2 std::lists without taking elements order into account. That is, lists A-B-C-D and D-C-B-A are equal, but A-B-C-D and A-B-D-E aren't. We start with the following code [CODE] class T { ... public: bool operator= {...} } bool compare_lists(const std::list<T>& list_1, …

Member Avatar for intelfx
0
3K
Member Avatar for modalgvr

Hello, I need help to write a Python code in order to from this input (a string, len (data) = 5, len (data[0])=63): ["['1426', '1095', '1094', '1093', '1092', '974', '869', '1572']\n", "['1495', '1305', '1264', '1227', '1215', '1142', '1141', '1115']\n", "['1001', '997', '927', '904', '871', '776', '712', '612']\n", "['567', '538', '429', …

Member Avatar for TrustyTony
0
175
Member Avatar for kaydee123

I want to do a double linked list that has has in each element one operator(+-*/) and one value of type double. I am having trouble in defining the class of the list. Should I use C++ Class Template Specialization or what? [CODE] include<iostream> using namespace std; template <typename T> …

Member Avatar for jonsca
-1
125
Member Avatar for kaydee123
Member Avatar for echellwig

Hi, I'm looking to break up a file with space delimiters. Its really just a list of numbers with spaces in between them, and I need to put each of the numbers in a list as separate entries. However, they are all on one line like so: 5 7 6 …

Member Avatar for echellwig
0
175
Member Avatar for echellwig

Hi I was wondering if there is any way to created a series of lists in a for-loop so that the first list created is named NAME0 or name_0 or indexed in some way. What I have right now is [CODE]for j in range(int(L)): popsizelocus_j=[][/CODE] however, this is not working …

Member Avatar for TrustyTony
0
48K
Member Avatar for echellwig

Hi, I am trying to write elements from a list that I have created to an outfile using a for-loop with this code: [CODE]for j in range(int(Allele[i])): outfile.write(' allelelocus[j] * ')[/CODE] However when I do this I just get a whole bunch of allelelocus[j] in my out file. I was …

Member Avatar for echellwig
0
136
Member Avatar for echellwig

Hi, I am having some trouble using the int function on an element of a list. My code currently looks like this. [CODE]for j in range(int(L)): for k in range(int(Allele[j])): alleleslocus_j.insert(k,loci.readline())[/CODE] where Allele is a list of length L inputted by the user. I am having problems with the second …

Member Avatar for echellwig
0
175
Member Avatar for Illidanek

I have an issue with positioning of a JList in a JPanel, I am using absolute positioning, and I don't want to switch to gridlayout or any of that stuff cuz the whole program is in absolute positioning and it wud mess everything up. The problem is that once the …

Member Avatar for NormR1
0
618
Member Avatar for tulipputih

Hi everybody, I would like to have functionalities & interface like this [url]http://www.bluenile.co.uk/diamond-search?filter_id=0&track=head[/url]. Currently, the search result and checkbox are presented as in the above example. However, I am not sure of where should we keep the checked value to have something like in the bottom. ( all selected record …

Member Avatar for tulipputih
0
262
Member Avatar for andrewtrench

I would like to be able to create a list of all instances of a class. [URL="http://www.daniweb.com/forums/thread131805.html"]Another post[/URL] here described how to do it by appending to a list during the __init__ routine but since I am a real Python newbie (and even more of a newbie to classes) I …

Member Avatar for andrewtrench
0
9K
Member Avatar for billysim1

Ok so I have a problem that has been infuriating me for some time now and I really need to get it fixed. Basically I have a menu system, with three 'levels' each of which is a separate list that is styled slightly differently; my HTML code is this: [CODE] …

Member Avatar for billysim1
0
73
Member Avatar for circusfreak

Creating a program to read a text file full of words in alphabetical order. I then have to read it into a Linked List. The linked list should output total number of words, which I have managed to do. After this it needs to calculate the min and max depth …

Member Avatar for NormR1
0
130
Member Avatar for ca_eric

hi: want to replace all elements with the number of its depth in the difference list in prolog. such as: ?- deepList([a, [b]], L). L = [0, [1]]. ?- deepList([a, [b, c, [d, e]], f], L). L = [0, [1, 1, [2, 2]], 0]. Thank!

Member Avatar for ca_eric
0
149
Member Avatar for MaydayLove

Hey guys, I'm writting a program that reads a list of names from a file called name.txt and instert these names directly into a linked list in alphabetical order of [B]last[/B] names. For example, if the text file has these names: Henry Johns III, Albert Einstein, Henry Johns II, Mary …

Member Avatar for peter_budo
0
164
Member Avatar for nsutton

How can I randomly pick a string element out of a list or array? I'm making a typing aid and I have a method that contains lists of noun/adjectives and verbs. I need it to pick one thing out of each list and turn it into a sentence.

Member Avatar for nsutton
0
743
Member Avatar for dreadyteddy

Basically need help with one evil section of code! My program opens a start window which introduces the program. A start button leads to a second window with a number of buttons. The main two are "open" and "find restriction site". Im having problem with the code for the latter. …

Member Avatar for dreadyteddy
0
229
Member Avatar for TrustyTony

Here is some saved interaction in command prompt. [CODE]>>> type((1,2)) <type 'tuple'> >>> (3*x for x in (4,4)) <generator object <genexpr> at 0x00E73EB8> >>> tuple(x**2 for x in range(10)) (0, 1, 4, 9, 16, 25, 36, 49, 64, 81) >>> set(x for x in range(10)) set([0, 1, 2, 3, 4, …

Member Avatar for TrustyTony
-3
707
Member Avatar for nick22

I am very much a beginner and trying to create a linked list, asking the "user" to input 5 or 6 values. My problem is that I don't know the correct terminology or how to store the user's input so that I can create my pointer to the next value …

Member Avatar for WaltP
0
972
Member Avatar for drummy

Hi Group, Need some help. I'm performing some statistics on a txt file that has multiple columns using a collection list (vb.net 2008). My files can contain 100,000+ samples per file. How would I code my function to have it perform work on the first 3000 samples and continue the …

Member Avatar for drummy
0
151
Member Avatar for Valter Henrique

Hi everyone, i'm new in DaniWeb, so forgive me by some mistake, x) I need create a iterator, it can receive any kind of struct of STL, like map, vector, list, ... How i do that? Someone have any idea? Thanks by your attention. Best regards, Valter Henrique.

Member Avatar for Valter Henrique
0
103
Member Avatar for ismithx

Hello there I am looking for some help. How can I go about creating a list of JPanels in Java? I want them all to have subcomponents, to be created dynamically, and be able to return events. How can I do this? I have checked and I know I will …

Member Avatar for BestJewSinceJC
0
140
Member Avatar for bharatk

I have 2 lists: a=[0,1,5,7] b=[2,10,6,3] I need to get this list : c=[(b[0]+a[0]),(b[0]+b[1]),(b[0]+b[1]+b[2]),(b[0]+b[1]+b[2]+b[3])] I tried doing this using a for loop: [CODE] c=[(b[0]+a[0])] for i in range(0,(len(b)-1)): for p in range(i+1,len(b)): if i==0: c.append((b[i]+b[p])) else: c.append((c[i]+b[p]))[/CODE] I am supposed to get [2,12,18,21] but I am getting [2, 12, 12, …

Member Avatar for bharatk
0
97
Member Avatar for vegaseat

A short look at creating lists of file names or full path names using the versatile Python module glob. Glob follows the standard wildcard protocol.

1
3K
Member Avatar for clair0917

I'm just learning VB with the 2008 express edition. I'm trying to create a program that uses 3 list boxes. The first contains a list of products. After a search is preformed the second list box displays the products found. This is pretty simple, basic array stuff. My problem is …

Member Avatar for clair0917
0
133
Member Avatar for ashish.men

Hi, I am trying to create an automated trading system and am fetching data from an API (interactive brokers) API. I need to store 30 nodes of tick data( Tick is a reference type struct I have created) and store it in a linked list. When i start the system, …

0
90
Member Avatar for deeep

Hello Guys, I have implemented a linked list. And my output looks something like dis: ************************************************* The elements in the list : address is = 163196952 ADOC1100250100000119666 address is = 163196968 ADOC1100250100000119666 address is = 163196984 ADOC1100250100000119666 address is = 0 ADOC1100250100000119666 TOTAL NO OF ELEMENTS IN THE LIST ARE …

Member Avatar for jephthah
0
161
Member Avatar for fantum

hello, [B]I have an assignment for my one class at school where I am supposed to write a program that creates lists of people who have met. Each line of input is a space-separated list of the names of people who have met. If a person is in a group …

Member Avatar for Fbody
0
135

The End.