Search:

Type: Posts; User: sumdude

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,447

    yes it compiles. i just re-copied it ...

    yes it compiles.

    i just re-copied it



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

    struct list_el {
  2. Replies
    5
    Views
    1,447

    linked list question

    First off let me say this is not Hw im trying to remember how linked lists work etc for my upcoming fall class: However what im trying to do is traverse a linear linked list thats sorted and when i...
  3. Replies
    1
    Views
    2,174

    double pointer in struct and queue

    Here is my situation

    I have a stack that contain's queues. Assume that we have struct queue and struct stack declared. s points to the struct.



    Now the problem is that it keeps printing the...
  4. Replies
    9
    Views
    1,486

    Question here concerning below. I use fgets to...

    Question here concerning below. I use fgets to read in an entire line from a file in the format: " text 5 1 2 33 34 52" with the first number telling how many number follows it. However how do i go...
  5. Replies
    9
    Views
    1,486

    Is this where sscanf comes in?

    Is this where sscanf comes in?
  6. Replies
    9
    Views
    1,486

    Why can't this be done while(action[i]!= " ")...

    Why can't this be done

    while(action[i]!= " ")
    {
    action1[i]=action[i];
    i++;
    }

    with i incrimented each time the loop executes.
  7. Replies
    9
    Views
    1,486

    read in from file.

    question. I'm trying to read in a line from a file in the form

    January 5 1 4 5 7 14
    April 7 4 55 67 54 23 8 99

    the above means that the first part is a string and the first number tells how...
  8. Thread: c menu

    by sumdude
    Replies
    11
    Views
    1,739

    ok why is it that the below works with the space...

    ok why is it that the below works with the space in the scanf. In my program without the space it skipped the scanf and continued to loop.




    do
    {
    ............

    scanf(" &#37;c", &a);
  9. Thread: c menu

    by sumdude
    Replies
    11
    Views
    1,739

    see i had that down and it wasnt working. still...

    see i had that down and it wasnt working. still trying here though
  10. Thread: c menu

    by sumdude
    Replies
    11
    Views
    1,739

    question. Is it a way to do a char to char...

    question. Is it a way to do a char to char compare.

    so say that i have

    scanf("&#37;c", &a)

    scanf("%c",&b)
  11. Thread: c menu

    by sumdude
    Replies
    11
    Views
    1,739

    Code is below

    Code is below
  12. Thread: c menu

    by sumdude
    Replies
    11
    Views
    1,739

    c menu

    in c i need to have a menu.

    pretty much

    blah blah blah
    then after all that executes you prompt for: Go again (y,n) then repeat the above steps.

    I want to do it in a DO function btw. I have...
  13. Replies
    11
    Views
    2,533

    still cant get this ting to work. now its...

    still cant get this ting to work. now its begining to print out some wierd characters.
  14. Replies
    11
    Views
    2,533

    ok here is what im getting Please enter...

    ok here is what im getting

    Please enter number of flips
    2
    HTHH
    HTHHT
    HTHHTTH
    HTHHTTHT

    why is this happen. Also i did declare in main ..... char sting[50]="HT"
  15. Replies
    11
    Views
    2,533

    so how can i resolve this problem?

    so how can i resolve this problem?
  16. Replies
    11
    Views
    2,533

    This is what i came up with but it only prints...

    This is what i came up with but it only prints the h's. any help?



    Can someone tell me where im going wrong please/
  17. Replies
    11
    Views
    2,533

    ok will try that out. appreciate the help

    ok will try that out. appreciate the help
  18. Replies
    11
    Views
    2,533

    ok. well correct me if i am wrong as i am just a...

    ok. well correct me if i am wrong as i am just a begining comp science. student. I was informed that i had to do a double recursive call for this to even work period. I dont know if it makes sense at...
  19. Replies
    11
    Views
    2,533

    This question concerns a recursive function i...

    This question concerns a recursive function i have to write. its basically has to take a number in that will represent the the number of times you flip a coin. I need a way to print out all possible...
Results 1 to 19 of 19