string array doesn't work 新评论 [删除] 2011.08.12 19:25 //I define the global array. string m_symbols[FX_GOODS_MAXNUM]; //set the value: for(int i=0; i<FX_GOODS_MAXNUM;i++) { m_symbols[i]="abc"; } for(int i=0; i<FX_GOODS_MAXNUM;i++) { Alert(m_symbols[i]); //nothing printed, I want use the string array } Can anyone help me to solve the problem; thank string array doesn't work for mql4 EA hedge - open new position for a lot of symbols - multicurrency. How to use arrays to return strings 360737395 2011.08.13 12:39 #1 承接EA、指标编写、加密、破解等业务。QQ360737395。 工作室网站:http://www.fx988.cn/ 不需要重新去学习计算机就可以轻松实现你的策略。 新评论 您错过了交易机会: 免费交易应用程序 8,000+信号可供复制 探索金融市场的经济新闻 注册 登录 拉丁字符(不带空格) 密码将被发送至该邮箱 发生错误 使用 Google 登录 您同意网站政策和使用条款 如果您没有帐号,请注册 可以使用cookies登录MQL5.com网站。 请在您的浏览器中启用必要的设置,否则您将无法登录。 忘记您的登录名/密码? 使用 Google 登录
//I define the global array.
string m_symbols[FX_GOODS_MAXNUM];
//set the value:
for(int i=0; i<FX_GOODS_MAXNUM;i++)
{
m_symbols[i]="abc";
}
for(int i=0; i<FX_GOODS_MAXNUM;i++)
{
Alert(m_symbols[i]); //nothing printed, I want use the string array
}
Can anyone help me to solve the problem; thank