DataStructure for client-server communication Programming Software Development by getmeusername …. Please help me how should I approach in creating such datastructure. Thanks Looking for suitable datastructure Programming Software Development by Slimmy …) or 2. Throw out the hashmap and apply a new datastructure that actually does what I want. Anyone got any suggestions… this? Im not to excited about writing my own specific datastructure for this since it's overall a fairly small task… Can u suggest any better link for datastructure explains with diagrams? Programming Software Development by ramjeev Can u suggest any better link for datastructure that explains with diagrams?It would be good,if any basic level explanation with algorithms. Re: DataStructure for client-server communication Programming Software Development by Paul.Esson Personally I would send the type followed by 2 bytes for the size ( unless the type dictated size ) For instance If : INT = 1; STRING = 2; Then sending the int 5 followed by the string HELLO would result in the following message 01 00 00 00 05 02 00 05 48 45 4C 4C 4F If you use the terminiating char for the string then you don… Re: DataStructure for client-server communication Programming Software Development by Paul.Esson You may want to encode and decode from some form of linked list, if you need anymore type information ( for instance, some messages may go to controller x and some to controller y, then just add a byte to dictate that as well ). Re: DataStructure for client-server communication Programming Software Development by getmeusername Thanks Paul. Is it possible to send all data in one shot ? Here number of data will be generated dynamically by some controller. So at one time client will have 5sets of varibale or at one some n sets of variable. I am looking for unique client-server code that will independent of number of data send in one shot. Your inputs will help me to design… Re: DataStructure for client-server communication Programming Software Development by Paul.Esson If you're using UDP 65,507 bytes is the largest size, for TCP it's 1GB. If you're using TCP there is very little reason not to send the data in smaller chunks, then combining the buffers again at the other end. TCP should deal with the order of the packets, but if you're going to take this approch you may also want to have 4 bytes at the start … Re: DataStructure for client-server communication Programming Software Development by getmeusername Thanks Paul...this would help me. Re: DataStructure for client-server communication Programming Software Development by Ancient Dragon UDP is not recommended for long distances because there is no guarentee that the packets will ever arrive. TCP is best for that. DataStructure help!! Programming Software Development by newbieha I have a class that contains two arraylists- student names and Ids I want to put them into LinkedHashSet( so, I can sort, delete, add and edit e student profile); I created a class called Student that contains setName getName setId getId and toString methods. now, I try to do something like [CODE]LinkedHashSet<Student> list=new … Re: DataStructure help!! Programming Software Development by JamesCherrill You have 2 nested loops, which will get you every possible combination of name & id. But what you want is just the matching name & id for the same student - something like [CODE]for i = 0 to (number of students) list.add (new Student(studentName.get(i), studentID.get(i)) ... for (Student s : list) { System.out.println(s.getName() + s.… Re: DataStructure help!! Programming Software Development by newbieha Thanks JamesCherrill. This is my delete method. can you see any errors? It outputs "not in the list"(I double checked my input and compare to the item in the list. Im sure they are exactly same. [CODE] String st; String st2; st=JOptionPane.showInputDialog("Enter a name (Ex: James Acosta)"); st2=JOptionPane.showInputDialog("… Re: DataStructure help!! Programming Software Development by JamesCherrill if(pn.equals(onestudent)==true 1. the == true is totally redundant. if(pn.equals(onestudent) the equals method inherited from Object compares pn and onestudent to see if they are exactly the same Object. But onepperson is a new Student object that you just created, so it's never the same Object. What you need to do is to override the equals method … datastructure Programming Software Development by rithish i would like to start data structures in c langauage.but i dont know even what is data structure and 0% about data structure.can u suggest me some books for data structure in c????? Re: datastructure Programming Software Development by rithish or even video tutorials in youtube links Re: datastructure Programming Software Development by Dean_williams Check it here http://dotnetslackers.com/Community/files/folders/data-structures-and-algorithms/entry28722.aspx and here http://ebookee.org/C-Data-Structures_65405.html More information can be found by searching google for data structures in C. Re: datastructure Programming Software Development by rubberman Get this book: Algorithms + Data Structures = Programs Author: Niklaus Wirth Publisher: Prentice-Hall Available from Amazon.com both new and used. FWIW, Wirth was the inventor of both the Pascal and Modula programming languages. The original edition of the book used Pascal for the examples, but the content is applicable to any programming … Datastructure (Sorting data) Programming Software Development by danieldane Hello there, My teacher in programming require to make a phone book style using C language and I almost done this project and I trying to sort up some minor problems. Would somebody our there help me? (please try to run this program by your own to see what I mean and use the password written in the code): In ADD PERSONAL PROFILE section, when … Re: Datastructure (Sorting data) Programming Software Development by Narue [QUOTE]The problem is, when I try to DELETE PERSONAL PROFILE. I can delete it but the PROFILE number still there. I want it to be deleted also when I delete the data.[/QUOTE] You need to do one of two things to truly erase the data: [list] [*]Overwrite the record in your file with default data (such as whitespace) [*]Rewrite your file and … Re: Datastructure (Sorting data) Programming Software Development by danieldane Ok thanks. I will try it later. Re: Datastructure (Sorting data) Programming Software Development by danieldane Hello one thing, could you give me sample code how to sort out: when I add PERSONAL PROFILE then save it and I can DELETE PROFILE including PROFILE NUMBER. I'm confuse now because of many thing in my head. Thank you. Re: Datastructure (Sorting data) Programming Software Development by Narue [QUOTE]I'm confuse now because of many thing in my head.[/QUOTE] Then simplify. If you're overwhelmed, throw stuff out until it becomes manageable. Once you have a bunch of manageable pieces working, putting them all together is easier. Re: Datastructure (Sorting data) Programming Software Development by rubberman Narue is right on the money here. The KISS principle is the foundation of good programming. Re: Looking for suitable datastructure Programming Software Development by Ancient Dragon You mean you want to sort the array without actually swapping array values? I have done that before but used a second array of intgers that represent the array indices. [code] float data[5] = {3,1,4,9,2}; int indices[5] = {0,1,2,3,4}; // sort the data for(int i = 0; i < 4; i++) { for(int j = i+1; j < 5; j++) { if( data[… Re: Looking for suitable datastructure Programming Software Development by Slimmy Looks promising! I'll try that out and get back to you, thanks. Re: Looking for suitable datastructure Programming Software Development by Slimmy Worked fine for me, thanks!. Marking thread as solved. Re: Can u suggest any better link for datastructure explains with diagrams? Programming Software Development by kvprajapati Take a look at this tutorial - [URL="http://www.leda-tutorial.org/en/official/index.html"]http://www.leda-tutorial.org/en/official/index.html[/URL] Re: Can u suggest any better link for datastructure explains with diagrams? Programming Software Development by ramjeev Thanks for the link..I ll check it out. Memory heap errors Programming Software Development by darelet …deviation: \t" + stdev); //printMatrix(data,haralik); dataStructure<uchar> *had; -------------------------------------------------------------------------------- Gabor ggb; <…; typedef float statDataType; class stats { public: stats(dataStructure<uchar> *datap); statistics<float>… Re: Memory heap errors Programming Software Development by darelet … *dataP, IplImage *g, int &Ex); int getMode(dataStructure<uchar> *dataP, int &Ef, int fx…[]); float getMean(int Efx, int Ef); float getVariance(dataStructure<uchar> *dataP, int Ex, float mean); … no error if I comment these two lines m.getStatistics(); dataStructure<uchar> *had; Gabor ggb; // error is…