c++5 - 2 C++ && * * & *...

Info iconThis preview shows pages 1–17. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 2 C++ && * * & * + * & + * & * & & 3 C++ && * && + & & && && & && "(" ( ")" ( & && & L double Area(double radius); radius c h 3 4 C++ && + * &&A % 9 ~ + && &&& + & & + void fun(int a) { int b(a); cin>>b; if (b>0) { int c; ...... } } c 3 b 3 5 C++ && + + &&& &&&&& + X ( M * && M * & ( ( X * & & A % 9 ~ + & & & & & + + & & & & & & & M 3 x.M 3 X::M 3 prt->M 6 C++ && * & &A % 9 ~ + & & & && * & &A % 9 ~ + & & & && * & & 7 C++ && + + & &0 a , * & & * & &A % 9 ~ + & &o + & + * & &A % 9 ~ + & &o + + + + 8 C++ && + + &&& &&&&& * &&A % 9 ~ + & & &&& + & & + && a , * & & * &&A % 9 ~ + & & &&& + & & * &&A % 9 ~ + & & &&& + & & * 9 C++ && &&&&H ! * & &A % 9 ~ + & & & && + & && & && & && + & && & && & && 10 C++ && #include<iostream.h> int i; // N int main() { i=5; { int i ; // ( i =7; cout<<"i="<< i <<endl; // ( 7 } cout<<"i="<<i; // ( 5 return 0; ( 5.1 11 C++ && * + & && a , * & & + + && & a , * & & 12 C++ && + & && & && & && + & & * & & * & &A % 9 ~ + & & & && static + 13 C++ && #include<iostream.h> int i =5; // 3 int main() { cout<<"i="<< i <<endl; return 0; } i 3- ( 14 C++ && & && &P static J & * A % 9 ~ + * A % 9 ~ + & P 15 C++ && #include<iostream.h> void fun(); int main() { fun(); fun(); } void fun() { static int a =1; int i =5; a ++; i ++; cout<<"i="<< i <<",a="<< a <<endl; } N i=6, a=2 i=6, a=3 i 6 m f a 6 m f 3 16 C++ && 5-2 && && & &&& x # #include<iostream.h> int i =1; // i A I int main() { static int a ;// A I N- int b =-10; // b, c A I int c =0; void other(void); cout<<"---MAIN---\n"; cout<<" i: "<< i <<" a: "<< a <<" b: "<< b <<" c: "<< c <<endl; c=c+8; other(); cout<<"---MAIN---\n"; cout<<" i: "<< i <<" a: "<< a <<" b: "<< b <<" c: "<< c <<endl; i = i +10; other(); } void other(void)...
View Full Document

Page1 / 58

c++5 - 2 C++ && * * & *...

This preview shows document pages 1 - 17. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online