Search:

Type: Posts; User: kezkez

Search: Search took 0.00 seconds.

  1. Thread: filtering

    by kezkez
    Replies
    3
    Views
    2,284

    Looking at it from that perspective was very...

    Looking at it from that perspective was very helpful dwks.
  2. Thread: filtering

    by kezkez
    Replies
    3
    Views
    2,284

    filtering

    Need help with this problem:
    Convert all the letters in file to lower case, and any non letter character is converted to a space. Consecutive spaces should be compressed into one single space.
    ...
  3. Replies
    1
    Views
    4,651

    declaring ranges a-z A-Z 0-9 etc. ?

    Is there a way to declare ranges for conditional testing, like [A-Z] or [0-9] ?

    Basically I want to turn any char that is not a letter into a space by saying something like:


    if ( c != [A-Z]...
  4. Thread: bitcount.c

    by kezkez
    Replies
    8
    Views
    3,998

    ok, i did that, but any suggestions on how to get...

    ok, i did that, but any suggestions on how to get the loop to work for more that one string?



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

    int bitcount(int);
    main() {
    int count, i;
  5. Thread: bitcount.c

    by kezkez
    Replies
    8
    Views
    3,998

    This is what I've come up with so far. I got it...

    This is what I've come up with so far. I got it to work for the first string for example where the file mydata.txt contains: 123 . But if the mydata file contains a second string I cannot get it...
  6. Thread: bitcount.c

    by kezkez
    Replies
    8
    Views
    3,998

    Ah, understand what it was doing with the ASCII...

    Ah, understand what it was doing with the ASCII now.

    This is what I previously had...


    #include <stdio.h>

    unsigned char bitcount(unsigned char);

    main()
  7. Thread: bitcount.c

    by kezkez
    Replies
    8
    Views
    3,998

    bitcount.c

    I am trying to get this to read a files integers and print the number of 1 bits in each integer. The file I am redirecting as input to test with has 100 in it. But the output I'm getting is:
    ...
  8. Replies
    0
    Views
    7,526

    box-and-circle diagram

    hi, i am to draw a box-and-circle diagram to show bindings of variables after each of the two assignments to **x. and note alias situations. can someone help me out or point to a page with a clear...
Results 1 to 8 of 8