C++- Eclipse-Struct-intialize as external block

Objectives

  • Similar to testmystructSerial1.htm,
  • sturct object behaving as a data-type similar to array, but containing heterogeneous data types.
  • struct object members then initialized in an external block
  • scope of struct as public (default), comparing class (default is private);
  • code : teststructExtBlock1.txt

Step : 1 Create a project

Step: 2 Crate a Source file

Step: 3 Edit the code

Step: 4 Runtime views

Step: 2