there is a intrinsic function, ichar(C), to convert character to a numerical value (ASCII?) in FORTRAN. Can any one tell me a similar function in C++?
driplet 0
Light Poster
Recommended Answers
Jump to PostYou don't need a function for that. Example:
char ch = 'a'; int i = ch; cout << "Char " << ch << " = ASCII: " << i << endl;
Regards Niek
All 2 Replies
Nick Evan 4,005
Industrious Poster Team Colleague Featured Poster
Ancient Dragon 5,243
Achieved Level 70 Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.