Hello, I am trying to read in a Data file and I am having some issues. My problem is that I need to read in a file with an unkown amount of phone numbers.
For example my data file is this..
111111 A 2044444444
222222 B 4055532456 1256950334
333333 C 5064064054
444444 D 5063050055
When I use my current code, the output ignores the account number, and uses the plan type as the account number, then the first digit of the phone number as the plan type. I have never done anything like this before, and I have no idea what I'm doing wrong. This is my code so far...
a) i suggest instead of using standard c libraries like this: #include <x.h> use it like this: #include <cx>
b) dont use system
c) i wouldnt use conio. its deprecated
d) since you seem to like writing c code, you could either use a raw pointer or a basic linked list, or if you want to go the c++ route, i would use a container in the stl, such as std::list, std::vector, std::stack, etc