1331com银河游戏

ƽ̨ûĻоѡصģ1C!aʲô˼ 2cУͣʲô˼ 3c Ϊʲôѡ 4CA++ ++A ˼\C!=˼ 5c for 6Cʲô˼ 7Cģ 8c%/ 9c̨״ 10Cеģʲô壿
ƽ̨û 2018-06-06 16:56:56

Ǿѡƽ̨ûʱ




C!aʲô˼

C!aʲô˼
Ľѱ8557˵

˼£

  1. int a˼ϵͳԶΪaһint͵ڴռ䡣

  2. ̾ţCе߼ Cûboolean͵ģҲûtrue,falseֵ

  3. Cе߼ֵ0/1ġ0Ϊ,1Ϊ档0ֵҲΪ1 ԣ!a һ߼DZʽaֵΪ0ʱ!aֵ1,0

չϣ

CһͨüԣӦù㷺CԵĿṩһԼ׵ķʽ롢ͼ洢ĻԼҪκлֱ֧еıԡ

CṩͼĹܣȻÿƽ̨ԣһ׼дCԳƽ̨Ͻб룬һЩǶʽƬMCUԼԵҵƽ̨

һα༭ʱ 2018-05-25
Cı֮
Cı֮


Cı֮ǣcУͣʲô˼

Ľѱ6048˵
(ʽ)? x : y ;
ȼʽֵΪture"(ʽ)? x : y "x򷵻y.
һα༭ʱ Ƽ2018-02-14 17:08:31
1937521
1937521


1937521c Ϊʲôѡ

9ִе,
____B__. #include
void main()
{int a; printf("%d\n",(a=3*5,a*4,a+5)); }
A) 65 B) 20 C) 15 D) 10
֪ʲô˼
Ľѱ8209˵
Ƕűʽ㣬űʽֵһģa=15Ȼм60һ20b
һα༭ʱ Ƽ2018-04-13 09:50:12
Rimr
Rimr


RimrCA++ ++A ˼\C!=˼

A++
++A
!=
ֱʲô˼,ԽϸԽͨԽ.
A++=A+A+1?
Ľѱ7968˵
ҪʲôDZʽб

A++++AA1.
Aԭ1ִA++++AAֵ2
A++++AҪڱʽϵ
++AִA1󣬲ʽļ㡣
A++AȲʽļ㣬ִԼ1.

int a,b;
a=1;//aֵ1b.ôʹa1Ϳô
b=a++;//++a֮Ȱaֵb,Ȼٱ1 ʱb=1,a=2ˡ
//㻹ûb=a++;˼ b=a;a=a+1;˼
//b=++a a=a+1;b=a˼

A++=A+A+1
д˰
A+=A+A+1
ȼ A=A+(A+A+1)//A+=B A=A+B ļ
= ڣжٵġ
1=2 ʽֵǼ٣Ҳ0
CԺܶʽӶǼ򻯵ģȻԽʡ룬ȴȽ˺Ϳ
һα༭ʱ Ƽ2017-12-15 15:12:03
dzdz
dzdz


dzdz룺c for

c for ı׼дʲôdzѧߣдforʱÿζǴġæ
Ľѱ9834˵

for(ʽ1;ʽ2;ʽ3)


{ѭ}


ʽԶУҲԶûУҲһfor


һʽĺ


ʽ1һdzʼi=1ڵһֺ֮ǰһҲԺüöŸ


ʽ2ѭͼִѭ壬ѭһǸ߼ж䡣


ʽ3һǸıѭĵطi++


ִ˳ǣȳʼҲʽ1ʼɺʽûôˡ


жǷѭҲʽ2棬ִѭ塣


ʽ3ıѭһѭɡ


ŵڶѭҲʽ2Ƿѭʽ2㣨Ҳ棩ִѭ塣ɺʽ3,


ѭֱʽ2ѭ

CһּԣȾи߼Եص㣬־лԵص㡣оD.M.Ritchie1972Ƴ1978CȺֲСС΢ͻϣΪϵͳԣдϵͳӦóҲΪӦóԣдӲӦóӦ÷Χ㷺߱ǿݴϣҸжҪõCԣڱдϵͳάάͼκͶӦñ絥ƬԼǶʽϵͳ

չʷ

C֮ΪCΪ CԴKen ThompsonBԣ BԴBCPLԡ

1967꣬ŴѧMartin RichardsCPLԽ˼򻯣DzBCPLBasic Combined Programming Languageԡ

2060AT&T˾ʵңAT&T Bell LaboratoryоԱKen Thompson£ͣһԼģģ̫ϵеĵϷSpace Travelϰ壬ҵ̨еĻPDP-7̨ûвϵͳϷʹòϵͳһЩܣΪPDP-7ϵͳϵͳΪUNIX

