Hikvision soft open written test (2019 autumn recruit)

1.20 radio

Now remember the left:

  The following is not a heap? (Big top stack than child nodes of each node large, small pile top and vice versa)

   Destructor calls the order?

  A reverse text, find the error code?

  ...Gone

Over 2.10 Option

Are C / C ++ based on multiple choice and some undecided, it seems also need to consolidate the basis of consolidation (cow brush off the right choice);

3. The short answer * 2

① a class A member variables and member functions, then sizeof (A)?

1B, even if not a member, the compiler will allocate a byte space for the class, save the necessary address information will not be able to distinguish between instances of the class.

② use typedef to simplify the complex function defined below

1 int (*(*f())())()
2 {
3     return 0;
4 }

The complex type that is defined as a simple type, and then rewrite function.

4. Programming title * 1

FIG programmed output 99 of the multiplication table of! Yes, that is the multiplication table. Really is the basis of the test.

 1 #include <iostream>
 2 using namespace std;
 3 
 4 void printTable()
 5 {
 6     int i, j;
 7     for (i = 1; i <= 9; i++)
 8     {
 9         for (j = 9; j >= i; j--)
10         {
11             cout << i << "×" << j << "=" << i * j << "  ";
12             if (i * j < 10)
13                 cout << " ";
14         }
15         cout << endl;
16     }
17 }
18 
19 int main()
20 {
21     printTable();
22     return 0;
23 }

Guess you like

Origin www.cnblogs.com/yocichen/p/11405245.html