Lets say i want to write and read this value Suppose i want to write
SEAT:
NAME:
CLASS:
DEPR. TIME:
ARRV. TIME:
FROM:
TO:
======================Thus, this is what will be looked like in file.doc=========
SEAT NAME            CLASS     DEPARTURE TIME  ARRIVAL TIME  FROM    DESTINATION
23   Janes Rowan     ECONOMY   11:30           17:30         NY      CHINA
24   Robert Sulliman FIRST     12:30           18:30         LONDON  JAPAN
=================================================================================
And i want to read
Please Enter Your Name: Janes Rowan
=============================display on screen===================================
SEAT NAME            CLASS     DEPARTURE TIME  ARRIVAL TIME  FROM    DESTINATION
23   Janes Rowan     ECONOMY   11:30           17:30         NY      CHINA
================================================================================
How suppose my programming code in c++ will be? Because im facing problem in writing (save in file.doc) and searching of string with two words and more, and to display entire row on screen. And also i do want to know how to delete entire row i.e Please Enter Your Name to Cancel Ticket: Janes Rowan Thus, it will delete entire row I am beginner, thus, hope anyone may help me. Thanks so much XD!
                        
This code meets your spec as it was given (I think). But it is not likely what you need for your assignment. But perhaps there are some ideas here that you can use.
My input file, db.txt:
My solution, airline.cpp:
Tested with GCC 4.8.2:
g++ -Wall -Wextra -std=c++0x airline.cpp