Main Menu

HOME

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

Make money selling software. Check this out here

Hosted clickbank mall. Check this out here




   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
add a file to recent documents list(Visual Basic)
Windows directory(VB)
Display the Open With dialog(VB)
Check if a file exists(VBScript)
Size of a webpage with PHP and cURL(PHP)
create a directory(C Sharp)
start notepad as a new process(C Sharp)
Open a file for writing to(VB)

    




Copyright © 2003 by programmershelp.co.uk