1970꣬ʵҵ Ken ThompsonBCPLΪƳܼҺܽӽӲBԣȡBCPLĸBд˵һUNIXϵͳ

1971꣬ͬᰮSpace TravelDennis M.RitchieΪϷThompsonĿĿUNIXҪǸBԣʹ졣

1972꣬ʵҵ D.M.Ritchie BԵĻƳһµԣȡBCPLĵڶĸΪԵ֣Cԡ

1973CԵɡThompsonRitchieȲؿʼȫдUNIXʱ̵ȤʹѾȫǸ"Space Travel"һ˼Ͷ뵽UNIXCԵĿСUNIXķչCҲڲϵơֱ죬ְ汾UNIXں˺ܱ߹ȻʹCΪҪĿԣлвټ̳ThompsonRitchieֵ֮Ĵ롣

ڿУǻǰUNIXֲ͵ļʹáCǿֲԣPortabilityڴ֡ԺͻԶֲԣΪx86ij򣬲Alpha,SPARCARMȻСCԳʹܹĴϣֻҪּܹĴжӦCԱͿ⣬ȻCԴ롢ӳĿļ֮󼴿С

1977꣬Dennis M.Ritchie˲ھϵͳCԱıֲCԱ򡷡

CԼչ1982꣬ܶʶ֮ʿұ׼ЭΪʹԽطչȥC׼ίԱᣬCԵı׼ίԱӲ̣̣ʦʣѧʿCߺӦóԱɡ1989꣬ANSI˵һCԱ׼ANSI X3.1591989ơC89Ҳϰ߳ΪANSI CC891990걻ʱ׼֯ISO(International Organization for Standardization)һֲĵزɣISOٷΪISO/IEC 9899ISO/IEC9899: 1990ҲͨΪC901999꣬һЩҪƺISOµCԱ׼ΪISO/IEC 98991999ơC992011128գISOʽµı׼ΪISO/IEC9899: 2011ΪC11

һα༭ʱ 2018-03-31
sحqؼ
sحqؼ


sحqؼCʲô˼

C++ʲô

ʲô

ûӣ

ԭǾ仰
ҲҪȥһѣлл...
µ2¥һ...
4¥˵ıеŤ˵дôҿ˾ܶô...Cԣ
Ľѱ9175˵
ȣ෢˼ҪдͶӲҪܷã뷢һܹ͵˻ԣҲǵͼԡͬʱΪӲϾ˴Ү~ҶҲӲԣԷҲ򵥵ĶƣͨǿѧҲѶԷһЩ߼ԣͬCԣC++ȵȡ
VBVFDZȽϵͼ򵥵ijԣCе԰ɣC++,JAVAȶѵˡ
֮ǶͼԣCֻеһ֣༭򣬱VBԱ༭һЩСϷʲôģC++༭һЩijħȾϷC++дģѧϰCC++ǰ;ġ
ˣͽôɣϣа
һα༭ʱ Ƽ2017-12-15 13:11:26
Ӱ
Ӱ


ӰCģ

һ 1һCԳӦһ______ 2CԴļչ__ .C ____롢Ӻļչ__ .h ____ 3ṹ˳ṹ___ѡ______ѭ___ֻṹɡ 4CԵִǴ______... һ
1һCԳӦһ______
2CԴļչ__ .C ____롢Ӻļչ__ .h ____
3ṹ˳ṹ___ѡ______ѭ___ֻṹɡ
4CԵִǴ______ʼִеġ
5CԴָ______
6CУùؼ______嵥ʵͱ
7ʽS=12Ӧ______
8CԴĻλ______
9int x=9,y=8ʽx-=y+1Ľ______
10aΪͱa=12,ʽa * =2+3ֵ______
11CԶĿ⺯ʱ# includeӦͷļ______
12ʽ9%5Ľ______
13aΪͱa=12,ʽa+=4ֵ______
14 CУҪ͵______
15CУ______ʾ߼桱ֵ
167ʽ10/3Ľ______
17ͨһֽڰ______λ
18 бΪͣa=2,b=5,b++ʽa+bֵ______
19CУֻ֣Ƿֱǣ__________________double
20һCҽһ______
21aΪͱa=12,ʽa-=2ֵ______
22CУ߼Ƿֱǣ__________________
23CУַ뺯ֱַǣ____________
24C򿪷ĸ__________________ִС
25CĽṹֱǣ˳ṹ____________
26ifеıʽǹϵʽ____________
27______CΩһһԪ
28CṩԤҪ֣궨塢____________

