Hi sir !
My assignment is : I have a text file and I have to read in that text file to get every 4 symbol after the symbol “=” of each element (ex : 1= -87 --> I have to get (-87) then put it into an array so I can calculate the average value of each 24 elements in each cols respectively .
Woa… I’m so sorry because I’m a newbie in C++, … I struggled two day with my assignment so I hope you can help me to find the way to do it …what I can do now is getting the whole of each element with the “=” included , I don’t know the way to scan and get the data after ‘=’ ….
Thanks so muchhhhhhhhhhhhhhhhhhhhhh for your help… ! ps: my txt file look like this :
1=-100 2=-100 3=-80 4=-85 5=-62 6=-86 7=-100 8=-89
1=-98 2=-100 3=-80 4=-85 5=-62 6=-86 7=-100 8=-89
1=-100 2=-86 3=-77 4=-89 5=-66 6=-100 7=-92 8=-86
1=-100 2=-86 3=-77 4=-89 5=-66 6=-100 7=-92 8=-86
1=-100 2=-77 3=-79 4=-100 5=-77 6=-100 7=-100 8=-87
1=-100 2=-77 3=-79 4=-100 5=-77 6=-100 7=-100 8=-87
1=-100 2=-89 3=-82 4=-80 5=-67 6=-100 7=-100 8=-83
1=-100 2=-89 3=-82 4=-80 5=-67 6=-100 7=-100 8=-83
1=-100 2=-89 3=-82 4=-80 5=-67 6=-100 7=-100 8=-83
1=-100 2=-89 3=-82 4=-80 5=-67 6=-100 7=-100 8=-83
1=-100 2=-100 3=-78 4=-83 5=-66 6=-100 7=-100 8=-88
1=-100 2=-100 3=-78 4=-83 5=-66 6=-100 7=-100 8=-88
1=-100 2=-100 3=-78 4=-83 5=-66 6=-100 7=-100 8=-88
1=-100 2=-100 3=-78 4=-83 5=-66 6=-100 7=-100 8=-88
1=-87 2=-84 3=-78 4=-93 5=-61 6=-100 7=-100 8=-56
1=-87 2=-84 3=-78 4=-93 5=-61 6=-100 7=-100 8=-56
1=-87 2=-84 3=-78 4=-93 5=-61 6=-100 7=-100 8=-92
1=-87 2=-84 3=-78 4=-93 5=-61 6=-100 7=-100 8=-92
1=-89 2=-100 3=-73 4=-80 5=-63 6=-100 7=-100 8=-90
1=-89 2=-100 3=-73 4=-80 5=-63 6=-100 7=-100 8=-90
1=-89 2=-100 3=-74 4=-100 5=-75 6=-100 7=-100 8=-92
1=-89 2=-100 3=-74 4=-100 5=-75 6=-100 7=-100 8=-92
1=-89 2=-100 3=-74 4=-100 5=-75 6=-100 7=-100 8=-92
1=-89 2=-100 3=-74 4=-100 5=-75 6=-100 7=-100 8=-92