User Profile

Collapse

Profile Sidebar

Collapse
jerico
jerico
Last Activity: Jan 10 '07, 06:51 AM
Joined: Sep 10 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jerico
    started a topic Global element vs. Root element
    in XML

    Global element vs. Root element

    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
    See more | Go to post

  • jerico
    started a topic Non-ascii character in xml document
    in XML

    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
    See more | Go to post

  • jerico
    replied to interview question
    in C
    Thanks.

    jerico
    See more | Go to post

    Leave a comment:


  • jerico
    started a topic interview question
    in C

    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
    See more | Go to post

  • jerico
    started a topic size of JComboBox
    in Java

    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() ;...
    See more | Go to post

  • jerico
    replied to problem with setIcon()
    in Java
    Thanks sir.You have saved me.

    Jerico
    See more | Go to post

    Leave a comment:


  • jerico
    replied to problem with setIcon()
    in Java
    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=...
    See more | Go to post

    Leave a comment:


  • jerico
    started a topic problem with setIcon()
    in Java

    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();...
    See more | Go to post

  • jerico
    replied to constant string
    in C
    I would like to learn it from you.In my previous post,you explained it very thoroughly.Plea se.

    Jerico
    See more | Go to post

    Leave a comment:


  • jerico
    started a topic constant string
    in C

    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
    See more | Go to post

  • jerico
    replied to pointer to string
    in C
    Thanks.

    Jerico
    See more | Go to post

    Leave a comment:


  • jerico
    replied to pointer to string
    in C
    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?

    Jerico
    See more | Go to post

    Leave a comment:


  • jerico
    replied to pointer to string
    in C
    ok.But what about the memory allocation for this program?

    Jerico
    See more | Go to post

    Leave a comment:


  • jerico
    started a topic pointer to string
    in C

    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);
    }
    ...
    See more | Go to post

  • jerico
    started a topic homework
    in C

    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
    See more | Go to post

  • jerico
    started a topic recursion and stack----help banfa
    in C

    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);...
    See more | Go to post

  • jerico
    replied to macro size
    in C
    Thanks Banfa.

    Jerico
    See more | Go to post

    Leave a comment:


  • jerico
    replied to macro size
    in C
    Thanks Banfa.But I would also like to know the things that affect the size of the executable.

    Jerico
    See more | Go to post

    Leave a comment:


  • jerico
    started a topic macro size
    in C

    macro size

    Hi.Does a macro increase the size of the executable ?On which factors the size of a executable depends?

    Jerico
    See more | Go to post

  • jerico
    replied to pass by reference in c----help banfa
    in C
    no offence meant..take my olive branch..jerico
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...