Thanks for your help! I got it to work with the resize() function.
Type: Posts; User: soopah256
Thanks for your help! I got it to work with the resize() function.
Yeah. the size of the vector changes dynamically as more stations are added on.
But as I'm loading the file for the first time, the vector has nothing inside it, so I thought I needed to declare the...
I'm having trouble trying to load data from a file.
I have an array that I'm saving to a file using this function:
void option_6() { //Save To File
cout << "\nEnter the name you'd like to...
thanks waltp! i found that in my book. i hate this. my teacher tells me to do everything the wrong way...
i really don't want to ask, and i know that it's against forum rules :( ....but i need to...
can someone show me how i can use the gets() function along with the strcpy() function? i can't figure out how to use both of them trying to do the same thing
first, i'd just like to say thanks for all your help, Salem!
yeah, i'm trying to do the assignment according to the handout
so i'm trying to find some middleground of the proper way to do...
i'm not sure how to use compare() to compare the pArray[x].name structs...hopefully that makes sense
and i'm also having trouble doing the allocation...
the way my TA told me doesn't seem to work...
it's basically like this program, but i need to use the structure defined and have the user input the strings...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define...
i'm supposed to prompt the user for the size of the array (number of strings, M) and allocate memory for it.
then have the user input strings assigning each one an integer from 1 to M.
my TA said...