you are right
thank you ! but it should in this way
printf("%2d:%d,%d,%d", count, a, b, c);
printf(count++%4?" " :"\n");
Type: Posts; User: luoyangke
you are right
thank you ! but it should in this way
printf("%2d:%d,%d,%d", count, a, b, c);
printf(count++%4?" " :"\n");
this is a very simple programe,but the last line "printf" is very clever.
main()
{
int a,b,c,count=0;
printf("There are different methods for XM to distribute books to 3 readers:\n");...
thank you!
can you recommend some books for me:)
pint=p; sure! p296 of Let Us C 5th
thank you!
This is the program given in Let Us C book.I am following it to learn C. you mean the book is incorrect!
:)hello guys! i typed this code used "Code::Blocks",but it said "D:\My Documents\c code\let us c\p288.c|66|error: cannot convert `int (*)[2]' to `int*' in assignment|". why?
this code is on page296...
:) thanks for the second time
:) thank you! not just for this answer 谢谢!
thank you ! but i still don't understand
a thing named "CodeBlocks" thank you!:)
hello everyone!
i found a strange thing.
1.i inputed the codes followed in "CodeBlocks",but it returned this "error:'main' must return 'int'".why?
#include<stdio.h>
void main()
{
...
hello Fai ! nice to meet you too! do you use the QQ ,my QQ is 947935781.
你会用汉语吗?那样交流更更方便些。哈哈
hello everyone!
first i must say thanks.i am new to cboard,i am new to c.i come from china.
i like c .i am glad to join the cboard. glad to make new friends。
if you think i can do...
thank you!
now i understand it. but where we can use it.i mean,usually we use "scanf("%d",&j);" ,when to use "scanf("%d\n",&j);".
can you showit to me by a example? :) i come from china .i can't understand the english smoothly. thank you.
who can tell me what the difference between "scanf("%d",&j);" and "scanf("%d\n",&j)"?
Thank you
i use the 《let us c》.the bad thing is that i can not buy it,i printed the whole book.ha ha .
i come from china, looking for new friend. thank you!