GOMA smile Posted September 7, 2011 Report Share Posted September 7, 2011 Man ir ļoti elementārs jautājums pieredzējušam programmētājam... Kā uz C ++ var pārbaudīt vai ievadītais simbols ,simboli ir tikai skaitļi.... Uz php cik atminos dariju tā if(is_numeric(){ skaitlis }else{ burts } Link to comment Share on other sites More sharing options...
w4p1337 Posted September 7, 2011 Report Share Posted September 7, 2011 http://www.cplusplus.com/reference/clibrary/cctype/ http://forums.devshed.com/c-programming-42/isnumeric-function-in-c-589878.html Link to comment Share on other sites More sharing options...
0xDEAD BEEF Posted September 11, 2011 Report Share Posted September 11, 2011 pieredzējušam programmētājam... muahahaha! Izej caur ievadīto stringu un pārbaudi ka katrs simbols ir cipars. Beefs Link to comment Share on other sites More sharing options...
GOMA smile Posted September 11, 2011 Author Report Share Posted September 11, 2011 pieredzējušam programmētājam... muahahaha! Izej caur ievadīto stringu un pārbaudi ka katrs simbols ir cipars. Beefs to es arī esmu sapratis , bet kuru funciju izmantot ? + man vaig vispār kkādu basic, jo man katrs solis jāpaskaidro.... Link to comment Share on other sites More sharing options...
0xDEAD BEEF Posted September 12, 2011 Report Share Posted September 12, 2011 Kipa un man jāmin, kas tas tev par stringu. nulles terminēts vai kaut kāds CString? Vispār izmanto google un pārstāj darīt to, ko tu dari sakarā ar C++. Beefs Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now