Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript Site
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

US Job listings




   Misc

   Amazon

   Links

    


Getchar example
 

 

 

Description

This illustrates the getchar( ) function , this gets characters and echoes them on the screen

Code

/*this shows the getchar() function*/

#include <stdio.h>

main()
{
int ch;

/*get characters and echo them to the screen*/
while((ch = getchar()) != '\n')
putchar(ch);

return 0;
}

Information

tested on Visual C++ 6

 

 

 

 

Download

getchar.txt


 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
celsius to fahrenheit conversion(C Sharp)
Display all drives(VB)
displays information about your computer(Powershell)
clear recent documents list(Visual Basic)
Create a share(VB)
Browser version(PHP)
display the time(PHP)
Preload images(Javascript)

    




Copyright © 2003 by programmershelp.co.uk