Thx ~~~ I really forgot to handle the newline char.
Problem solved ~~ Thx for your help.
Search found 2 matches
- Wed Nov 09, 2005 6:56 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10082 - WERTYU
- Replies: 57
- Views: 16652
- Tue Nov 08, 2005 3:47 am
- Forum: Volume 100 (10000-10099)
- Topic: 10082 - WERTYU
- Replies: 57
- Views: 16652
10082 WA ~~~help
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string>
using namespace std;
int main()
{
char c;
int num=0;
string s[4];
s[0] = "`1234567890-=";
s[1] = "QWERTYUIOP[]\\";
s[2] = "ASDFGHJKL;'";
s[3] = "ZXCVBNM,./";
while(cin.get(c))
{
if (c == EOF) break;
if (c ...