Guest User

Errore compilatore

a guest
Sep 24th, 2020
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.84 KB | None | 0 0
  1. main.cpp: In function ‘int main()’:
  2. main.cpp:77:22: error: cannot convert ‘main()::Dir_Data*’ to ‘Dir_Data*’
  3. 77 | chose_Dir(Dir);
  4. | ^~~
  5. | |
  6. | main()::Dir_Data*
  7. In file included from main.cpp:18:
  8. Function.hh:20:37: note: initializing argument 1 of ‘void chose_Dir(Dir_Data*)’
  9. 20 | void chose_Dir(struct Dir_Data* Dir);
  10. | ~~~~~~~~~~~~~~~~~^~~
  11. main.cpp:78:24: error: cannot convert ‘main()::Card_Data*’ to ‘Card_Data*’
  12. 78 | take_Data_Single(Card, Dir);
  13. | ^~~~
  14. | |
  15. | main()::Card_Data*
  16. In file included from main.cpp:18:
  17. Function.hh:22:45: note: initializing argument 1 of ‘void take_Data_Single(Card_Data*, Dir_Data*)’
  18. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  19. | ~~~~~~~~~~~~~~~~~~^~~~
  20. main.cpp:81:19: error: cannot convert ‘main()::Dir_Data*’ to ‘Dir_Data*’
  21. 81 | search_Dirs(Dir);
  22. | ^~~
  23. | |
  24. | main()::Dir_Data*
  25. In file included from main.cpp:18:
  26. Function.hh:18:39: note: initializing argument 1 of ‘void search_Dirs(Dir_Data*)’
  27. 18 | void search_Dirs(struct Dir_Data* Dir);
  28. | ~~~~~~~~~~~~~~~~~^~~
  29. main.cpp:87:24: error: cannot convert ‘main()::Card_Data*’ to ‘Card_Data*’
  30. 87 | inserting(Card);
  31. | ^~~~
  32. | |
  33. | main()::Card_Data*
  34. In file included from main.cpp:18:
  35. Function.hh:25:38: note: initializing argument 1 of ‘void inserting(Card_Data*)’
  36. 25 | void inserting(struct Card_Data* Card);
  37. | ~~~~~~~~~~~~~~~~~~^~~~
  38. main.cpp:88:24: error: cannot convert ‘main()::Card_Data*’ to ‘Card_Data*’
  39. 88 | save_Data(Card, Dir);
  40. | ^~~~
  41. | |
  42. | main()::Card_Data*
  43. In file included from main.cpp:18:
  44. Function.hh:34:38: note: initializing argument 1 of ‘void save_Data(Card_Data*, Dir_Data*)’
  45. 34 | void save_Data(struct Card_Data* Card, struct Dir_Data* Dir);
  46. | ~~~~~~~~~~~~~~~~~~^~~~
  47. main.cpp:91:20: error: cannot convert ‘main()::Card_Data*’ to ‘Card_Data*’
  48. 91 | print(Card);
  49. | ^~~~
  50. | |
  51. | main()::Card_Data*
  52. In file included from main.cpp:18:
  53. Function.hh:28:34: note: initializing argument 1 of ‘void print(Card_Data*)’
  54. 28 | void print(struct Card_Data* Card);
  55. | ~~~~~~~~~~~~~~~~~~^~~~
  56. main.cpp:96:23: error: cannot convert ‘main()::Card_Data*’ to ‘Card_Data*’
  57. 96 | research(Card);
  58. | ^~~~
  59. | |
  60. | main()::Card_Data*
  61. In file included from main.cpp:18:
  62. Function.hh:41:37: note: initializing argument 1 of ‘void research(Card_Data*)’
  63. 41 | void research(struct Card_Data* Card);
  64. | ~~~~~~~~~~~~~~~~~~^~~~
  65. main.cpp:99:26: error: cannot convert ‘main()::Card_Data*’ to ‘Card_Data*’
  66. 99 | cancel_Card(Card);
  67. | ^~~~
  68. | |
  69. | main()::Card_Data*
  70. In file included from main.cpp:18:
  71. Function.hh:31:40: note: initializing argument 1 of ‘void cancel_Card(Card_Data*)’
  72. 31 | void cancel_Card(struct Card_Data* Card);
  73. | ~~~~~~~~~~~~~~~~~~^~~~
  74. main.cpp:100:24: error: cannot convert ‘main()::Card_Data*’ to ‘Card_Data*’
  75. 100 | save_Data(Card, Dir);
  76. | ^~~~
  77. | |
  78. | main()::Card_Data*
  79. In file included from main.cpp:18:
  80. Function.hh:34:38: note: initializing argument 1 of ‘void save_Data(Card_Data*, Dir_Data*)’
  81. 34 | void save_Data(struct Card_Data* Card, struct Dir_Data* Dir);
  82. | ~~~~~~~~~~~~~~~~~~^~~~
  83. Function.cpp: In function ‘int int_Input()’:
  84. Function.cpp:13:31: error: ‘String_Input’ was not declared in this scope; did you mean ‘string_Input’?
  85. 13 | std::string S_Input = String_Input();
  86. | ^~~~~~~~~~~~
  87. | string_Input
  88. Function.cpp: In function ‘void create_Dir()’:
  89. Function.cpp:23:31: error: ‘String_Input’ was not declared in this scope; did you mean ‘string_Input’?
  90. 23 | std::string Dir_Name = String_Input();
  91. | ^~~~~~~~~~~~
  92. | string_Input
  93. Function.cpp: In function ‘void search_Dirs(ir_Data*)’:
  94. Function.cpp:40:22: error: no match for ‘operator/=’ (operand types are ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} and ‘const char [5]’)
  95. 40 | SearchingDir /= ".YGO";
  96. | ~~~~~~~~~~~~~^~~~~~~~~
  97. Function.cpp:42:54: error: expected ‘)’ before ‘{’ token
  98. 42 | for(auto &p : fs::directory_iterator(DataDir){
  99. | ~ ^
  100. | )
  101. Function.cpp:43:35: error: ‘const class std::filesystem::__cxx11::directory_entry’ has no member named ‘filename’
  102. 43 | std::cout << c << ": " << p.filename() << std::endl;
  103. | ^~~~~~~~
  104. Function.cpp:44:6: error: ‘DirName’ was not declared in this scope
  105. 44 | DirName->push_back();
  106. | ^~~~~~~
  107. Function.cpp: In function ‘void chose_Dir(Dir_Data*)’:
  108. Function.cpp:51:29: error: expected primary-expression before ‘*’ token
  109. 51 | search_Dirs(Dir_Data* Dir);
  110. | ^
  111. Function.cpp:56:9: error: ‘ChosenDir’ was not declared in this scope; did you mean ‘chose_Dir’?
  112. 56 | ChosenDir = DirName->at(Index);
  113. | ^~~~~~~~~
  114. | chose_Dir
  115. Function.cpp:56:21: error: ‘DirName’ was not declared in this scope
  116. 56 | ChosenDir = DirName->at(Index);
  117. | ^~~~~~~
  118. Function.cpp: In function ‘void take_Data_Single(Card_Data*, Dir_Data*)’:
  119. Function.cpp:64:36: error: invalid use of incomplete type ‘struct Dir_Data’
  120. 64 | std::ifstream CardNames(Dir->ChosenDir /= "CardNames.txt");
  121. | ^~
  122. In file included from Function.cpp:1:
  123. Function.hh:18:29: note: forward declaration of ‘struct Dir_Data’
  124. 18 | void search_Dirs(struct Dir_Data* Dir);
  125. | ^~~~~~~~
  126. Function.cpp:65:33: error: invalid use of incomplete type ‘struct Dir_Data’
  127. 65 | std::ifstream CardID(Dir->ChosenDir /= "CardID.txt");
  128. | ^~
  129. In file included from Function.cpp:1:
  130. Function.hh:18:29: note: forward declaration of ‘struct Dir_Data’
  131. 18 | void search_Dirs(struct Dir_Data* Dir);
  132. | ^~~~~~~~
  133. Function.cpp:66:39: error: invalid use of incomplete type ‘struct Dir_Data’
  134. 66 | std::ifstream CardQuantity(Dir->ChosenDir /= "CardQuantity.txt");
  135. | ^~
  136. In file included from Function.cpp:1:
  137. Function.hh:18:29: note: forward declaration of ‘struct Dir_Data’
  138. 18 | void search_Dirs(struct Dir_Data* Dir);
  139. | ^~~~~~~~
  140. Function.cpp:72:21: error: invalid use of incomplete type ‘struct Card_Data’
  141. 72 | Card->Card_Names.push_back(Dummy_Input); // Put the value of Dummy_Input
  142. | ^~
  143. In file included from Function.cpp:1:
  144. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  145. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  146. | ^~~~~~~~~
  147. Function.cpp:77:21: error: invalid use of incomplete type ‘struct Card_Data’
  148. 77 | Card->Card_Id.push_back(Dummy_Input);
  149. | ^~
  150. In file included from Function.cpp:1:
  151. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  152. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  153. | ^~~~~~~~~
  154. Function.cpp:82:21: error: invalid use of incomplete type ‘struct Card_Data’
  155. 82 | Card->Card_Quantity.push_back(Dummy_Input);
  156. | ^~
  157. In file included from Function.cpp:1:
  158. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  159. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  160. | ^~~~~~~~~
  161. Function.cpp:92:13: error: invalid use of incomplete type ‘struct Card_Data’
  162. 92 | Card->Card_Names.pop_back();
  163. | ^~
  164. In file included from Function.cpp:1:
  165. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  166. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  167. | ^~~~~~~~~
  168. Function.cpp:93:13: error: invalid use of incomplete type ‘struct Card_Data’
  169. 93 | Card->Card_ID.pop_back();
  170. | ^~
  171. In file included from Function.cpp:1:
  172. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  173. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  174. | ^~~~~~~~~
  175. Function.cpp:94:13: error: invalid use of incomplete type ‘struct Card_Data’
  176. 94 | Card->Card_Quantity.pop_back();
  177. | ^~
  178. In file included from Function.cpp:1:
  179. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  180. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  181. | ^~~~~~~~~
  182. Function.cpp: In function ‘void save_Data(Card_Data*, Dir_Data*)’:
  183. Function.cpp:98:36: error: invalid use of incomplete type ‘struct Dir_Data’
  184. 98 | std::ofstream CardNames(Dir->Chosen_Dir /= "CardNames.txt");
  185. | ^~
  186. In file included from Function.cpp:1:
  187. Function.hh:18:29: note: forward declaration of ‘struct Dir_Data’
  188. 18 | void search_Dirs(struct Dir_Data* Dir);
  189. | ^~~~~~~~
  190. Function.cpp:99:33: error: invalid use of incomplete type ‘struct Dir_Data’
  191. 99 | std::ofstream CardID(Dir->ChosenDir /= "CardID.txt");
  192. | ^~
  193. In file included from Function.cpp:1:
  194. Function.hh:18:29: note: forward declaration of ‘struct Dir_Data’
  195. 18 | void search_Dirs(struct Dir_Data* Dir);
  196. | ^~~~~~~~
  197. Function.cpp:100:39: error: invalid use of incomplete type ‘struct Dir_Data’
  198. 100 | std::ofstream CardQuantity(Dir->ChosenDir /= "CardQuantity.txt");
  199. | ^~
  200. In file included from Function.cpp:1:
  201. Function.hh:18:29: note: forward declaration of ‘struct Dir_Data’
  202. 18 | void search_Dirs(struct Dir_Data* Dir);
  203. | ^~~~~~~~
  204. Function.cpp:101:34: error: invalid use of incomplete type ‘struct Card_Data’
  205. 101 | for (std::string i : Card->Card_Names)
  206. | ^~
  207. In file included from Function.cpp:1:
  208. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  209. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  210. | ^~~~~~~~~
  211. Function.cpp:105:34: error: invalid use of incomplete type ‘struct Card_Data’
  212. 105 | for (std::string i : Card->Card_ID)
  213. | ^~
  214. In file included from Function.cpp:1:
  215. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  216. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  217. | ^~~~~~~~~
  218. Function.cpp:109:26: error: invalid use of incomplete type ‘struct Card_Data’
  219. 109 | for(std::string i : Card->Card-Quantity){
  220. | ^~
  221. In file included from Function.cpp:1:
  222. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  223. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  224. | ^~~~~~~~~
  225. Function.cpp:109:33: error: ‘Quantity’ was not declared in this scope; did you mean ‘CardQuantity’?
  226. 109 | for(std::string i : Card->Card-Quantity){
  227. | ^~~~~~~~
  228. | CardQuantity
  229. Function.cpp: In function ‘void inserting(Card_Data*)’:
  230. Function.cpp:132:6: error: invalid use of incomplete type ‘struct Card_Data’
  231. 132 | Card->Card_Names.push_back(Input_Name);
  232. | ^~
  233. In file included from Function.cpp:1:
  234. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  235. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  236. | ^~~~~~~~~
  237. Function.cpp:133:13: error: invalid use of incomplete type ‘struct Card_Data’
  238. 133 | Card->Card_Id.push_back(Input_Id);
  239. | ^~
  240. In file included from Function.cpp:1:
  241. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  242. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  243. | ^~~~~~~~~
  244. Function.cpp:134:6: error: invalid use of incomplete type ‘struct Card_Data’
  245. 134 | Card->Card_Quantity.push_back(Input_Quantity);
  246. | ^~
  247. In file included from Function.cpp:1:
  248. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  249. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  250. | ^~~~~~~~~
  251. Function.cpp: In function ‘void cancel_Card(Card_Data*)’:
  252. Function.cpp:144:17: error: invalid use of incomplete type ‘struct Card_Data’
  253. 144 | Card->Card_Names.erase(Name->begin());
  254. | ^~
  255. In file included from Function.cpp:1:
  256. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  257. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  258. | ^~~~~~~~~
  259. Function.cpp:144:36: error: ‘Name’ was not declared in this scope
  260. 144 | Card->Card_Names.erase(Name->begin());
  261. | ^~~~
  262. Function.cpp:145:17: error: invalid use of incomplete type ‘struct Card_Data’
  263. 145 | Card->Card_Id.erase(ID->begin());
  264. | ^~
  265. In file included from Function.cpp:1:
  266. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  267. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  268. | ^~~~~~~~~
  269. Function.cpp:145:33: error: ‘ID’ was not declared in this scope
  270. 145 | Card->Card_Id.erase(ID->begin());
  271. | ^~
  272. Function.cpp:146:17: error: invalid use of incomplete type ‘struct Card_Data’
  273. 146 | Card->Card_Quantity.erase(Quantity->begin());
  274. | ^~
  275. In file included from Function.cpp:1:
  276. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  277. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  278. | ^~~~~~~~~
  279. Function.cpp:146:39: error: ‘Quantity’ was not declared in this scope
  280. 146 | Card->Card_Quantity.erase(Quantity->begin());
  281. | ^~~~~~~~
  282. Function.cpp:149:17: error: invalid use of incomplete type ‘struct Card_Data’
  283. 149 | Card->Card_Names.erase(Card->Card_Names.begin() + i);
  284. | ^~
  285. In file included from Function.cpp:1:
  286. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  287. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  288. | ^~~~~~~~~
  289. Function.cpp:149:40: error: invalid use of incomplete type ‘struct Card_Data’
  290. 149 | Card->Card_Names.erase(Card->Card_Names.begin() + i);
  291. | ^~
  292. In file included from Function.cpp:1:
  293. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  294. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  295. | ^~~~~~~~~
  296. Function.cpp:150:17: error: invalid use of incomplete type ‘struct Card_Data’
  297. 150 | Card->Card_Id.erase(Card->Card_Id.begin() + i);
  298. | ^~
  299. In file included from Function.cpp:1:
  300. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  301. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  302. | ^~~~~~~~~
  303. Function.cpp:150:37: error: invalid use of incomplete type ‘struct Card_Data’
  304. 150 | Card->Card_Id.erase(Card->Card_Id.begin() + i);
  305. | ^~
  306. In file included from Function.cpp:1:
  307. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  308. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  309. | ^~~~~~~~~
  310. Function.cpp:151:10: error: invalid use of incomplete type ‘struct Card_Data’
  311. 151 | Card->Card_Quantity.erase(Card->Card_Quantity.begin() + i);
  312. | ^~
  313. In file included from Function.cpp:1:
  314. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  315. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  316. | ^~~~~~~~~
  317. Function.cpp:151:36: error: invalid use of incomplete type ‘struct Card_Data’
  318. 151 | Card->Card_Quantity.erase(Card->Card_Quantity.begin() + i);
  319. | ^~
  320. In file included from Function.cpp:1:
  321. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  322. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  323. | ^~~~~~~~~
  324. Function.cpp: In function ‘void print(Card_Data*)’:
  325. Function.cpp:161:25: error: invalid use of incomplete type ‘struct Card_Data’
  326. 161 | Size_Name = Card->Card_Names.size();
  327. | ^~
  328. In file included from Function.cpp:1:
  329. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  330. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  331. | ^~~~~~~~~
  332. Function.cpp:162:23: error: invalid use of incomplete type ‘struct Card_Data’
  333. 162 | Size_ID = Card->Card_Id.size();
  334. | ^~
  335. In file included from Function.cpp:1:
  336. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  337. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  338. | ^~~~~~~~~
  339. Function.cpp:163:29: error: invalid use of incomplete type ‘struct Card_Data’
  340. 163 | Size_Quantity = Card->Card_Quantity.size();
  341. | ^~
  342. In file included from Function.cpp:1:
  343. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  344. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  345. | ^~~~~~~~~
  346. Function.cpp:168:40: error: invalid use of incomplete type ‘struct Card_Data’
  347. 168 | std::cout << " Name: " << Card->Card_Names.at(Index);
  348. | ^~
  349. In file included from Function.cpp:1:
  350. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  351. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  352. | ^~~~~~~~~
  353. Function.cpp:169:38: error: invalid use of incomplete type ‘struct Card_Data’
  354. 169 | std::cout << " Id: " << Card->Card_Id.at(Index);
  355. | ^~
  356. In file included from Function.cpp:1:
  357. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  358. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  359. | ^~~~~~~~~
  360. Function.cpp:170:42: error: invalid use of incomplete type ‘struct Card_Data’
  361. 170 | std::cout << " Amount: " << Card->Card_Quantity.at(Index) << std::endl;
  362. | ^~
  363. In file included from Function.cpp:1:
  364. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  365. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  366. | ^~~~~~~~~
  367. Function.cpp: In function ‘int is_There(Card_Data*, std::string)’:
  368. Function.cpp:180:32: error: invalid use of incomplete type ‘struct Card_Data’
  369. 180 | for(int i = 0; i < Card->Card_Id.size(); ++i){
  370. | ^~
  371. In file included from Function.cpp:1:
  372. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  373. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  374. | ^~~~~~~~~
  375. Function.cpp:181:20: error: invalid use of incomplete type ‘struct Card_Data’
  376. 181 | if(Card->Card_Id.at(i) == To_Find){
  377. | ^~
  378. In file included from Function.cpp:1:
  379. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  380. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  381. | ^~~~~~~~~
  382. Function.cpp: In function ‘void research(Card_Data*)’:
  383. Function.cpp:192:35: error: ‘ID’ was not declared in this scope
  384. 192 | int Output_Flag = IsThere(ID, To_Find);
  385. | ^~
  386. Function.cpp:192:27: error: ‘IsThere’ was not declared in this scope; did you mean ‘is_There’?
  387. 192 | int Output_Flag = IsThere(ID, To_Find);
  388. | ^~~~~~~
  389. | is_There
  390. Function.cpp:198:42: error: invalid use of incomplete type ‘struct Card_Data’
  391. 198 | std::cout << "Name: " << Card->Card_Names.at(Output_Flag);
  392. | ^~
  393. In file included from Function.cpp:1:
  394. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  395. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  396. | ^~~~~~~~~
  397. Function.cpp:199:34: error: invalid use of incomplete type ‘struct Card_Data’
  398. 199 | std::cout << " ID: " << Card->Card_Id.at(Output_Flag);
  399. | ^~
  400. In file included from Function.cpp:1:
  401. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  402. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  403. | ^~~~~~~~~
  404. Function.cpp:200:38: error: invalid use of incomplete type ‘struct Card_Data’
  405. 200 | std::cout << " Amount: " << Card->Card_Quantity.at(Output_Flag)<< std::endl;
  406. | ^~
  407. In file included from Function.cpp:1:
  408. Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
  409. 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
  410. | ^~~~~~~~~
  411.  
Advertisement
Add Comment
Please, Sign In to add comment