Search:

Type: Posts; User: ChoCo

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    16
    Views
    7,356

    thanks for ur concern i've figured out my...

    thanks for ur concern

    i've figured out my problem and finished counting

    thanks a lot everyone :)
  2. Replies
    16
    Views
    7,356

    my problem now is that i don't know what's wrong...

    my problem now is that i don't know what's wrong about my adding node part T_T;
  3. Replies
    16
    Views
    7,356

    else { ...

    else
    {
    current = current->next;
    }


    my current pointer in here doesn't seem to move anywhere but staying at the start.
    can...
  4. Replies
    16
    Views
    7,356

    why does i assign current to start?? i'm...

    why does i assign current to start??
    i'm confused now = =a
  5. Replies
    16
    Views
    7,356

    it's said sth like incompatible type of pointers...

    it's said sth like incompatible type of pointers

    but i think i've figured out my problem in the structure, it should be

    typedef struct node
    {
    char alpha;
    int freq;
    struct node*...
  6. Replies
    16
    Views
    7,356

    I have move the current thing in here, and the...

    I have move the current thing in here, and the program doesn't crash anymore :))

    if(start == NULL)
    {
    printf("test1\n");
    start =...
  7. Replies
    16
    Views
    7,356

    i don't really understand what you mean ??? = = ...

    i don't really understand what you mean ??? = =

    but i try taking out the allocate thing of current and it's still crashed...
  8. Replies
    16
    Views
    7,356

    Counting Frequency using linked list

    My current code is now

    #include <stdio.h>
    #include <ctype.h>

    typedef struct node
    {
    char alpha;
    int freq;
    struct node* next;
  9. Replies
    8
    Views
    1,435

    so if i also want to count the frequency of the...

    so if i also want to count the frequency of the space then i should use the fgets one
    because the fscanf doesn't read space, right?
  10. Replies
    8
    Views
    1,435

    May i ask a bit more, what is the difference...

    May i ask a bit more,
    what is the difference between these two
    >while(fgets(buffer,127,pInfile)!=NULL)
    >while ( fscanf( pInfile, "%s" , buffer ) != EOF )
    or are they the same?
  11. Replies
    8
    Views
    1,435

    Thanks for helping ! This clear my confusion :)

    Thanks for helping !
    This clear my confusion :)
  12. Replies
    8
    Views
    1,435

    the end doesn't include space bar right?

    the end doesn't include space bar right?
  13. Replies
    8
    Views
    1,435

    Please explain this code

    while(fgets(buffer,127,pInfile)!=NULL)
    {
    for(i = 0; buffer[i]; ++i)
    {
    buffer[i] = tolower(buffer[i]);
    printf("%c",buffer[i]);
    ...
  14. Thread: Recursion

    by ChoCo
    Replies
    3
    Views
    1,489

    Thanks a lot :)

    Thanks a lot :)
  15. Thread: Recursion

    by ChoCo
    Replies
    3
    Views
    1,489

    Recursion

    This program suppose to count the string length that are A-Z,a-z, and 0-9 using recursion but it counts everything, why??


    #include <stdio.h>

    int count(char string[])
    {
    int i = 0;

    ...
  16. Thread: never end loop

    by ChoCo
    Replies
    2
    Views
    1,160

    never end loop

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

    #include "structure.h"
    #include "valid.h"

    int checkCode(char* codeString,DATA_T* pResult)
    {
  17. Replies
    1
    Views
    5,413

    undefined reference to a function

    This is an unfinished file name immigration.c

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

    #include "structure.h"
    #include "modifyImmigration.h"

    int main(int argc,char*...
  18. Replies
    2
    Views
    1,369

    Thanks a lot ^^

    Thanks a lot ^^
  19. Replies
    2
    Views
    1,369

    Syntax error before a structure

    This is a file name valid.c


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

    #include "valid.h"
    #include "structure.h"
  20. Thread: why? please help

    by ChoCo
    Replies
    2
    Views
    986

    why? please help

    Why when i type "none" for drink type, it doesn't print BILL.
    Here is the code.

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

    #define MAX 30
    int main()
  21. Replies
    2
    Views
    26,378

    invalid lvalue in assignment

    When compile, the red line is
    error, invalid lvalue in assignment
    How to fix this?


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

    #define MAX 30
  22. Sorry to ask a lot, because i'm very new to c...

    Sorry to ask a lot, because i'm very new to c programming
    can you explain,
    1. what is while(1)?
    2. why do you use
    while(drink type length > 0); to loop?
  23. I mean it already loop until None already but I...

    I mean it already loop until None already
    but I also want to check if the user doesn't type anything, the program should ask again
    and if the user type in sth but it's not None, the program should...
  24. i see... is there a way to fix this? the...

    i see...
    is there a way to fix this?
    the program want to ask the type of drink until None
    but if the user type nothing, i want it to ask again.
  25. i mean the small loop of strlen eventhough i...

    i mean the small loop of strlen
    eventhough i type in sth, it still loops
Results 1 to 25 of 29
Page 1 of 2 1 2