Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cctype>
- using namespace std;
- //Mateusz Wrzyszcz
- int funkcja(char *tab )
- {
- for(int i = 0; i<10; i++, *tab++)
- {
- if(tab[i]=='0')
- {
- *tab = toupper(*tab);
- }
- else
- return 0;
- }
- }
- int main() {
- char tab[10] = {'a', '$', 'c', 'd', 'a', 'b', '0', 'g', 'h', 'u'};
- funkcja(tab);
- for(int i=0; i<10; i++)
- {
- cout<<tab[i]<< " ";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement