Movatterモバイル変換


[0]ホーム

URL:


Logo

User Tools

Site Tools

You are here:start »c »stdio.h »getchar

Sidebar

c:stdio.h:getchar

getchar

#include<ctype.h>intgetchar(void);
   Get a character

C Sourcecode Example

/*  * getchar example code * http://code-reference.com/c/stdio.h/getchar */ #include<stdio.h>/* including standard library *///#include <windows.h> /* uncomment this for Windows */ #include<ctype.h> int main(void){int chars;printf("type in . to end your input : "); while((chars=getchar())!='.'){putchar(chars);}return0;}

output

  output:  user@host:~$ ./getchar   type in . to end your input : Test 1234.  Test 1234

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
c/stdio.h/getchar.txt · Last modified: 2024/02/16 01:05 (external edit)

Page Tools

Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
CC Attribution-Share Alike 3.0 UnportedDriven by DokuWiki
Tweet this link
ImpressumDatenschutz


[8]ページ先頭

©2009-2025 Movatter.jp