Search:

Type: Posts; User: WaterSerpentM

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds; generated 26 minute(s) ago.

  1. Replies
    7
    Views
    1,762

    wow strrev(strcpy(chara2[i],chara1[i])); ...

    wow


    strrev(strcpy(chara2[i],chara1[i]));

    actually works lol
  2. Replies
    7
    Views
    1,762

    its maybe easier to show you what im doing =] ...

    its maybe easier to show you what im doing =]

    the current output is:

    0
    01
    012
    0123
    01234
    012345
  3. Replies
    7
    Views
    1,762

    I'm not sure if its the right function to use,...

    I'm not sure if its the right function to use, basically:

    so, the function strcat() puts a char behind a string
    is there a function that puts a char in front of a string
  4. Replies
    7
    Views
    1,762

    using putchar()

    hey all again =]

    I'm having problems with the putchar() function, here is the code:




    putchar(chara1[i] + chara1[i-1]);
  5. Replies
    43
    Views
    1,914

    so, at the moment int i; ...

    so, at the moment





    int i;


    int int1[10];
  6. Replies
    43
    Views
    1,914

    is that what that means? change it to 10? ...

    is that what that means?

    change it to 10?

    or 26?
  7. Replies
    43
    Views
    1,914

    the output of this code is scrambled, any help? ...

    the output of this code is scrambled, any help?



    int i;


    int int1[10];
    char chara1[10][10];
    char chara2[10][10];
  8. Replies
    43
    Views
    1,914

    hello all, for my next calculation practice, I...

    hello all,

    for my next calculation practice, I want to output sequence of arrays like this

    0
    01
    012
    0123
    01234
    012345
  9. Replies
    43
    Views
    1,914

    maybe you don't know, but most English words has...

    maybe you don't know, but most English words has other words like it with 's' in it that means the same thing. that's why there are so many 's' words in the dictionary =]



    wonderful or...
  10. Replies
    43
    Views
    1,914

    is that google? their definitions aren't...

    is that google?

    their definitions aren't exactly correct if you ask me
  11. Replies
    43
    Views
    1,914

    ye i think they are the same word lol

    ye

    i think they are the same word


    lol
  12. Replies
    43
    Views
    1,914

    so, "looks more construct" is basically, code...

    so, "looks more construct"

    is basically, code which is more logical which takes less memory space and runs more efficiently, example:

    instead of


    printf("%d\n",inta1[0]);...
  13. Replies
    43
    Views
    1,914

    that was salem's coding originally, and it...

    that was salem's coding originally,

    and it looks more construct than yours
  14. Replies
    43
    Views
    1,914

    it works, it outputs: aaaaaaaaaa aaaaaaaaa...

    it works, it outputs:

    aaaaaaaaaa
    aaaaaaaaa
    aaaaaaaa
    aaaaaaa
    aaaaaa
    aaaaa
    aaaa
    aaa
  15. Replies
    43
    Views
    1,914

    check this out =] #include ...

    check this out =]



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


    int main() {
  16. Replies
    43
    Views
    1,914

    yup I get it entirely =]

    yup I get it entirely =]
  17. Replies
    43
    Views
    1,914

    so array[0] starts off as nothing, then strcat...

    so

    array[0] starts off as nothing, then strcat to 'a'
    then with strcpy, array[1] becomes 'a', then strcat to 'aa', and so on

    ?
  18. Replies
    43
    Views
    1,914

    i did run it whats the point of printing...

    i did run it

    whats the point of printing before the loop?
  19. Replies
    43
    Views
    1,914

    btw the same thing happens without code 2

    btw the same thing happens without code 2
  20. Replies
    43
    Views
    1,914

    soz i edited just before you posted 'ok so, ...

    soz i edited just before you posted

    'ok so,

    on the first loop the first i is 0 and the second i is -1

    ?'
  21. Replies
    43
    Views
    1,914

    ok so, on the first loop the first i is 0 and...

    ok so,

    on the first loop the first i is 0 and the second i is -2

    ?
  22. Replies
    43
    Views
    1,914

    im a bit confused, are they both 'ba' array? the...

    im a bit confused, are they both 'ba' array? the 10 and 12 one?
  23. Replies
    43
    Views
    1,914

    thanks for the code, seeing that it works is one...

    thanks for the code, seeing that it works is one thing, i would like to know how one of the code means, can someone explain this code for me?



    strcpy(ba[i],ba[i-1]);
  24. Replies
    43
    Views
    1,914

    char ba[10][12]; strcpy(ba[0],"a"); for(int...

    char ba[10][12];
    strcpy(ba[0],"a");
    for(int i=0;i<10;i++) {
    strcpy(ba[i],ba[i-1]);
    strcat(ba[i],"a");
    printf("%s\n",ba[i]);
    }


    =]
  25. Replies
    43
    Views
    1,914

    that outputs: ·⌂a ·⌂aa ·⌂aaa ·⌂aaaa...

    that outputs:

    ·⌂a
    ·⌂aa
    ·⌂aaa
    ·⌂aaaa
    ·⌂aaaaa
    ·⌂aaaaaa
    ·⌂aaaaaaa
    ·⌂aaaaaaaa
Results 1 to 25 of 78
Page 1 of 4 1 2 3 4