Search:

Type: Posts; User: dianazheng

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Need explaination of the following function

    Does anyone know what is the following two function does. Can i have an explaination of that??



    void reverse(char s[])
    {
    int i=0,j;
    char a,b;
    j=strlen(s)-1;
    while(i<j)
  2. Replies
    16
    Views
    2,549

    Thanks.... i know where i have gone wrong, i did...

    Thanks.... i know where i have gone wrong, i did not put the printf statement properly, causing it to print out the answer that i don't want.....
  3. Replies
    16
    Views
    2,549

    #include #include void...

    #include <stdio.h>
    #include <string.h>

    void reverse(char []);

    int
    main(void)
    {
    char s[100];
  4. Replies
    2
    Views
    827

    Thanks.... i got it...

    Thanks.... i got it...
  5. Replies
    2
    Views
    827

    using of pointer

    Hi,
    I have write out a code that use a pointer and print out the sum of two squared value. I am not sure where i go wrong in the code, can anyone correct my error??
    Thanks.



    #include...
  6. Replies
    16
    Views
    2,549

    Ya.. got it, thanks everyone......

    Ya.. got it, thanks everyone......
  7. Replies
    16
    Views
    2,549

    why do you want to use "-2" in the "for" loop. ...

    why do you want to use "-2" in the "for" loop.

    for ( i = strlen(s) - 2; i >= 0; i-- ) {

    I try it with "-1" and it produce the same result...
  8. Replies
    16
    Views
    2,549

    Have a problem with the following code.

    Hi all,
    I know that there is something wrong with my code, can anyone pls help me to edit my code.
    What the code did was to take in a character and produce the reverse of that character.
    ...
  9. Replies
    11
    Views
    5,555

    Ya, i know that its better to use the functions...

    Ya, i know that its better to use the functions available.

    But i just want to know that how can we do that without using the available function.

    Also how the code will look like and exposed...
  10. Replies
    11
    Views
    5,555

    Ya i have tried and both give the same out put......

    Ya i have tried and both give the same out put...

    But both uses the function "toupper()" and "tolower()", is there any examples that does not use this two given functions and still produce the...
  11. Replies
    11
    Views
    5,555

    Sample C code that change character

    Hi all,
    First of all, i have to make it clear that i am not asking anyone to do my homework.

    All i want is, do anyone have sample C code that change all the lower case chacter to upper case...
  12. Replies
    11
    Views
    6,831

    Thanks i finally got my makefile working in...

    Thanks i finally got my makefile working in cygwin....

    It should be


    CFLAGS = -Wall -g -I/usr/include/libxml2
  13. Replies
    11
    Views
    6,831

    I have try each and everyone of the "CFLAGS" in...

    I have try each and everyone of the "CFLAGS" in my "makefile" and i am sure that i have the "libxml2.a" , "libxml2.dll.a" , "libxml2.la" and "xmlmemory.h" in the all the directory.



    CC = gcc...
  14. Replies
    11
    Views
    6,831

    yap ass ==> assignment.... No offend for that,...

    yap ass ==> assignment....
    No offend for that, that is just my shortcut for my assignment
  15. Replies
    11
    Views
    6,831

    I change my Makefile a little, to like this ...

    I change my Makefile a little, to like this


    CC = gcc
    # CFLAGS = -Wall -g -L/cygwin/usr/include/libxml2/libxml
    CFLAGS = -Wall -g -L/cygwin/home/Diana/ass1/ass/bin/labweek11/libxml
    LIBS =...
  16. Replies
    11
    Views
    6,831

    This is my make file: CC = gcc CFLAGS =...

    This is my make file:



    CC = gcc
    CFLAGS = -Wall -g -I/cygwin/home/Diana/ass1/ass/bin/labweek11/libxml
    LIBS = -lxml2

    outline: outline.o
    $(CC) $(CFLAGS) $(LIBS) -o $@ outline.o
  17. Replies
    11
    Views
    6,831

    problem with c and xml

    Hi all,
    I am currently writing a program that will involve C and libxml. The probelm is, when i run my program, it say something like "undefined reference to '_xmlNewNode ' ", so is there any way...
  18. Replies
    4
    Views
    2,068

    yap i have got them, thanks...

    yap i have got them, thanks...
  19. Replies
    17
    Views
    2,620

    I try using gdb to debug but i couldn't get...

    I try using gdb to debug but i couldn't get anything to print out, did i miss out something somewhere.

    This were the steps:


    $ ./solvemaze1 ulimit -c unlimited
    Segmentation fault (core...
  20. Replies
    17
    Views
    2,620

    you could give me a mulitple solutions, that...

    you could give me a mulitple solutions, that might not be the solution that i wanted but al least i would know that, oh they are so actually so many ways to do one thing and maybe from the solution,...
  21. Replies
    17
    Views
    2,620

    Sorry i wasn't meant to be rude or what, but i...

    Sorry i wasn't meant to be rude or what, but i feel that if every helper here is like you, no one will ask questions or ask for help in a forum.... Because all they get fort he reply will be, you...
  22. Replies
    17
    Views
    2,620

    If every helper is like you, no one will ask...

    If every helper is like you, no one will ask question in a forum....
  23. Replies
    17
    Views
    2,620

    Does anyone have any solutions or somthings about...

    Does anyone have any solutions or somthings about this error...
  24. Replies
    17
    Views
    2,620

    Yap my header files is in the same folder as my...

    Yap my header files is in the same folder as my all other files.

    This is one robot2 header file


    #include "navigation.h"

    char *robot_name();
    void start_at(int x,int y);
    enum Dir...
  25. Replies
    17
    Views
    2,620

    let say i have a maze like this. 6x6...

    let say i have a maze like this.



    6x6
    #E####
    #.#.##
    #...##
    ###.##
    ##X.##
Results 1 to 25 of 50
Page 1 of 2 1 2