Search:

Type: Posts; User: Obelisk

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Thread: Sentence count

    by Obelisk
    Replies
    4
    Views
    4,173

    hey just trying to figure out the array(words)...

    hey

    just trying to figure out the array(words) does it mean that each index has a single sentence? or a single word?.
  2. Replies
    2
    Views
    1,209

    am using 4.2.2 which was available from dev c++.

    am using 4.2.2 which was available from dev c++.
  3. Replies
    2
    Views
    1,209

    Allegro in vista

    hey guys
    I am just curious and kinda puzzled can allegro library be used in Vista OS. I am pretty sure i installed it correctly through Dev c++.

    Any comments would be fine, Thx
  4. Replies
    1
    Views
    5,191

    This is a good help..try searching the forum...

    This is a good help..try searching the forum under usb
  5. yes there is. this works char...

    yes there is.

    this works

    char a[size]={'\0'};
  6. Replies
    9
    Views
    1,486

    are you trying to check wether the t value is a...

    are you trying to check wether the t value is a specific value if you are then i would suggest putting it in a if loop.
  7. Replies
    9
    Views
    1,234

    what he suggested, instead of using scanning...

    what he suggested, instead of using scanning through each character why dont you use

    fgets where it grabs one line at a time.
  8. Thread: "\n"

    by Obelisk
    Replies
    6
    Views
    1,059

    gulp..idk.:(( is it? 1st scanf reads only...

    gulp..idk.:((

    is it?

    1st scanf reads only the input

    2nd one reads input and the next line?
  9. Replies
    2
    Views
    1,015

    while((ch=getchar())!= '\n') i=1; ...

    while((ch=getchar())!= '\n')
    i=1;

    printf("%d \n", ch);

    and

    i=1;

    while((ch=getchar())!= '\n')
  10. Replies
    20
    Views
    7,249

    ok scanf("%d", &x); x---> is a...

    ok


    scanf("%d", &x);


    x---> is a float and why are you using "%d" for a float?

    shouldnt it be do with while loop.
  11. Replies
    4
    Views
    1,301

    while ((symbol=getch())!='a') printf("ERROR");...

    while ((symbol=getch())!='a')
    printf("ERROR");
    printf("%c",symbol);

    [array[i].field=symbol; /* file structure=array of records, where "field" is defined as char

    shldnt it be getchar()....
  12. I remeber doing a similar project where i used if...

    I remeber doing a similar project where i used if loops thus defeining how to make the

    array to print out
  13. Replies
    2
    Views
    1,899

    hi what is variable k in your code? i mean...

    hi

    what is variable k in your code? i mean why is it present there
  14. Replies
    3
    Views
    11,580

    its java code if you want to print something...

    its java code

    if you want to print something in c use"printf();"
  15. Thread: prime no

    by Obelisk
    Replies
    4
    Views
    1,006

    hmm it seems its your homework . Try writing any...

    hmm it seems its your homework . Try writing any code then we can guide you
  16. Thread: Odd or even

    by Obelisk
    Replies
    37
    Views
    4,171

    ok cool :)

    ok cool :)
  17. Thread: Odd or even

    by Obelisk
    Replies
    37
    Views
    4,171

    your almost there actually, with your permission...

    your almost there actually, with your permission i can show you the code if you want to

    understand the logic
  18. Thread: Odd or even

    by Obelisk
    Replies
    37
    Views
    4,171

    i know but the question he asked was why was the...

    i know but the question he asked was why was the presence of 4even and 5odd i just

    showed him how to remove it.
  19. Replies
    8
    Views
    16,353

    as cas said c should be int where c contains...

    as cas said c should be int

    where c contains the ascII value of the variable

    Then if you want to get the char again

    use Putchar(c)
  20. Thread: Odd or even

    by Obelisk
    Replies
    37
    Views
    4,171

    THIS IS NOT THE EXACT CODE. ok here ...

    THIS IS NOT THE EXACT CODE.



    ok here


    printf("%d is %d", i, sum);

    delete the 2nd %d and sum
  21. Thread: Odd or even

    by Obelisk
    Replies
    37
    Views
    4,171

    ok almost there..but if you do that how will you...

    ok almost there..but if you do that how will you retun either 1 or 0?.

    try putting the if loop inside the main method ..

    this loop explains by itself.


    if(sum==1)
    {
    print number is even
  22. Thread: Odd or even

    by Obelisk
    Replies
    37
    Views
    4,171

    i see what you mean ok so the even function...

    i see what you mean

    ok so the even function returns 1 for even number

    and returns 0 for odd number.

    so just put an if loop


    printf("%d is %d\n", i, sum);
  23. Replies
    8
    Views
    16,353

    oh yea, my apologies just checked it out. thnx...

    oh yea, my apologies just checked it out. thnx for the correction
  24. Replies
    8
    Views
    16,353

    for unix its ctrl+z i think and windows...

    for unix its ctrl+z i think

    and windows ctrl+D, not totally sure
  25. Thread: damaged file?

    by Obelisk
    Replies
    6
    Views
    980

    hmm can you post your code? I am not sure what...

    hmm can you post your code? I am not sure what the problem is
Results 1 to 25 of 63
Page 1 of 3 1 2 3