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
multiple text example(Darkbasic)
API disable ctrl alt and del .Not XP or 2000(VB)
Screen resolution(VB)
App.Path example(VB)
Stock ticker lookup(PHP)
launch notepad using process(VB.net)
start regedit(Powershell)
delete a file(C Sharp)

    




Copyright © 2003 by programmershelp.co.uk