Problem solved-the length of warning C4503 exceeds the modifier name, the name is truncated, and warningc4503
=========================================== ==================
This article is original. If it is reproduced, please indicate the author and the source, and ensure the integrity of the article (including this statement ).
This article is occasionally improved. To ensure that the content is correct, we recommend that you read it in the original article.
Link: http://blog.csdn.net/wlsgzl/article/details/42236503
========================================================== ====================
Leaders need to implement the "support for various detection projects in the future" function, which is clearly in the trap.
The code last month is useless and can be rewritten.
========================================================== ====================
I need to implement a storage detection standard that supports "uncertain detection project name, uncertain composition subitem name, uncertain number of subitem, uncertain subitem gradient detection result ", -- it seems that you are throwing a composite project statement to save the results marked in the statement for future use.
For example, for "seven items in the gastrointestinal tract", each result of each test item must be saved.
========================================================== ====================
After thinking for a while (this is a virtual term), I wrote a small model code.
The class CProjInfo contains the following:
std::multimap<CString,std::map<CString,std::map<LONG,CString>>> m_mmmmPI;
Although it is not very nice, you have to take a look at this idea before optimization.
========================================================== ====================
Compile the link and receive a warning.
The name of warning C4503 exceeds the length of the modifier and is truncated.
As a man who used Level4 compilation, Ctrl + atl + E to select, he must understand this and find the materials.
========================================================== ====================
Searching for information is a technical activity, mainly focusing on refining keywords.
You can easily find the official documentation.
Compiler Warning (level 1) C4503
Http://msdn.microsoft.com/en-us/library/074af4b6.aspx
========================================================== ====================
The article will be translated later. I will understand it at a Glance. Here I will only reference Microsoft's code:
Code containing C4503 warning:
// C4503.cpp// compile with: /W1 /EHsc /c// C4503 expected#include <string>#include <map>class Field{};typedef std::map<std::string, Field> Screen;typedef std::map<std::string, Screen> WebApp;typedef std::map<std::string, WebApp> WebAppTest;typedef std::map<std::string, WebAppTest> Hello;Hello MyWAT;
One solution:
// C4503b.cpp// compile with: /W1 /EHsc /c#include <string>#include <map>class Field{};struct Screen2 { std::map<std::string, Field> Element;};struct WebApp2 { std::map<std::string, Screen2> Element;};struct WebAppTest2 { std::map<std::string, WebApp2> Element;};struct Hello2 { std::map<std::string, WebAppTest2> Element;};Hello2 MyWAT2;
====================================== Positive energy of the propagation point ==================== ================
Accumulate and start from scratch. As the saying goes, "the treasure of a thousand miles has fallen into the ant nest ".
Maybe you want to ask, isn't it a "journey of a thousand miles, just starting?
Yes, you know, but have you done it?
====================================== I do not know ==================
Of course, simple practices include:
1 is a string.
For example, parse "A | B | C-D ".
2. Use a database.