[ create a new paste ] login | about

Link: http://codepad.org/oEbSZDYR    [ raw code | output | fork ]

C++, pasted on May 6:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <iostream>
#include <string>
using namespace std;
int main()
{
    string A;
    cin >>A;
    char vocale[10]={'a','e','i','o','u','A','E','I','O','U'};
    for(int i=0; i<(A.length()) ;i++){
        for(int k=0; k<10; k++){
            if(A[i]==vocale[k]){
                A[i]='_';}
        }
    }
    cout <<A;



    return 0;
}


Output:
1
2
3
cc1plus: warnings being treated as errors
In function 'int main()':
Line 9: warning: comparison between signed and unsigned integer expressions


Create a new paste based on this one


Comments: