Programming Code (840)
Scripts_Markup Code (257)
how to create Expandable and Collapsible Menus
write a c program which takes 20 numbers in an array as input from user and rearrange them in two different array defining even or odd
What are the disadvantages of XML?
can you please write a program for deadlock that can detect deadlock and to prevent deadlock.
could you please send the program code for multiplying sparse matrix in c????
write a vb script to check equal two 2*2 matrix
How can I create connection two blue-tooth mobile in j2me. please urgent
how to convert between arrays and strings
Write a script to delete all the files in a folder except one desired file.
program to bring a window to the front
write a code to generate pseudorandom numbes
How to find No of classes,Packages,No of Methods per Classes and Depth of Inheritance for selecting source code in windows form application using c# .net? (Source code is input Program. It may be Java or .net) Please help me..) Thanks..)
can everyone explain this code Private Sub DrawRect(rectSource As RECT, lngColour As Long) Line (rectSource.Left, rectSource.Top)-(rectSource.Left, rectSource.Bottom), lngColour Line (rectSource.Left, rectSource.Top)- (rectSource.Right, rectSource.Top), lngColour Line (rectSource.Right, rectSource.Bottom)- (rectSource.Right, rectSource.Top), lngColour Line (rectSource.Right, rectSource.Bottom)- (rectSource.Left, rectSource.Bottom), lngColour End Sub
Definition of priority queue was given. We have to implement the priority queue using array of pointers with the priorities given in the range 1..n. The array could be accessed using the variable top. The list corresponding to the array elements contains the items having the priority as the array index. Adding an item would require changing the value of top if it has higher priority than top. Extracting an item would require deleting the first element from the corresponding queue. The following class was given: class PriorityQueue { int *Data[100]; int top; public: void put(int item, int priority); // inserts the item with the given priority. int get(int priority); // extract the element with the given priority. int count(); // returns the total elements in the priority queue. int isEmpty(); // check whether the priority queue is empty or not. }; We had to implement all these class functions.