So Im trying to make the cipher uppercase the cipher. I think that'll save a lot of hassle with if isupper else blah blah.
So I made a function
int uppercase(string a);
int uppercase(string a) {
for (int i = 0, n = strlen(a); i < n; i++) {
toupper(a[i]);
}
Then I declared a function
string c = uppercase(argv[1]);
Then cycle through c[j], while making a loop like this
for (int i = 0, int j = 0, n = strlen(s); i < n; i++, j++)
So 2 questions here. Im getting an error like this
warning: incompatible integer to pointer conversion
initializing 'string' (aka 'char *') with an expression of type 'int'
[-Wint-conversion]
string c = uppercase(argv[1]);
How would I fix this
Question 2, is it even possible to have two integers looping like I did above? as in i++ j++