250 Topics

Member Avatar for
Member Avatar for HedoBum

This is stumping me...it's probably pretty obvious, but I'm working under medication for the flu... I finally got my form submitting to my database and to separate tables from the update.php script. Problem is, (I know this sounds trivial and I shake my head as I query) I can't get …

Member Avatar for HedoBum
0
134
Member Avatar for guru_iyer

I have been told to sort an array of structure(student) depending on one of its members(per) using bubble sort. I need to sort the 'student' structure in descending order of 'per'. Please help. I'm stuck!! [CODE] #include<stdio.h> #include<conio.h> struct student { char sname[20],dept[25]; int rollno; float per; }s[30]; void accept(int …

Member Avatar for guru_iyer
0
931
Member Avatar for kebbby

Please help with this new sorting algorithm. I implement it on VB but i cant get a correct output. It's a new sorting algorithm and the pseudocode was provided. Here are the informations about it. Here are the steps: 1. In a single pass on the array, the algorithm finds …

Member Avatar for Momerath
0
103
Member Avatar for danholding

hi there i need to collect the 6 latest backup files from a folder every day and currently working on a script to do this for me so far i have managed to pull the 6 latest files as shown in code below but the problem i have is most …

Member Avatar for danholding
0
108
Member Avatar for techie1991

I want to sort a list of dictionaries using the inbuilt sort() function for lists. The problem is I am not able to understand, how to give the function a key.. Example: [CODE] a={'name':1,'data':200} b={'name':2,'data':400} c=[a,b] [/CODE] Now, I want to sort the list c with the key being a['name']. …

Member Avatar for TrustyTony
0
222
Member Avatar for danholding

hey guy n girls i hope one of you can help me with this. plan of action is to : create a python script to... sort a list of files from a directory into sorted list with most recent modified date at the top. then I want to get rid …

Member Avatar for danholding
0
201
Member Avatar for elie_kfoury

Hey.. i'm making a java program with derby databse usin netbeans.. the problem is that when i crate table usin a sql query,netbeans automatically sort them by name..how can i let netbeans sort them by date of creation so i can switch between tables in order of creation??... thx for …

0
77
Member Avatar for ptemedia

I have a number of text files each with 4 pieces of data on each line: name, date, time and comment. I have used $fh to open and read the data and put them in 1 long variable called $AllComments. I then need to sort them by date and time …

Member Avatar for chrishea
0
2K
Member Avatar for Mrinny

Hi people, This is my first post here. It really is a nice community, especially for people who are not "qualified" programmers with the "attitude". I am a programmer by hobby and did not like being in any community previously. There are some really nasty folk. Great job guys! This …

Member Avatar for Mrinny
0
682
Member Avatar for insanely_sane

EDIT: This was moved from the Java discussion forum. It seems more appropriate to post it here. This is not exactly a homework assignment. I'm just doing it for fun ^^ Hey guys. I am currently just a 11th grade student but since I'm done the whole curriculum for my …

Member Avatar for insanely_sane
0
203
Member Avatar for insanely_sane

Hey guys. I am currently just a 11th grade student but since I'm done the whole curriculum for my Computers class already, I recently just started making extra stuff for fun. One of things I'm doing is Making a graphical/visual sorting applet. Something like : [url]http://www.cs.ubc.ca/~harrison/Java/sorting-demo.html[/url] I have my code …

0
105
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 lordbaddkitty

A datagridview is sorting numerical values (when clicking the datagridview column header text) in the wrong order based on the initial digit: 1 11 2 200 21 3 3000 4 456 Should instead sort as: 1 2 3 4 11 21 200 456 3000 As the columns are set in …

Member Avatar for lordbaddkitty
0
140
Member Avatar for addxztion

So uhm...I want to do the bubble sort and i found a code but actually i don't really know what's missing...ok...sorry but i am just a newbie and not so average of logic(lol. :p). My goal here is to complete this code, 'cause i tried to run it but it …

Member Avatar for addxztion
0
166
Member Avatar for mcatominey

HI, I have a script which reads an xml feed then uses a loop to insert information from that feed into a multi-dimensional array. I need to sort the array by 'day' before outputting, day is a dimension of the array. Below is a print_r() of the array after the …

Member Avatar for nileshgr
0
139
Member Avatar for P3druh77

Hi... i have a little problem on my code... HI open a txt that have this: LEI;7671;Maria Albertina da silva;xxxx@gmail.com; 9;8;12;9;12;11;6;15;7;11; LTCGM;6567;Artur Pereira Ribeiro;fdsdfsd@gmail.com; 6;13;14;12;11;16;14; LEI;7701;Ana Maria Carvalho;asasssas@gmail.com; 8;13;11;7;14;12;11;16;14; -------------------------------------------------------------------------------- LEI, LTCGM are the college; 7671, 6567, 7701 is student number; Maria, Artur e Ana are the students name; [email]xxxx@gmail.com[/email], …

Member Avatar for Aia
0
242
Member Avatar for nille_nerholt

I have a listview control in my project, runs in Visual C++ 6.0, that I want to make a sort based on column click. It works good when I have <1000 entries but when it goes over 1000 entries the sorting performance goes down. It takes about 10-15 seconds to …

Member Avatar for david.k
0
338
Member Avatar for Roy_Valentine

Can anyone help me fix this problem I have with my code. I am supposed to be writing a Binary Insertion Sort method that calls a binary search method. I have code that is working for in order integers, when tested on reverse order integers it works except it places …

0
117
Member Avatar for Santho786

Presently in this below code, I have 4 dynamic values, end user will be select degree from combo box, entering the values semester, Max marks and Obtained marks as numeric values. Once entered dynamic rows will be created and it also calculate the percentage by the formula (om/mm)*100 for each …

Member Avatar for Santho786
0
133
Member Avatar for sana zafar

Hey, I have to write a program using vectors that will input a list of positive integers terminated by a negative integer and output the unique numbers in the list in ascending order? Can anyone help me get started?

Member Avatar for Excizted
0
144
Member Avatar for seacase

I am having trouble adding the ability to order an integer array in both ascending and descending order. I have implemented the functions myself and am having trouble figuring out how to order them in reverse order. I am passing in a boolean variable to test which direction the array …

0
112
Member Avatar for DawnDenise

Volunteer C++ Gurus. Thank you in advance for your time. This site has saved my sanity. I am working with my longWords function and cannot get it to stop displaying the same value (2293264). I know that my code is a little janky because I modified it from array format …

Member Avatar for mattjbond
0
155
Member Avatar for shar88

is there any sample of java topological sort algorithm based on minimal vertex method. I also need to implement the ADT graph using adjacency lists representations

Member Avatar for dsmush
0
108
Member Avatar for kaushik259106

Hi Everyone, I am searching the most effective way of sorting a list of objects. Say i have a bean [CODE]public class MyClass { private string name; private string id; // Getters and setters } [/CODE] Now say we put some values in a List [CODE]List<MyClass> myClassList = new ArrayList<MyClass>(); …

Member Avatar for BestJewSinceJC
0
142
Member Avatar for pinknblu

It provides the average grade of an student. Assignment: How many students are in the class ? 3 Enter five test scores for student number 1 80 90 70 90 80 The average for student number 1 is 85 Enter five test scores for student number 2 100 60 60 …

Member Avatar for pinknblu
0
183
Member Avatar for Benjip

I'm stumped with a somewhat complicated 'lookup table' situation. I've tried many different methods to output the data I need (and in the order I need it) but I think I'm just going around in circles. Basically I'm trying to output a <select> dropdown form element, with serveral different <options> …

Member Avatar for darkagn
0
247
Member Avatar for xxunknown321

How do i compare two linkedLists so that the onutcome is a sorted linked list from least to greates. Heres my code so far. list1.txt 1 2 3 7 9 10 13 list2.txt 4 5 6 8 11 12 14 how do i compare the two and make it into …

Member Avatar for BestJewSinceJC
0
151
Member Avatar for Benjip

I'm hoping to get some help with sorting database results based on the results themselves. I have two tables in this example, one being 'product_category_lookup.table' and the other 'products.table'. The 'product_category_lookup.table' holds data which tells the website which products are associated with which categories. The reason I have a lookup …

Member Avatar for as.bhanuprakash
0
110
Member Avatar for TheWolverine

Hi all, I've spent the last week trying to sort this out, and the more I delve into it, the more confused I'm getting. I've done some background research (searched on google and here for sort function issues) and really I can't make head or tail of what's going on. …

Member Avatar for dusktreader
0
4K
Member Avatar for Narue

Consider the following program and input file: [code] #include <algorithm> #include <cstdlib> #include <ctime> #include <functional> #include <fstream> #include <iostream> #include <iterator> #include <string> #include <vector> #include "natural_compare.h" struct natural_less: std::binary_function<std::string, std::string, bool> { bool operator()(const std::string& a, const std::string& b) { return natural_compare(a, b) < 0; } }; std::vector<std::string> …

Member Avatar for dusktreader
7
2K

The End.