C++ Substring for Integers or setting max width for Integers?
By
VaultV3
in Programming
in Programming
Go to solution
Solved by Ciccioo,
if you want to extract the last two digits of a number, you can just work on the integer using modulo
2014 % 100 = 14
this way the user can enter the year in whatever format, because
2014 % 100 = 14
14 % 100 = 14
-
Topics
-
BoBo6107 ·
Posted in LTTStore.com Merch0 -
R_public ·
Posted in Networking9 -
apoyusiken ·
Posted in PC Gaming0 -
4
-
0
-
MattJames595 ·
Posted in Troubleshooting0 -
Jimkirk363 ·
Posted in Windows4 -
Ramrod126 ·
Posted in Cases and Mods0 -
smush ·
Posted in CPUs, Motherboards, and Memory7 -
asdasdasdasdasdasd ·
Posted in Hot Deals1
-

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now