VS comes with the "view Class Diagram" function is a bit too weak to explode, can only generate inheritance relationships, even more basic association relationship can not be generated. Let's look at how to use the modeling tools EA to generate powerful class diagrams.
The following example demonstrates the EA 11.0.1106 as an example
1. New Project
Create a new project for File, new project. In the pop-up model patterns, select class, click OK, and then press Alt+o to open project browser to see that the project already exists.
2. Import C + + Engineering
Right-click on the class model, after code Engineering. Import source directory, after selecting the project folder with the source code type, confirm.
3. View the class diagram
After you expand the source-generated package, double-click the class diagram to see the class diagram generated by the source code. Isn't that a nice feeling?
You can then delete the unimportant parts of the class diagram as needed, leaving the core part for easier viewing. At the same time, you can click on the "Diagram" menu under the layout Diagram re-pat Layout, make the layout more reasonable.
UML diagram for building C + + projects using EA