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 :: getline cpp 
Cpp :: c++ reading string 
Cpp :: ue4 c++ enumaeration 
Cpp :: how to declare a function in c++ 
Cpp :: c++ simple car game 
Cpp :: cpp binary tree 
Cpp :: string to long integer c++ 
Cpp :: how to remove an element from a vector by value c++ 
Cpp :: find primes in cpp 
Cpp :: c++ get type name 
Cpp :: header file for unordered_map in c++ 
Cpp :: c++ get ascii value of char 
Cpp :: c++ program to reverse an array 
Cpp :: get value of enum cpp 
Cpp :: check if character in string c++ 
Cpp :: built in factorial function in c++ 
Cpp :: sort index c++ 
Cpp :: c++ triple 
Cpp :: time of a loop in c++ 
Cpp :: vector::insert 
Cpp :: swap elements array c++ 
Cpp :: how to read files in c++ 
Cpp :: c++ min int 
Cpp :: Palindrome String solution in c++ 
Cpp :: sort vector of strings 
Cpp :: c include 
Cpp :: automatic legend matlab 
Cpp :: how to delete an element in vector pair in cpp 
Cpp :: Visual studio code include path not working c++ 
Cpp :: c++ move semantics for `this` 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =