#include <iostream>
#include <string>
using namespace std;
void reverse(string, int);
int main()
{
string s = "Example";
Type: Posts; User: darshan10
#include <iostream>
#include <string>
using namespace std;
void reverse(string, int);
int main()
{
string s = "Example";
i fixed my string problem using
fgets(message, 80, stdin);
now i want to know that how can i make it invalid shift when someone enter char instead of number
while(key <1 || key > 25)...
that didn't work for me but is this right if i do this
if (input[i] == ' ')
{
input [i] = ' ';
}
inside for loop? b/c its still not working.
Hi i am having problem with strings using for loop. When i enter input abc, strlen shows that string length is 3 but when i enter abc d string length still shows 3 and i think loop stop when it sees...