Search
 
SCRIPT & CODE EXAMPLE
 

CPP

c++ check if string is empty

#include <iostream>

int main()
{
  	std::string str;
  
  	if(str.empty()) std::cout << "Empty";
  
	return 0; 
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: std distance c++ 
Cpp :: g++ optimization flags 
Cpp :: how to run a c++ file from terminal linux 
Cpp :: how to use string variable in switch case in c++ 
Cpp :: how to do (binary) operator overloading in c++ 
Cpp :: convert long int to binary string c++ 
Cpp :: string reversal 
Cpp :: change abstract title name latex 
Cpp :: adding elements to a vector c++ 
Cpp :: change to lowercase in notepad++ 
Cpp :: c++ check if char is number 
Cpp :: pbds in c++ 
Cpp :: c++ constructors 
Cpp :: iterate over map c++17 
Cpp :: c++ std::sort 
Cpp :: ue4 c++ enumaeration 
Cpp :: opencv c++ image write 
Cpp :: cpp multidimensional vector 
Cpp :: sleep c++ 
Cpp :: minimum value in array using c++ 
Cpp :: change int to string c++ 
Cpp :: check if character in string c++ 
Cpp :: C++ structure (Struct) 
Cpp :: c++ loop vector 
Cpp :: cpp loop through object 
Cpp :: even and odd sum in c++ 
Cpp :: draw rectangle opencv c++ 
Cpp :: iterate through map c++ 
Cpp :: c++ get maximum value unsigned int 
Cpp :: remove element from vector 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =