by: clusardi2k |
last post by:
/*
The below code on SGI will wait for you to enter 2 things, but
on Linux it will only wait the first time.
I can make the code work by replacing the scanf with:
char data ;
fgets...
|
by: Emmanuel Delahaye |
last post by:
Hi there,
It is commonly accepted that a call to the getchar() function suspends the
execution of the current program. I have not found any description of this
behaviour in the standard (I may...
|
by: White Spirit |
last post by:
I'm trying to use getchar() to read alphanumeric data as follows:-
char input;
/* Take a string of input and remove all spaces therein */
int j = 0;
while ((input = getchar()) != '\n')
{
if...
|
by: Jonathan |
last post by:
Hi--
I have the following code:
#include <stdio.h>
char a,b;
int main()
|
by: john |
last post by:
What does the standard say about getchar()? Do you have to press
return to "send" the char to the program, or is it implementation
defined? I read in a book that on some systems the function...
|
by: Alan |
last post by:
I am using Standard C compiled with GCC under Linux Fedora Core 4
When I run this program and enter a character at the prompt, I have to press
the ENTER key as well. This gives me 2 input...
|
by: shekhardeodhar |
last post by:
The program compiles properly (most of it is from k&r) but the second
function (here character_count) gives wrong answer.
Can someone please explain why ?
#include<stdio.h>
#define IN 1...
|
by: ehabaziz2001 |
last post by:
Why I can not begin my subscript of character arrrays with 0.
In this program I can not do :
do
{
na=getchar();
i++;
na=getchar();
} while (na!='\n');
|
by: mahiapkum |
last post by:
Hello,
I have a code which uses getchar().
#include<stdio.h>
int main()
{
char ch;
ch = getchar();
if(ch == 'Y')
{
printf("Beautiful...
|
by: arnuld |
last post by:
Mostly when I want to take input from stdin I use getchar() but I get this
from man page itself:
"If the integer value returned by getchar() is stored into a variable of
type char and then...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|