I have a file that contains employee info such as name telephone address id salary. I used in.getline to store them in respective fields (employee.name, employee.id) the problem is i used char for ID so i can use in.getline but i need to convert it to int so i can sort by id. how can i convert...
I made a class which will store all the information of a list of employees. I want to know how to read in from a file and seperate the information into where i want it like the adress as employee.address or the gender as employee.gender. I was trying to use getline but its not working how i want...
I have to read a few words from a file and save it into a tree so i can search. the file contains these words.
cat
dog
car
mother
nike
hat
last
this is what i have so far
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
void main()
{
long int i=0...
I have to read a few words from a file and save it into a tree so i can search. the file contains these words.
cat
dog
car
mother
nike
hat
last
this is what i have so far
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
void main()
{
long int i=0...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.