Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //ovo je konstruktor kod class Fudbaler
- Fudbaler(String ^i, String ^p, String ^J): _ime(i), _prezime(p), _JMB(J), broj_utakmica(0), prosjecan_broj_golova(0){
- if(_JMB->Length>13 || _JMB->Length<13) throw gcnew ApplicationException("Maticni broj nije uredu! ");
- if(LosMaticni()==true) throw gcnew ApplicationException("Maticni broj nije uredu! ");
- //a ovo je ta bool funkcija
- bool Fudbaler::LosMaticni()
- {
- bool x(false);
- for(int i=0; i<_JMB->Length;i++)
- if(_JMB[i]<'0' && _JMB[i]>'9')
- {
- x=true;
- break;
- }
- return x;
- }
Add Comment
Please, Sign In to add comment