Search
 
SCRIPT & CODE EXAMPLE
 

CPP

c++ check if string is isogram

bool is_isogram(std::string str)
{
	bool result = true;

	for(int i = 0; i < str.size(); i++)
	{
		char checking_char = putchar(tolower(str.at(i)));

		for(int x = 0; x < str.size(); x++)
		{
			if(x != i)
			{
				if(checking_char == str.at(x)) 
				{
					result = false;
					break;
				}
			}
		}
	}

	return result;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: insert image using set atribute 
Cpp :: how to find something in a string in c++ 
Cpp :: how to use toString method in C++ 
Cpp :: c pre-processor instructions 
Cpp :: c++ string split 
Cpp :: cpp while 
Cpp :: copying a set to vector in c++ 
Cpp :: c++ erase remove 
Cpp :: iterate vector c++ 
Cpp :: function overloading in c++ 
Cpp :: double to float c++ 
Cpp :: set to vector 
Cpp :: set width qpushbutton 
Cpp :: c++ pre-processor instructions 
Cpp :: c++ move semantics for `this` 
Cpp :: map in c 
Cpp :: Youtube backlink generator tool 
Cpp :: grep xargs sed 
Cpp :: string reverse iterator c++ 
Cpp :: C++ sum a vector of digits 
Cpp :: c++ template vs code 
Cpp :: converting decimal to binary in cpp 
Cpp :: Lambda capture as const cpp 
Cpp :: pop off end of string c++ 
Cpp :: C++ cout iostream 
Cpp :: recursive factorial of a number 
Cpp :: count number of char in a string c++ 
Cpp :: clear map in C++ 
Cpp :: how to convert char to int in c++ 
Cpp :: convert single character string to char c++ 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =