0

read a cell of excell file in c++

hello.how can I read a cell of excell file that is converted to csv in c++? For example I want to sum tow cell of my csv file.If you can write a complete code that calculate the sum of this csv file: 1,2 3,4 thanks alot if you can do this.You get rid me of confusion.

18th Jan 2018, 7:48 PM
moosa samadi
6 Answers
+ 1
@moosa samadi What cannot you understand?
19th Jan 2018, 3:10 PM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
0
You will have to read the complete csv file and store it inside a custom class(for a row)/array to get the sum. Then you can easily access any member required and add them. Ill just post a sample program.
19th Jan 2018, 3:18 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
0
https://code.sololearn.com/c8mbun90l7HR/?ref=app Just customize the code as per your need.
19th Jan 2018, 4:15 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
0
but I can't understand this code.
19th Jan 2018, 2:25 PM
moosa samadi
0
Excuse me.I'm not expert in c++.Most of codes you use are not well known for me.I made file a.csv for program and ran it,but code didn't work.I don't know how I can use this code.My problem is basic.It means I want a complete code that answer well.I want a cod that sum tow cell of an excell file which contain numbers.This file can contains strings and number both.
19th Jan 2018, 9:16 PM
moosa samadi