Hi all,
I am currently working with java and database conenctivity(us ing MSAccess)
I have a table Tree which is as follows:
Nodeid index CNodeid
2 1 6
2 2 8
2 3 12
5 1 3
5 2 10...
User Profile
Collapse
-
Can someone help me....with this code
-
traversing the tree and assigning the unique value for each node
Hello,
I am trying to traverse and tree and want to assign the node id for each node in the tree.
It would be great if someone helps me with it.
Here is the code which i am using and the problem is the nodes in the tree are repeating everytime and i want to visit each node only once and assign the node id to it.
protected void walk(TreeModel model, Object o){
int cc;
... -
help with database
Hi,
I am using MS access for database.
I am using java as the programming language and able to connect to the database and insert the values into the database.
The following is the code used for inserting the values into the database:
public void storeDB (String insertSQL){
try {
Statement st = dbConn.createSt atement();
st.executeUpdat e(insertSQL);... -
Traverse theJDOM Tree
Hi,
I am converting the XML documents into tree structure using JDOM.
Now I would like to parse the tree and store the entire tree structure and its information in the database(Access or Oracle)
Are there any API that I can use for this, or what functions can I use to do it.
Thanks!! -
Regarding JTree
Hi,
I am presently trying to display an XML document as a tree structure.
I am able to do it using JTree and SAX Parser.
Now I would like to get the parents of all non-leaf nodes and display them as sub-trees.
Does we have any function in JTree where I can retrieve the parents of non-leaf nodes and display them??
Please help.
Thanks!! -
Help needed with JTree
Hi,
I am converting a given html document into a tree structure and displaying it using JTree and DefaultMutable classes.
By using the html parser and the JTree functionality, I can display the html doc as tree structure, but now I would like to get the subtrees only of that tree when clicked on any of the nodes in the tree or else If I input the node, I need to display only the subtree associated with that node and... -
Hi,
Thanks for the reply!!
You say that they are several options for doing this.
Can you help me by specifying what are the options that are available which will help me out to sort out my problem.
Thanks!! -
displaying html as a tree structure
Hi All,
Dont know whether this is the right place to post this question, but any help in this is appreciated.
I am using an html parser to parse an html web page. Now I would like to display this parsed webpage as a tree strcuture with root node, parent nodes and leaf nodes.
I am using java for this.
I would like to know whether there exists any packages or libraries that directly converts... -
need help with html parser
Hi,
I am presently working on Java, where I am using Google Web Services to perform a search and get the relevant results, then I am also getting the source code of that particular link or page.
Now, I need an html parser in order to parse that web page and get few things from that page such as href links(I mean the information in the anchor tag the href link and the label associated with it). I need to do this, because... -
question regarding vectors
Hi,
I have a question regarding vectors.
I have declared a vector of strings as
vector<string> str;
and my input into the vector str is:
str[0] = A
str[1] = B
str[2] = C
is there any method, by which I can join the above three vector elements into one string as "ABC" and push back into the same vector or another vector.
else
if my vector... -
Getting comma separated values from a cell in gridview
Hi,
In the datagridview control, one of my column has multiple values separated by a comma
Is there a way to get individaual values which are separated by a comma from that particular cells?
Thanks in advance,
Brugu -
Hi Sicarie,
Can you please give me more details on what you have said, as I am not able to exactly grasp what you meant.
I have a large set of code where I have been using vectors, so now I will not be able to switch from vectors to sets.
What is the possible way to achieve this using vectors??
Thanks!!Leave a comment:
-
Delete duplicate elements in vector
Hi,
vector<string> str;
I have the vector filled with strings "a", "b", "c", "b", "c", "d", "a".
i.e
str[0] = a; str[1] = b; str[2] = c;.....and so on.
Now I would like to delete the duplicate elements in the above vector such that the vector only contains distinct elemets "a", "b", "c"... -
Regarding vectors
Hi,
Please look at the following code:
[code=cpp]
dependencies(in t i)
{
string str;
vector<string> fd;
cout<<"enter the attributes of fd"<<i<<endl;
cin>>str;
fd.push_back(st r);
}
int _tmain(int argc, _TCHAR* argv[])
{
int num;
cout<<"Enter the number of functionaldepen dencies"<<endl;... -
Hi,
My exact problem is clearly defined below:
Please look at the following code:
dependencies(in t i)
{
string str;
vector<string> fd;
cout<<"enter the attributes of fd"<<i<<endl;
cin>>str;
fd.push_back(st r);
}
int _tmain(int argc, _TCHAR* argv[])
{
int num;
cout<<"Enter...Leave a comment:
-
appending string or int to vector variable
Hi,
Is it possible to add an int or a string or a char to a vector variable??
For example if I declare a vector variable as follows:
vector<string> abc;
Can I append an integer value or some string value to the vector variable such that every time I call a function that has this declaration, it creates a new vector variable abc appened with the int or string value?
Is there any other... -
Thanks for the reply.
In the main program if I need to specify that change to another particular directory for a file, then what code can I write for that.
In the program, I want to specify by code that I am changing to this particular directory. How to do that.
Thanks,
RishiLeave a comment:
-
Regarding changing directories
Hi,
I am working on VC++. All the source files that I use for compiling the program are kept in the current working directory.
But I would like to specify different folders/paths for inputs when compiling the same program instead of putting it in the current working directory.
How can I do that.
Please help.
Thanks!!! -
Help needed with this code
Hi all,
I am presently working with folder and would like to find out the number of files in that particular directory.
But I am getting the following error:
error C2664: 'FindFirstFileW ' : cannot convert parameter 1 from 'const char *' to 'LPCWSTR'
the code is as follows:
[code=c]
#include "stdafx.h"
#define _WIN32_WINNT 0x0400
#include <windows.h>...Last edited by sicarie; Aug 7 '07, 01:52 PM. Reason: Code tags are on the right when creating/replying to a thread. Please use them. -
I am using Windows.
I have gone through the link given above for windows, but could not understand it properly.
Do we have any other methods for it.
Thanks!!Leave a comment:
No activity results to display
Show More
Leave a comment: