we can only use getchar, putchar, no arrays, no scanf for the calculations. printf is ok.
so this program continously loops around the first if statement never processing the rest of the...
Type: Posts; User: chess2009
we can only use getchar, putchar, no arrays, no scanf for the calculations. printf is ok.
so this program continously loops around the first if statement never processing the rest of the...
I would like to close ths topic how can I do that ?
The
Parsnip
The
parnip
children
Thanks.
But what if I encounter white space, tab , semicolon or.. then it just goes to the next line. how to address this problem?
I would like to write a program with getchar and putchar that read my input and prints one word per line and ignores all semicolon, comma , dot , newline, tab and space.
Here is my input:
"The...
Hi
Could you introduce me some complilers such as Visual Studio 2010 that if you misspell something or you forget to put semicolon or you make any other mistakes it tells you immediately before...
Hi
I have a file.txt which is in my documents , How can I redirect the output of that file using CMD to another file namely file2.txt .
The c program that I wrote is working but I do not know how...
How can I check that string name has at least one char, and has no char other than letters and hyphens?
Especially the last part , how to check that it has just letters(either upper case or lower...
Hi
how can I check for certain character in rows or columns of 2-D array ?
for example , if array is :
int main()
{
int i,j;
char board[3][3]={{'X','X','O'},
Thanks everybody.Is there any easier way to flush the buffer?
(my college professor said use either getcha(); or %*c . but none of these are working .)
Could you please help why my program goes through do while loop just once, although the condition is true.
//Program is getting numbers from user and realize whether they are correct numbers for...