659 Topics

Member Avatar for
Member Avatar for troval

import java.util.*; public class n00883428 { public static void main(String[] args) { Scanner in = new Scanner(System.in); { int i; int j; int numPeople; int numCount; int upTo = 0; long memory; long startTime; long endTime; System.out.print("How many people are in the circle?"); numPeople = in.nextInt(); System.out.print("Enter number to count …

Member Avatar for troval
0
255
Member Avatar for CoilFyzx

Hello good day. Thank you for trying to help. My problem is as follows. A few columns in my table, use a JComboBox as the editor for their cells. Each cell, in a row (via JComboBox) presents the same choices to the user. The user is allowed to choose from …

Member Avatar for mKorbel
0
1K
Member Avatar for CPT

First, to explain what I want to do: I have a folder structure like this: BSDS300\images\test\ -which contains JPEG files, and some other files(only .jpg files are of interest) BSDS300\human\color\ -which contains many folders, in which I have .seg files with the same name as the .jpg file Example: BSDS300\images\test\3096.jpg …

Member Avatar for RikTelner
0
371
Member Avatar for ddanbe

I have some data in a table, but instead of using something like `string[,] myTable = new string[3, 2];` I wanted to use List, because my table can grow or shrink and I cannot do that easily with arrays. So I got something like `List<List<string>> myTable = new List<List<double>>(3)(2);` But …

Member Avatar for ddanbe
0
185
Member Avatar for mavtcr

Friends...A small problem I have a combobox in which I want to add list from a field from a ACCESS databas Table.It works well My code is here ACRS.Open "SELECT * FROM Salary1", CN, adOpenStatic, adLockOptimistic Sfm = ACRS!Month Do Until ACRS.EOF CmbSfm.AddItem ACRS!Month ACRS.MoveNext Loop My problem is , …

Member Avatar for Minimalist
0
203
Member Avatar for CoilFyzx

Hello good day. I am having trouble letting my listeners wait on each other. I have a 1. JComboBox 2. JList - groups 3. JList - students The choice from the JComboBox, clears and updates the groups JList by way of an actionlistener. The ListSelectionListener for the groups JList, then …

Member Avatar for CoilFyzx
0
752
Member Avatar for Vish0203

odd mountain is a list of odd numbers going up from 1 and then back to 1. e.g. odd_mountain of size 5 is [1,3,5,3,1] odd_mountain of size 4 is [1,3,3,1] Hint: use the list functions and a builtin function. Can anyone help me in this? all my tries are going …

Member Avatar for wshane796
0
294
Member Avatar for kRod

I have a question about the string.intersect method. I am not getting the results I expect. Dim lstChars1() As Char = "hello dolly" 'TextBox1.Text.ToCharArray Dim lstchars2() As Char = "help melanie" 'TextBox2.Text.ToCharArray Dim lst1 As New List(Of String) Dim lst2 As New List(Of String) For Each c In lstChars1 lst1.Add(c.ToString) …

Member Avatar for kRod
0
994
Member Avatar for zaxo311

I have following problem: I have 2 structures: Clients and items for example structure clients would have name and list of items from another structure asigned to this specific name I have to do this with singly linked lists. I simply have no idea how to do this would be …

Member Avatar for zaxo311
0
429
Member Avatar for nvnq

I have a java exercise follow: there are n machines of 3 type A,B,C, each machine has coordinates (x,y) and operate radius, with data get from a XML file, for instance: <machine> <number ="1"> <type>C</type> <cox>40</cox> <coy>80</coy> <rad>30</rad> </number> <number ="2"> <type>A</type> <cox>25</cox> <coy>35</coy> <rad>40</rad> </number> <number ="3"> <type>C</type> <cox>50</cox> …

Member Avatar for nvnq
0
185
Member Avatar for WebWebbington

Hi, Below is the code I am having difficulty making work: public function showLoginOut() { if (session==null) { return '<li><a href="login.php">Login</a></li>'; } else { return '<li><a href"logout.php">Logout</a></li>'; } } *^ Above is a PHP page, which holds functions I can use in a phtml document* <ul> <li><a href="index.php">Home</a></li> <?php function …

Member Avatar for Mohamed_26
0
206
Member Avatar for MartinSoukup

Hello guys, First of all sorry for my bad english. Is there any way how to calculate in listwiev? I have a list view with two columns, ID and Number, using searching from text box. SEARCH BUTTON foreach(ListViewItem ID in listView1.Items) { if (search.Text == ID.Text) { ADD BUTTON ListViewItem …

Member Avatar for KushMishra
0
243
Member Avatar for yann.bohbot.9

I'm having a small issue here with my linked list. I built a linked list with strings and it worked perfectly. Now since i'm using strtok() to separate the string I need help on storing the struct separately but keeping them connected. Hope i explained it well for now here's …

Member Avatar for Ancient Dragon
0
5K
Member Avatar for nadiam

there is a very frustrating problem with my queue linked list. the functions all work its just that after enqueue, dequeue or display the menu displays along with "Enter choice : Only one of the above can be your choice ". whats wrong? #include <stdio.h> #include <conio.h> #include <ctype.h> #include …

Member Avatar for nadiam
0
271
Member Avatar for nadiam

so this piece of coding is having a problem. namely the search funtion. it will search but the result would only be the first element. the second will not be seached. like for example first element is lily and second element is john. search for the name lily will result …

Member Avatar for Ancient Dragon
0
4K
Member Avatar for yann.bohbot.9

Hey everyone, I posted recently an issue that was almost resolved but I have a similar question but have different variables. I'm really new to C and I'm a bit confused. Like I said on the other post I need to seperate a string using strtok() and store the seperated …

Member Avatar for Ancient Dragon
0
250
Member Avatar for yann.bohbot.9

I'm new to C and I i have an assignment where I have to build a dictionary (Linked List). Basically the user inputs several words,year and their definitio likn this: Example: > love_#_2004_#_LOVING `trade_#_2001_#_INVEST` etc... Now what I need is to have a function that will scan the definition which …

Member Avatar for yann.bohbot.9
0
347
Member Avatar for yann.bohbot.9

Hi there everyone, I'm a bit new to see and I need your help please. I'm stuck with a merge sort problem where it's support to sort my nodes in lexicographical order. Can you please have a look on my code because i've posted everywhere and i'm not getting the …

0
243
Member Avatar for yann.bohbot.9

Hi there, I made a linked list program to add, delete, add in the middle and delete from anywhere. I'm searching to make a function to sort the string data that I have in lexicographic order. Here's my struct: struct node { char data[100]; struct node *previous; // Points to …

Member Avatar for Ancient Dragon
0
227
Member Avatar for dougy83

Hi all, Does anyone know how to quickly (i.e. O(log n) time) insert items into a sorted list? I'd prefer an existing working function if available; I didn't see any appropriate ones in boost or stl. Some background: I'd like to keep a constant sized sorted list, and insert items …

Member Avatar for dougy83
0
13K
Member Avatar for empuk2

Hello everybody...I'm new in C# programming but recently I have a problem and need to solve it. I hope you guys can help me. This problem only can solved with List and Dictionary. [CODE] using System; using System.Collections.Generic; using System.Text; using System.Collections; namespace ApplicantTestin { /// The DataObject class stored …

Member Avatar for walshregal
0
631
Member Avatar for nuno.freitas.meneses.monteiro

Hello guys, I am doing a Friend system on my website, and I did the friend request, to accept, but the friends list isn't alright in some part of code because it isn't take the correct id, anyone can help me? 1. <?php 2. 3. $users = $_SESSION['username']; 4. 5. …

Member Avatar for nuno.freitas.meneses.monteiro
0
325
Member Avatar for ariel930

Hi,I am having a hard time trying to do insertion sort on a singly link list containing single alphabets.I have spent hours doing this but still it wont work.Any help will be apprecited. Here is my code: # include <iostream> using namespace std; class node { public: char info; node …

Member Avatar for richieking
0
5K
Member Avatar for Sumith Asanka

Hi Guys i want a easy way of coding this, when user selects any item from the datagrid(Yellow Color Arrow), i want to change the selected item in the combo accoring(Red color arrow) to datagrid selected value. But combo has the ID and Name both thanks regards sumith

Member Avatar for Sumith Asanka
0
169
Member Avatar for NA7KR

How do I start with the drop down list disabled? <head> <script type="text/javascript"> function makeDisable() { var x=document.getElementById("mySelect") x.disabled=true } function makeEnable() { var x=document.getElementById("mySelect") x.disabled=false } </script> </head> <body> <select id="mySelect"> <option>Apple</option> <option>Banana</option> <option>Orange</option> </select> <br /> <input type='radio' name='campustype' value='in' onclick="makeDisable()" checked='1' /><label for='incampus'>In-campus</label><br /> <input type='radio' name='campustype' …

Member Avatar for NA7KR
0
280
Member Avatar for developer707

Hi to everyone, I am a begginer on php so maybe this question will appear to simple to someone. My issue is that I want to output a list with all .zip files that are in my site directory. Also for each file I want some details for exemple: Filename: …

Member Avatar for developer707
0
273
Member Avatar for flebber

Maybe a list comprehsnion is not the right way to go here. I want to define a nested list that a user can tell how many lists and how many entries in each subllist. Then have random call a value for each entry in the sublist, working on unique entries …

Member Avatar for TrustyTony
0
234
Member Avatar for Triryche

I know I have a fundamental problem, I do not fully understand List objects. Based on a user input from a list box I want to creat a different list named `icons`. I previously had issues with the `switch` function, seemed I was doing it at the class level, so …

Member Avatar for Triryche
0
260
Member Avatar for woomar

Hi. I was wondering if someone could explain to me how to make some new node point to the first element in a list.

Member Avatar for somjit{}
0
228
Member Avatar for woomar

Hi. I need help with my size method. I am using a single-linked list. I tested my code and it returns 0 all the time. /** This method returns the size of the current list. <br> * If the current list has no elements,it is empty. <br> * * @return …

Member Avatar for JamesCherrill
0
256

The End.