Search
 
SCRIPT & CODE EXAMPLE
 

CPP

c++ check if char is number

char c = '1';
bool result = isdigit(c);
cout << result << endl; //1
Comment

c++ char it is a number

#include<ctype.h>
--------
char c = '1';
bool result = isdigit(c);
if(result)
	cout << "Yes, it is digit" << endl;
else
	cout << "No, it is't digit" << endl;
Comment

PREVIOUS NEXT
Code Example
Cpp :: http.begin() error 
Cpp :: c++ string comparison 
Cpp :: how to make a random number in c++ 
Cpp :: pbds in c++ 
Cpp :: iterating in map/unordered map c++ 
Cpp :: c++ sort vector 
Cpp :: length of string c++ 
Cpp :: iterate over map c++17 
Cpp :: matplotlib hide numbers on axis 
Cpp :: how to make a loop in c++ 
Cpp :: C++ Swap 2 Variables Without Using 3rd Variable 
Cpp :: const char to string 
Cpp :: find in string c++ 
Cpp :: for loop in c++ 
Cpp :: sleep c++ 
Cpp :: when was c++ created 
Cpp :: restting a queue stl 
Cpp :: c++ isalphanum 
Cpp :: Xor implementation C++ 
Cpp :: c++ friend class 
Cpp :: declare nullptr c++ 
Cpp :: time of a loop in c++ 
Cpp :: rotate array cpp 
Cpp :: team fortress 
Cpp :: c++ average 
Cpp :: number of digits in int c++ 
Cpp :: c++ vs g++ 
Cpp :: setw c++ 
Cpp :: print two dimensional array c++ 
Cpp :: c++ compile to exe command line 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =