User:Megan Hoogenboom/assignment4

From XPUB & Lens-Based wiki
< User:Megan Hoogenboom
Revision as of 02:19, 9 November 2010 by Megan Hoogenboom (talk | contribs) (Created page with "== Finding text and replacing == <source lang=C> #include "stdio.h" #include "string.h" #include "ctype.h" void main() { char a = 'a'; if (ispunct(a)) { printf("...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Finding text and replacing

#include "stdio.h"
#include "string.h"
#include "ctype.h"
 
void main() {

char a = 'a';

    if (ispunct(a)) {
        printf("CHAR\n");
        }
    else {
        printf("NOCHAR\n");
    }
    printf("\n");
}