how do i fill my char array and use pointers to move my data about?
#include <iostream> #include <string> #include <sstream> using namespace std; const int LABS_SIZE = 4; void admin_menu( int, int, int ); void fill_array(); void print2screen(); //for(int i=0; i<LABS_SIZE; i++) { totlab[i] = new int[LABS_SIZE[i]]; } void fill_array(); { } int main() { char lab1[]; cout << "Login (lab, station, student ID) or (admin): "; char lab, comp, *id = new char [5], comma; cout << "input"; cin >> lab; if ( lab == 'a' ) { admin_menu(); cin.ignore('\n',1000); } else cin >> comma >> comp >> comma >> id; fill_array(lab, comp, id); print2screen(lab, comp, id); } void admin_menu( int a, int b, int c ) { char response; int lab, comp, id; cout << "You are now logged in as the admin"; cout << "Would you like to search for user?"; cin >> response; if (response == 'Y' || response == 'y') for (int i=0; i<lab; i++) cin >> lab; if (lab == 1 || lab == 2 ) cout << "Lab 1"; else (lab == 2 || lab == 2); cout << "Lab 2"; }