Ķдгн
1#include
main()
{int a=2,b=-1,c=2;
if(aif(b<0) c=0;
else c+=1;
printf(%d\n,c);
}
2
#include
main()
{ char c=A+10;
printf(c=%c\n,c);
}
3#include
main()
{char c=a;
int I=97;
printf(%c,%d\n,c,c);
}
4#include
main()
{ int a=5,b=8;
if(a==b) printf("A=B\n");
else if(a>b) printf("A>B\n");
Ľѱ6221˵
һ
1һCԳӦһ__ʽ____
2CԴļչ__ .C ____롢Ӻļչ__ .h ____
3ṹ˳ṹ___ѡṹ______ѭṹ___ֻṹɡ
4CԵִǴ__main____ʼִеġ
5CԴָ___;___
6CУùؼ__float____嵥ʵͱ
7ʽS=12Ӧ__12 ֵ S____
8CԴĻλ______
9int x=9,y=8ʽx-=y+1Ľ___0___
10aΪͱa=12,ʽa * =2+3ֵ___60___
11CԶĿ⺯ʱ# includeӦͷļ___stdio.h___
12ʽ9%5Ľ__4____
13aΪͱa=12,ʽa+=4ֵ___16___
14 CУҪ͵___%___
15CУ___0___ʾ߼桱ֵ
167ʽ10/3Ľ___3___
17ͨһֽڰ__8____λ
18 бΪͣa=2,b=5,b++ʽa+bֵ__8____
19CУֻ֣Ƿֱǣ__int______char_______float___double
20һCҽһ___main___
21aΪͱa=12,ʽa-=2ֵ___10___
22CУ߼Ƿֱǣ___&&_____||_______!___
23CУַ뺯ֱַǣ__getchar______putchar____
24C򿪷ĸ__༭________________ִС
25CĽṹֱǣ˳ṹ__ѡṹ_______ѭṹ___
26ifеıʽǹϵʽ___߼ʽ______ʽ___
27__?____CΩһһԪ
28CṩԤҪ֣궨塢___ļ_________

Ķдгн
1#include
main()
{int a=2,b=-1,c=2;
if(aif(b<0) c=0;
else c+=1;
printf(%d\n,c);
}
2. ע else if
2
#include
main()
{ char c=A+10;
printf(c=%c\n,c);
}
c=K
3#include
main()
{char c=a;
int I=97;
printf(%c,%d\n,c,c);
}
a,97
4#include
main()
{ int a=5,b=8;
if(a==b) printf("A=B\n");
else if(a>b) printf("A>B\n");

ûдꡣ
һα༭ʱ Ƽ2018-04-02 22:59:32
Ը583
Ը583


Ը583c%/

Ľѱ4300˵

  1. /dzֻȡ֣û֮ġ

  2. %ȡģȡ

Cʹüɣ

  1. Կռ任ʱ

    ìǿռʱìܣôǶȳ˼άdzЧ⣬Ǿ˽ĵ1СԿռ任ʱ䡣

  2. ѧ

    ѧǼ֮ĸûѧݺͻûмķչڱдʱ򣬲һЩѧԳִЧߡ

  3. ʹλ

    ڼУݵλǿԲСݵλϿáλ㡱еͲһλӲģݱ任ʹãǣλЧ߳еЧʡ

  4. Ƕ

    ϤԵCԱдij˵ȻƫһЩȴĵЧߵļԣǣܿдһϵͳ?ԣΪ˻óĸЧʣֻòñͨķ Ƕ࣬ϱ̡


ο

CԸЧ̵ļС.ű֮[ʱ2017-12-26]

һα༭ʱ 2018-03-31
leeyuanrong20
leeyuanrong20


leeyuanrong20c̨״

Nף¥һһףҲһ϶סһ򣬼㹲жֲͬ߷10׻м߷
Ľѱ356˵
fibnaccii
a1=1
a2=2
һֻ21ˣΪ2Ϊ2an-2Ϊ1an-1, мûص
an=an-1+an-2 n>2

a=1;
b=2;
for(i = 3;i <= n;i++)
{
b=a+b;
a=b-a;
}
ִнbֵAn
£
1,2,3,5,8,13,21,34,55,89,144
A10=89
һα༭ʱ 2013-04-16
й1
й1


й1Cеģʲô壿

Cеģʲô壿
ַһģ
Ľѱ6390˵

/=ڸϸֵеһ֡

ߵıұֵ߱ұߵı磺a/=bȼa=a/bͬĻ*=磺a*=bȼa=a*b+=(磺a+=bȼa=a+b)-=磺a-=bȼa=a-b%=磺a%=bȼa=a%b%a%bʾab㻹Ϊʲôa/=bΪʲôֱa=a/bʾΪıʾóӼࡣ

һα༭ʱ 2018-03-31
网站地图

银河1331官网