![]() |
[C++]Storing as ASCII
How do I tell it to save as an ASCII value? I know putting ' ' around value will do it but how do I set it to do that from an imputted value?
|
Umm tell what to save what as an ASCII value? Do what from an input value?
Ask good questions, get good answers ;) |
to take an imput value like
cin >> x; and store that as an ascii value |
Assuming x is a char, you should be able to cast it to an int using
(int)x |
All times are GMT -8. The time now is 01:53 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project