Total members 11893 |It is currently Tue Nov 05, 2024 5:28 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





Characters in C are really just small integers, applying characters operations on C++
cpp code
char ch; 	
scanf("%c", &ch); Read the next character
ch = getchar(); Read the next character (plain C)
cin.get(ch) Read the next character
scanf(" %c", &ch); Read the next non-blank character
cin >> ch Read the next non-blank character
printf("%c", ch); Print a character
putchar(ch); Print a character (plain C)
cout << ch Print a character
ch + 5 Arithmetic on chars is okay.
ch - 'a' + 'A' Change case
#include <ctype.h>
#include <cctype>
isalpha(ch)
isupper(ch)
. . .
toupper(ch)
toascii(ch)




_________________
Please recommend my post if you found it helpful


Author:
Beginner
User avatar Posts: 95
Have thanks: 2 time
Post new topic Reply to topic  [ 1 post ] 

  Related Posts  to : Character Operations
 character recognition     -  
 Reading a Specific Character in php     -  
 ANSI code value of character     -  
 Find occurrences of each character in a string     -  
 Sending One lakh character in ajax     -  
 Handle Key event-keyboard-Get typed Character and its code     -  
 character running automatically / jump /duck/ functions     -  
 C++ Boolean Operations     -  
 Matrix Operations     -  
 Operations on Sucxent++     -  



Topic Tags

C++ Variables






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com