Oh,sorry,it is "scanf("%s"...)".
But,the problem was occured either used "scanf" or used "getchar".
Type: Posts; User: mycount
Oh,sorry,it is "scanf("%s"...)".
But,the problem was occured either used "scanf" or used "getchar".
#include <stdio.h>
void call(int);
static int s=0;
int main(void)
{
int i;
int flag=1;
int count=1;
char ch;
Yellow big.
As the word shown,A poke.
replace with "<"
So funny............
But,whereve are you from?
Yeah.I have a littel feeling in this.And so,I want to ask the reason that it still did not run after I changed the code "scanf.." to "fgets(buffer,sizeof(buffer),stdin)".
if(diameter==0)
goto again;
again: printf("input an invalid number\n");
printf("diameter: ");
scanf("%d",&diameter);
At first,present my major part of all codes.
problem description:
The main of the server accessed into endless loop after send welcome message to the client ,and then it print the string "[Server:]...
thanks, CordneBee.How supernatural!It is so fun.
Hello,all.
I have just writed a example for practice the key word "extern" which is used in aspect of function.
I typed it in a file that named main.c and the codes are shown as in following.
...
Hello,all.
Following are codes.It 's function is to set RTC.
#include <time.h>
#include <stdio.h>
#include <sys/time.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <unistd.h>
PS:
The CRC initial value has been given in my document whic is 0000H and the standard is CCITT.However,I still do not understand of this "initial value".Is it a polynomial ? I guessed it is not...
thank you Salem
hi,all.
anybody who known or well known CRC arithmetic,could you tell me how to create a crc16 table.first at all,crc was initialized with 0000H.
thanks very much.
please forgive me that I ask...
en....
I am so sorry,but say thanks to you all the same.I will be better at next seconds. :)
hello,all.I am a fresh coder and have a question in CRC,so I have to post a thread to ask for help.
In my programm,a CRC arithmetic has mentioned whick to check each command in commnication is right...
thanks
Hello, all
I will become a Embedded Software Engineer,so I want to know a forum which is a ......as the "title".
thanks very much.
thanks Salem.
please forgave
i yet do not understand.is the node "head" must have data?
somebody could you tell me in details.thanks very much.
hello all.
I don't know why it output twice in "Node-data[%d]",so irritancy!
header file
/* this a header file for list.c */
/* file name: head-list.h */
/* author:mycount */
/*...