I need to make a class that I can access by different functions to put in and retreive data from. I've created a global class. I basically want to have two arrays that most of the functions in the programm can access. One would put data in there the other printf it, or something like it. Can I do tha twithout passing the arrays to every function?
Here's the code:
Head file class deffinition:
one of the functions that uses the class:
# include <stdio.h>
# include <string.h>
# include <stdlib.h>
# include <malloc.h>
# include "stdafx.h"
class gBAFParmList //Fixed/Selectable Analog Data
std::vector < CString > vectBP;
std::vector <CString> vectParmSelected;
// Make Victor
out = fopen("308A.txt", "w"); // Open a file for writing
fprintf(out, "\n\n>%s<\n\n", PList.vectBP[i]);