Hi, I am a beginner in xml.I am puzzled about the difference between global element and root element.Any explanation would be greatly appreciated.
Jerico
User Profile
Collapse
-
Global element vs. Root element
-
Non-ascii character in xml document
Hi,I would like to know how non-ascii characters can be represented in xml documents?Can utf-8 be used?
jerico -
interview question
Hi..I recently faced this question in an interview.How to multiply a number by 7 without using multiplication operator?I could not answer it.Thanks for any reply.
jerico -
size of JComboBox
Hi, I am developing an application for which I need to increase the size of the JComboBox.But it is not getting increased.I used the following technique:
Container cont;
JComboBox valueTypeBox ;
valueTypeBox = new JComboBox();
valueTypeBox.ad dItem("asia");
valueTypeBox.ad dItem("india");
cont = getContentPane( );
GridBagLayout theLayout = new GridBagLayout() ;... -
-
Hi,this is the program containing the problem.Sorry, I could not make the indentation proper.
jerico
public class my extends JFrame implements Runnable
{
private Container con ;
private GridBagLayout gb ;
private GridBagConstrai nts gbc;
private Icon bug,bug1,bug3;
private JButton c1,c2,c3,c4,c5, l1,l2,l3,l4,e1, e2,e3,e4;
Thread runner ;
Random rg=...Leave a comment:
-
problem with setIcon()
Hi,
I am developing an application which needs to dynamically show whether a host is up or down.I have used buttons on which i am pasting the icon indicating up or down.So, when a node is down, I am replacing the icon that indicates up with the icon that indicates down using setIcon() function.But instead of changing the icon a NullPointerExce ption is generated.For example,
private JButton c1;
JButton c1 = new JButton();... -
I would like to learn it from you.In my previous post,you explained it very thoroughly.Plea se.
JericoLeave a comment:
-
constant string
Hi.I have some confusion regarding a constant string and constant pointer to a string.
char *str="hello";
Here I think "hello" is constant so we cant modify it.Then what about
const char *str="hello" and
char *const str="hello"?
Please explain it with examples.thanks .
Jerico -
Thanks.but I have two question-
1.Isn't the string in the main() a constant string?Why are we not getting any eror here even sfter modifying it?
2.Can you give me the sequence in which various addresses are pushed and popped out from memory?
JericoLeave a comment:
-
ok.But what about the memory allocation for this program?
JericoLeave a comment:
-
pointer to string
Hi.We have the following program..
#include<stdio. h>
#include<stdlib .h>
#include<string .h>
void fun(char*);
int main()
{
char *t="hello";
fun(t);
printf("%s",t);
return 0;
}
void fun(char *r)
{
r=(char*)malloc (15);
strcpy(r,"world ");
printf("%s",r);
}
... -
homework
Hi.I need to create a stack of queue and a queue of stack.I know the structures of queue and stack.But not been able to build the above mentioned data structures.Than ks for help.
Jerico -
recursion and stack----help banfa
Hi.I know that recursion uses stack and a recursive function call itself until a terminating condition is satisfied.But i get problem in visualizing them..for example how the following program is executing...
void fun(int);
int main()
{
int a=3;
fun(a);
return 0;
}
void fun(int a)
{
if(a>0)
{
fun(--a);
printf("%d",a);... -
Thanks Banfa.But I would also like to know the things that affect the size of the executable.
JericoLeave a comment:
-
macro size
Hi.Does a macro increase the size of the executable ?On which factors the size of a executable depends?
Jerico -
No activity results to display
Show More
Leave a comment: