View Code of Problem 43

#include<stdio.h>
#include<ctype.h>
#include<string.h>
#include<iostream>
#include<stack>
#include<time.h>
using namespace std;
/*test*/
//#define as '\x41'
//int atoi(char s[]);
//int strlen(char s[]);
//void squeeze(char s[], char c);
//void strcat(char s[], char t[]);
//int bitcount(unsigned x);



int main()
{
	char str[100];
	gets(str);
	int i = 0;
	while (str[i] != '\0')
	{
		if ((str[i] >= 'a'&&str[i] <= 'z') || str[i] >= 'A'&&str[i] <= 'Z')
			printf("%c", str[i]);
		i++;
	}

}

Double click to view unformatted code.


Back to problem 43