Looking at it from that perspective was very helpful dwks.
Type: Posts; User: kezkez
Looking at it from that perspective was very helpful dwks.
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.
...
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]...
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;
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...
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()
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:
...
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...