第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會有你想問的

出現(xiàn)Error executing xicl6.exe.?為什么會這樣?

出現(xiàn)Error executing xicl6.exe.?為什么會這樣?

千萬里不及你 2022-05-13 14:11:34
#include<stdio.h>#include<string.h>#include<stdlib.h>struct boom{int x;char y[10];};void B(boom &T);void main(){boom T[10];for(int i=0;i<10;i++){scanf("%d %s",&T[i].x,T[i].y);printf("%d %s\n",T[i].x,T[i].y);}B(T[10]);}void B(boom &T){boom T1;scanf("%d %s",&T1.x,T1.y);for(int i=0;i<10;i++){if(strcmp(T[i].y,T1.y)==0){printf("hhhhh\n");exit(0);}}}C:\Documents and Settings\Administrator\桌面\Text1.cpp(26) : error C2676: binary '[' : 'struct boom' does not define this operator or a conversion to a type acceptable to the predefined operatorC:\Documents and Settings\Administrator\桌面\Text1.cpp(26) : error C2228: left of '.y' must have class/struct/union typeError executing xicl6.exe.
查看完整描述

2 回答

?
隔江千里

TA貢獻(xiàn)1906條經(jīng)驗(yàn) 獲得超10個(gè)贊

void B(boom &T),這個(gè)函數(shù)期望參數(shù)是一個(gè)boom引用,而你傳入的是一個(gè)級數(shù)頭指針。

查看完整回答
反對 回復(fù) 2022-05-16
?
慕沐林林

TA貢獻(xiàn)2016條經(jīng)驗(yàn) 獲得超9個(gè)贊

試試 把 &T[i].y 改成 &((T[i]).y)

查看完整回答
反對 回復(fù) 2022-05-16
  • 2 回答
  • 0 關(guān)注
  • 162 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號