cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
adding cascaded data in a text file
adding cascaded data in a text file
Jun 30, 2016 at 1:00pm UTC
meahmed
(3)
Dears,
Having a text file contains data like:
2
4
5
6
8
10
How to add the neighbouring data in C++, I mean
to add each two and three channels as:
6 (2+4)
11 (5+6)
18 (8+10)
and for three channels addition,
11 (2+4+5)
24 (6+8+10)
Thanks in advance
Last edited on
Jun 30, 2016 at 1:01pm UTC
Jun 30, 2016 at 3:25pm UTC
closed account (
48T7M4Gy
)
Having a text file contains data like:
You'll more than likely need a program for that. So it looks like this might be a start. http://www.cplusplus.com/doc/tutorial/files/
Topic archived. No new replies allowed.