I am writing this program that runs in XCode but when I compile it in g++ and execute it I get a segmentation error. After an extensive search I have found the function where the error is happening but I cannot figure out what is happening.
This is my header File
//
// record.h
// Program 8
//
// Created by Alain Davila on 7/3/13.
// Copyright (c) 2013 Alain Davila. All rights reserved.
//