Horje
c++ check if string is isogram Code Example
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;
}




Cpp

Related
opengl draw semi circle c++ Code Example opengl draw semi circle c++ Code Example
convert char to int c++ Code Example convert char to int c++ Code Example
static Code Example static Code Example
__builtin_popcount Code Example __builtin_popcount Code Example
udo apt install dotnet-sdk-5 Code Example udo apt install dotnet-sdk-5 Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9