当前位置:网站首页>It is meaningful to define genus, and D can use it to explain semantics

It is meaningful to define genus, and D can use it to explain semantics

2022-06-12 23:15:00 fqbqrr

 structure   Find the Chinese word {
    
     vector < Small words > People ; single   Take Chinese   look for ;
     empty   look for ( strand &a){
    
         clear ( People ); look for . Switch (a);
         Yes ( dynamic &t: look for . People ){
    
             Lianzhongji <4>( Add small words ,t. Small , People ,t. position );
        }
    }
};

C++ No, Use to determine the genus , here , You can't tell strand &a in a It means , For example, the common strand There are two meanings , One is file name , One is Ordinary string . Ordinary string There are no restrictions , No attributes .
and , If it is file name , It should be possible to strand &a On , add @ strand ( file name ) similar Use to determine the genus . such , You can add... To the string semantics .
Again , here , Looking for Chinese And Find the Chinese word Of Small words The meaning is different . If there is Use to determine the genus , It can be distinguished . No, , You can't .
If you use D, Should be added to ( strand &a) Add attribute restrictions .
C++ Currently not supported Use to determine the genus . and D Yes. .
such , According to the same structure , And give it a different meaning .
D Can be in Variable Add Use to determine the genus .

原网站

版权声明
本文为[fqbqrr]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202281106491972.html