Create a c++ program that reads a CSV file and prints the rows at even positions. For example, if the CSV file has 10 rows, print rows 2, 4,6, 8 and 10
Abhirami_1
0
Newbie Poster
Recommended Answers
Jump to PostThis seems like a homework assignment. What do you have so far? Where are you stuck?
Jump to PostIn a weird way, C++ makes this harder than plain C, provided that you know the maximum line length in advance. (The strtok() function from <string.h> will help split up a C string into comma-separated tokens.) That idea probably won't get a good grade on your C++ assignment, even though …
All 5 Replies
Dani
4,064
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
Abhirami_1
commented:
I applied for RPA developer job they given 3 tasks to do I don't know much about C++ I checked google but I am stuck .
+0
Husoski
60
Newbie Poster
rproffitt
2,565
"Nothing to see here."
Moderator
Abhirami_1
commented:
I don't know how to print the rows in even manner
+0
rproffitt
2,565
"Nothing to see here."
Moderator
Abhirami_1
commented:
I don't know how to print the rows in even manner
+0
rproffitt
2,565
"Nothing to see here."
Moderator
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.