本文介绍了疯狂到这里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有这个嵌套的声明,这使我发疯!非常感谢您提供有关支架情况的帮助!
I have this nested statement thats driving me crazy! Any help with thw bracket situation is much appreciated!
if ( bShowTCP )
{
printf("\n -------------------- // -------------------- ");
printf("\n TCP Header:");
int *addressValue = new int();
char *address = LIP;
inet_pton(AF_INET, address, addressValue);
if (ip_header->source_ip == *addressValue)
{
printf("\n Source IP: %s", "0.0.0.0");
printf("\n Destination IP: %s", ipDest);
}
else
{
printf("\n Source IP: %s", ipSrc);
printf("\n Destination IP: %s", ipDest);
}
if (mysql_real_connect(conn,"urlock.db.5513143.hostedresource.com","VendorCheck","Reader1234","urlock",0,NULL,0) !=0)
{
(mysql_query(conn,"SELECT COUNT(*) FROM tblURL"));
my_ulonglong i = 0;
res_set = mysql_store_result(conn);
my_ulonglong numrows = mysql_num_rows(res_set);
LEGIT = mysql_fetch_row(res_set);
if (atoi(LEGIT[i]) == 1)
{
printf("PASS: %s\n",LEGIT[i]);
}
else
{
printf("FAIL: %s\n",LEGIT[i]);
}
else
{
printf("\n Connect Failed!");
system("\n PAUSE");
}
return 0;
}
}
break;
推荐答案
这篇关于疯狂到这里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!