ReadLine and WriteLine

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



In this code for a console application:

int n;

n = Console.Read();

Console.WriteLine(n);

Console.ReadLine();



I need write the last sentence (Console.ReadLine()) twice to the program
make a pause. Can somebody tell me why? Thank you




.



Relevant Pages

  • help!!!!!!
    ... int hours, minutes, seconds; ... I'm using Dev-C and this project is of type C and console. ... Prev by Date: ...
    (microsoft.public.vc.language)
  • Re: Hey guys little prob
    ... > I want to know why the program is printing the numbers twice on the screen. ... > int main ... Prev by Date: ...
    (comp.lang.c)
  • [PATCH 2.6] Altix serial driver
    ... patch for our console driver. ... We converted the driver to use the ... -static int sn_sal_is_asynch; ... -static void sn_sal_tasklet_action; ...
    (Linux-Kernel)
  • [PATCH 2.6] Altix serial driver
    ... patch for our console driver. ... We converted the driver to use the ... -static int sn_sal_is_asynch; ... -static void sn_sal_tasklet_action; ...
    (Linux-Kernel)
  • [patch] uml: terminal cleanup
    ... This is a major cleanup of the uml terminal drivers and console handling ... struct list_head *ele; ... int write_irq) ... void chan_interrupt(struct list_head *chans, struct work_struct *task, ...
    (Linux-Kernel)