当前位置:网站首页>C function returns multiple value methods
C function returns multiple value methods
2022-07-05 10:14:00 【Little yellow man software】
Method 1 : intuitive
public (string gertec_code, string feitian_code,string part_name)getPartName(string feiTianCode)
{
if (feiTianCode.Equals("")) { return ("","",""); }
// use sn check csv Get other numbers
int row = 0;
for (row = 0; row < dt.Rows.Count; row++)
{
if (dt.Rows[row][0].ToString().Equals(feiTianCode) || dt.Rows[row][1].ToString().Equals(feiTianCode))
{
return (dt.Rows[row][0].ToString(), dt.Rows[row][1].ToString(), dt.Rows[row][2].ToString());
}
}
Log(" error In the material Excel No number found in :" + feiTianCode);
return ("", "", "");
}
call
// use sn check csv Get other numbers
var v=getPartName(textBoxSN1.Text);
string feiTianCode = v.feitian_code;
string gertecCode = v.gertec_code;
string partName = v.part_name;
similar MFC in void getPartName(CString code ,CString &outcode)
Method 2: All values encapsulate a class , Return class object .
Method 3: Global variables
wait .
Function directly with proxy
边栏推荐
- 《剑来》语句摘录(七)
- 微信小程序中,从一个页面跳转到另一个页面后,在返回后发现页面同步滚动了
- Interview: how does the list duplicate according to the attributes of the object?
- Hard core, have you ever seen robots play "escape from the secret room"? (code attached)
- (1) Complete the new construction of station in Niagara vykon N4 supervisor 4.8 software
- Generics, generic defects and application scenarios that 90% of people don't understand
- MySQL数字类型学习笔记
- 面试:Bitmap像素内存分配在堆内存还是在native中
- MySQL digital type learning notes
- Unity particle special effects series - the poison spray preform is ready, and the unitypackage package can be used directly - next
猜你喜欢
mongoDB副本集
Cut off 20% of Imagenet data volume, and the performance of the model will not decline! Meta Stanford et al. Proposed a new method, using knowledge distillation to slim down the data set
ArcGIS Pro 创建要素
《天天数学》连载58:二月二十七日
Cross process communication Aidl
高级 OpenCV:BGR 像素强度图
Design and Simulation of fuzzy PID control system for liquid level of double tank (matlab/simulink)
Hard core, have you ever seen robots play "escape from the secret room"? (code attached)
一种用于干式脑电图的高密度256通道电极帽
剪掉ImageNet 20%数据量,模型性能不下降!Meta斯坦福等提出新方法,用知识蒸馏给数据集瘦身...
随机推荐
Using directive in angualr2 to realize that the picture size changes with the window size
NCP1342芯片替代料PN8213 65W氮化镓充电器方案
RMS to EAP is simply implemented through mqtt
面试:List 如何根据对象的属性去重?
. Net delay queue
Swift saves an array of class objects with userdefaults and nssecurecoding
(1) Complete the new construction of station in Niagara vykon N4 supervisor 4.8 software
Openes version query
宝塔面板MySQL无法启动
Advanced opencv:bgr pixel intensity map
Apache dolphin scheduler system architecture design
QT realizes signal transmission and reception between two windows
ConstraintLayout官方提供圆角ImageFilterView
How Windows bat script automatically executes sqlcipher command
【小技巧】获取matlab中cdfplot函数的x轴,y轴的数值
@Jsonadapter annotation usage
Usage differences between isempty and isblank
面试:Bitmap像素内存分配在堆内存还是在native中
Apache DolphinScheduler 入门(一篇就够了)
Click the picture in the mobile browser and the picture will not pop up