hi;
need a program about hash table that uses an array of list of records(resolvi ng collision via chaining) and use the STL list ?
User Profile
Collapse
-
Hash table implemented using STL Lists
-
trial recursion
as i know that the memory of each recursive call is stored in a stack, so making many recursive calls may cause a stack overflow problem ,my question is what happens if we call factorial(5) and factorial (1000)? -
i need a simple code?
can someone help me by writing an iterative factorial function, and i have a homework says (compare the time complexity between iterative fatctorial and recursive factorial? -
is this main program right to this class?
i want u to check this main program if it is right? plz
Enum error_code{over flow,under flow,success};
Const int maxstack=100;
Template<class stacktype>
Class stack{
Private:
Stacktype entry [maxstack];
int count;
public:
stack();
error_code push(const stacktype & item);
erroe_code pop();
eror_code top(stacktype &item) const;
bool empty()... -
can you help in this programs?
i want to know what happens when running these programs:
void main()
{
int *p=new int[10];
while(p)
p=new int[1000];
*p=99;
cout<<*p<<endl;
}
void main()
{ double*p;
while(p!=null)
{
p=new double[5000];
p=new double[10];
for(inti=0; i<10;i++)
cin>>p[i];
for(i=0;i<10;i+ +)
}
c... -
everything is more than great but im still not able to find by regular expressions,i will run this program on the university computer so if it worked it will be good but if not i will tell the instructer that i couldnt handle it
so for now im very sorry if i was a big trouble for u and thaaaaaaaaanks alot for everything u have done and maybe i will need u soon in another project:)
thanks again -
plz im going crazy,i dont know what to do !! when i type a word and press the button find (the word disappears)!!!
and when i type an regular expression and press find it doesnt work
and when i open a word document the text area become dark and doesnt open it, i think we dont need for an open command
but now tell me what to do:( this is the code ,is it right till now?
import javax.swing.*;
import...Leave a comment:
-
import javax.swing.*;
import javax.swing.tex t.*;
import java.awt.event. *;
import java.awt.Contai ner;
import java.io.*;
import java.awt.*;
import java.util.Array List;
import java.util.regex .*;
public class Tamara2 extends JFrame implements ActionListener { //is allowed to listen for actions
private Container pane;
JTextArea area;
JFileChooser fc;
JPanel southPanel;...Leave a comment:
-
it still the replace and replace all doesnt work,and when i open any file it doesnt appear in the text area, and there is an important thing which is these packages should be included (they are for searching as regular expressions u know like we can put in the search area /much/ so it brings much or /[abcd]/ so it matches a or b or c or d !!! i think these packages for this use)
import java.util.regex .Matcher;
import java.util.regex .Pattern;...Leave a comment:
-
i hate the errors ,
tamara2.java:94 : inconvertable types
found:java.lang .integer
required:int int x=(int)(Integer )matches.get(i) ;Leave a comment:
-
ok done,but i have a question ,when the user choose open command it will open his files on his computer ,right?
now what nextLeave a comment:
-
the compiler gives me no error but when i come to execute it gives me this msg:
exception in thread "main" java.lang.NoCla ssDefFoundError :TamaraLeave a comment:
-
no im gonna be with u all the way,but there r more than one error :
tamara2.java=ca nt resolve symbol
import java.util.Scann er ; and the error sign is under the S !!!Leave a comment:
-
i added (replace all) and( find all) and there is no error :)
import javax.swing.*;
import java.awt.event. *;
import java.awt.Contai ner;
public class Tamara1 extends JFrame implements ActionListener { //is allowed to listen for actions
private Container pane;
public Tamara1() {
pane = getContentPane( ); //pane will now replace getContentPane( ) from now onwards
setTitle("Tamar a Omar");...Leave a comment:
-
i think that there are two missing buttons (find all, replace all) and the bordered space for the text that the user will enter to search for the missing word in it
sorry for annoying u, and im so gratefull for helping me:)Leave a comment:
-
i couldnt see the interface because i have this error
Tamara is not abstract and does not override abstract method actionPerformed (java.awt.event .ActionEvent) in java.awt.event. ActionListener
public class Tamara extends JFrame implements ActionListener { //is allowed to listen for actionsLeave a comment:
-
-
i dont konw how to write a code in java and i must do this project ,can anyone do it for me,plzzzzz i need this so badlyLeave a comment:
-
plz help me for this difficult project
i want to build a java program that can search for words in a text and can replace word by another one and the interface will be diveded as
1-a large space for a text that is chosen by user
2-a blank for written word
3-find command button
4-finf all command button
5-replace button
6-replace all
i think these packages will help
import java.util.regex .matcher;
import java.util.regex .pattern;... -
plz fix my program!!!
i asked for a program which declares a two dimensional array of type double using dynamic memory allocation and then delete this array but im a begginer in c++ and i dont know how to completly write it ,i tried and thats it
#include<iostre am>
using namespace std;
int main()
{
double *dPtr[5]= new double[5];
delete[]...Leave a comment:
No activity results to display
Show More
Leave a comment: