Search:

Type: Posts; User: blindleaf

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    1,469

    here's my code now: #include ...

    here's my code now:



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

    typedef struct{
    long id;
  2. Replies
    10
    Views
    1,469

    Crap here's my output: ...

    Crap here's my output:


    €õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ
    €õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ...
  3. Replies
    10
    Views
    1,469

    ok i changed that but i dont know how to make it...

    ok i changed that but i dont know how to make it stop once it gets to "####" the code i have now isn't doing that, please can someone help?
  4. Replies
    10
    Views
    1,469

    ok here's the code now, and the errors that are...

    ok here's the code now, and the errors that are with it:



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

    typedef struct{
    long id;
  5. Replies
    10
    Views
    1,469

    Inputing values

    ok look i want to input something like this:

    Yellow_Card
    Blue_Dress
    Orange_Hat
    Purple_Noodle
    Green_Fan
    Lovely_Sam
    Cheesy_Freddy
    Marketing_Mark
  6. Replies
    4
    Views
    1,526

    ok whats another way to write this: for (i =...

    ok whats another way to write this:

    for (i = 0; i < margin; putchar(' '), i++) ;
  7. Replies
    4
    Views
    1,526

    what does this line of code mean?

    what does this line of code mean exactly?

    p = strtok(line_in, " \t<>\n");
  8. Replies
    2
    Views
    1,920

    Help with code segmentation fault

    ok heres the code i have now i keep getting a "Segmentation Fault (core dumped)" error can anyone see why? i think it has to do with the loop that i have highlighted in red.



    #include <stdio.h>...
  9. Replies
    2
    Views
    859

    ok i've added the check for the full word "end"...

    ok i've added the check for the full word "end" but i dont know what all this means:




    if (scanf("%*[^0123456789]%d%*[^\n]", &gem_value[i]) != 1)


    can anyone explain that to me? does it...
  10. Replies
    2
    Views
    859

    help with this input please

    ok i've changed the code around some, but this way doesn't work heres the code, i need it to take in the input



    11 6
    Ruby 2
    Emerald 1
    Topaz 3
    Diamond 4
    Sapphire 3
  11. Replies
    5
    Views
    1,623

    i can't use fgets

    i can't use fgets
  12. Replies
    5
    Views
    1,623

    ahhh i still can't figure this out here's what i...

    ahhh i still can't figure this out here's what i have now, but its basically doing the same thing can anyone help?




    main()
    {
    char board[30][30];
    int b_rows, b_cols;
    char...
  13. Replies
    5
    Views
    1,623

    is there a way to store just the first letter of...

    is there a way to store just the first letter of the name in the first array and then the number in the second without using strings? Again i only need to store the first letter in the array not the...
  14. Replies
    5
    Views
    1,623

    Input help needed

    ok i'm trying to input the following input into my program:




    4 6
    Ryan 4
    Peter 5
    Harold 2
    John 9
  15. Replies
    2
    Views
    1,336

    lil problem, i'm an idiot

    ok why does my program not even allow me to enter in a character for the "c" variable?

    heres the code:


    #include <stdio.h>

    main()
    {
    int board[30][30] = {{0}, {0}};
  16. Replies
    4
    Views
    1,304

    just curious how about this: * ** ...

    just curious how about this:



    *
    **
    ***
    ****
    ***
    **
  17. Replies
    4
    Views
    1,304

    i can't use break;

    i can't use break;
  18. Replies
    4
    Views
    1,304

    ahhhhh a lil more help

    ok here's what i need when variables are base1=4 and height1=6:



    *
    **
    ***
    ****
    ****
    ****
  19. Replies
    0
    Views
    3,994

    trapezoid code

    ok i have some code for a trapezoid but what code will make this work with specific height and base inputs? here's what i have:



    for (row = 1; row <= height1+1; row++)
    {
    for (space =...
  20. Replies
    3
    Views
    890

    need a lil help with another loop

    ok i have loops that print out triangles like this:



    *
    ***
    *****

    and
  21. Replies
    1
    Views
    1,629

    ahh i can't figure out this loop

    ok i have a loop that will make a diamond, i can't get the freaking dimensions right, i dontk now what to change, i've been fiddlin around with the variables but can't figure out what to change by...
  22. Replies
    7
    Views
    1,972

    can anyone help?

    can anyone help?
  23. Replies
    7
    Views
    1,972

    ok the correct output for 1 5 6 0 would be a...

    ok the correct output for 1 5 6 0 would be a triangle with the base of 5 and height of 6. I know that this isn't possible but i want the second number to be the base input and the 6 for the height...
  24. Replies
    7
    Views
    1,972

    ok the problem that exists is that i dont know...

    ok the problem that exists is that i dont know how to make it work with the given height and base values, i need to have the base and height values incorportated into the for loops, anyone understand...
  25. Replies
    7
    Views
    1,972

    need a lil help with some loops

    ok here;s my code:



    #include <stdio.h>

    main()
    {
    int shape1, shape2, shape3, shape4, shape5;
    int base1, base2, base3, base4, base5;
Results 1 to 25 of 40
Page 1 of 2 1 2