U E D R , A S I H C RSS

WERTYU/Celfin

~cpp
#include <iostream>
#include <cstdlib>
using namespace std;

char str[3][48]={"1234567890-=WERTYUIOP[]\\SDFGHJKL;'XCVBNM,./","`1234567890-QWERTYUIOP[]ASDFGHJKL;ZXCVBNM,."};
char input[255];
int i, j;

void changeStr()
{
	for(i=0; i<strlen(input); i++)
	{
		for(j=0; j<47; j++)
		{
			if(input[i]==str[0][j])
				input[i]=str[1][j];
		}
	}
	cout << input << endl;
}

int main()
{
	while(cin.getline(input, 255))
		changeStr();
	return 0;
}
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:28:23
Processing time 0.0130 sec