char pattern [ ] = " ba * * * * * ab " ; char pattern [ ] = " ba * ab " ; char pattern [ ] = " a * ab " ; char pattern [ ] = " a * * * * * ab " ; char pattern [ ] = " * a * * * * * ab " ; char pattern [ ] = " ba * ab * * * * " ; char pattern [ ] = " * * * * " ; char pattern [ ] = " * " ; char pattern [ ] = " aa ? ab " ; char pattern [ ] = " b * b " ; char pattern [ ] = " a * a " ; char pattern [ ] = " baaabab " ; char pattern [ ] = " ? baaabab " ; char pattern [ ] = " * baaaba * " ;
if ( strmatch ( str , pattern , strlen ( str ) , strlen ( pattern ) ) ) cout << " Yes " << endl ; else cout << " No " << endl ; return 0 ; }