我想比较两个datarows行和row1中的值。但是这段代码是生成错误
For Each row As DataRow In dt.Rows
For Each row1 As DataRow In tmpdt.Rows
If row["STATE"].Tostring() = row1["STATE"].Tostring() Then
End If
Next
Next
错误:
类型的值' System.Data.DataRow'无法转换为'布尔'
答案 0 :(得分:2)
使用圆括号void insert_beg(struct node **header_dptr) #A double pointer
{
header = *header_dptr
temp=(struct node*)malloc(sizeof(struct node));
int data_value;
printf("Enter the value\n");
scanf("%d",&data_value);
temp->info=data_value;
if(header==NULL)//when there is no node
{
header=temp;
header->link=temp;
}
else//when atleast one node has been created
{
ptr=header->link;//ptr is pointing to where header was pointing.
header->link=temp;
temp->link=ptr;
}
printf("\n\n");
}
代替()
这样可行:
[]