Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
char *str = "23H9";
char myChar = str[2];
char *pStr = strchr( str, 'H' );
int pos = pStr - str;
char* mystring = "12K9 4J87 I34 N2 N 793J";
int nLen = strlen(mystring);
for(int i = 0; i < nLen; i++)
{
if(isalpha(mystring[i])
{
//use strcat() or whatever else to append this char
}
}
[b]...[/b]
ifstream fin;
fin.open("file.txt");
char ch;
while(cin >> ch)
{
if(isalpha(ch))
{
// it's a letter put it in an array, list or vector
}
else
{
// it's not a letter -- must be numaric,
// puncuation or control char
}
}
[b]...[/b]