This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
#include<stdio.h>
#include<stdlib.h>
// 确保你的Sample结构已经被定义
typedefstructSample{
// ... 定义你的结构体成员 ...
}Sample;
// 全局变量,用于存储读取的数据行数
inttestSize=0;
Sample*getTestData(constchar*filename){
FILE*file=fopen(filename,"r");// 打开文件
if(file==NULL){
printf("%s Encountered an error while opening the file!\n\a",filename);