Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //converte uma string em maiusculas
- static string SToUpper(string s)
- {
- string result = "";
- for(unsigned int i=0; i<s.length(); i++)
- result+=toupper(s[i]);
- return result;
- }
- //verifica se string é um numero positivo
- static bool Is_Num_Only(String ^s)
- {
- for(int i=0; i<s->Length;i++)
- if(!isdigit(s[i]))
- return false;
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment