NX二次开发-比较两个string是否相等

 1 NX11+VS2013
 2 
 3 #include <uf.h>
 4 #include <uf_ui.h>
 5 
 6 
 7 UF_initialize();
 8 
 9 string A = "ABC";
10 string B = "ABC";
11 int C = B.compare(A);
12 if (C == 0)
13 {
14     uc1601("相等", 1);
15 }
16 else
17 {
18     uc1601("不相等", 1);
19 }
20 
21 UF_terminate();

猜你喜欢

转载自www.cnblogs.com/nxopen2018/p/10981591.html