AInstead of if ( A1.find ( "FBI" ) ) you must use if
( A1.find ( "FBI" ) != string :: npos ) , and of course use that with all 5 strings .
Bdid u tried the code? It doesnt open the cmd window..
ASprry and you need to remove string FBI = FBI ...
Bthank you very much!
Anyway can you tell me how to add my number who will be in the array with cin?
Bnah.. It is not connected with this example..
i want the array to be a[n] and i want to enter the numbers of the subjects in the array..
example:
int n,a[n];
cin>>n>>a[n];
but it doesnt work on this way
AWell if you make array size A[N] you can access only elements with indexes 0 .. N - 1, you try A[N + 1] .
BOk valjda nisi me razumeo na engleski ili lose sam se izrazio.
Hteo sam da pitam dali mozes da napravis nizu koju sodrzi "n" elementi(primer cin>>n; i nizata da ima n elementi.. ako vneses 5 da ti izleze a[100]={a,b,c,d,e} a ako vnesis 6 da izleze a[100]={a,b,c,d,e,f}.. nesto ovako sam hteo..
i da nakon to da upises cin>>a>>b>>c.. etc
AAu, mislim da tako nesto ne moze .
Bdaj addni me na msn bedzo_sr@live.com ili skype fbedzovski
ovde je tesko da se razumemo