Search found 2 matches

by qwer452369
Wed Apr 02, 2014 10:23 am
Forum: Volume 119 (11900-11999)
Topic: 11988 - Broken Keyboard (a.k.a. Beiju Text)
Replies: 27
Views: 16207

Re: UVA 11988

brianfry713 wrote:Your code isn't printing anything when I run it on the sample input
that's because i didn't figure out how to print after pressing enter,
so you should press enter, than input EOF(Ctrl+Z for windows)

And thanks for your help :D , I've figured it out these days !
by qwer452369
Fri Mar 28, 2014 4:46 pm
Forum: Volume 119 (11900-11999)
Topic: 11988 - Broken Keyboard (a.k.a. Beiju Text)
Replies: 27
Views: 16207

UVA 11988

I don't know how to print after sending a line, press enter didn't work...
#include<iostream>
using namespace std;
struct letter{
char chr;
letter *next;
};
int main(){
char input;
letter head, tail, *p, *tmp;
bool isFirst=1, HorE=0;//HorE: 1=HOME, 0=END
while(cin>> input){
if(input!='\n ...

Go to advanced search