Search:

Type: Posts; User: soopah256

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    2,072

    Thanks for your help! I got it to work with the...

    Thanks for your help! I got it to work with the resize() function.
  2. Replies
    4
    Views
    2,072

    Yeah. the size of the vector changes dynamically...

    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...
  3. Replies
    4
    Views
    2,072

    Opening file and loading data into Vector

    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...
  4. Replies
    10
    Views
    2,373

    thanks waltp! i found that in my book. i hate...

    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...
  5. Replies
    10
    Views
    2,373

    can someone show me how i can use the gets()...

    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
  6. Replies
    10
    Views
    2,373

    first, i'd just like to say thanks for all your...

    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...
  7. Replies
    10
    Views
    2,373

    i'm not sure how to use compare() to compare the...

    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...
  8. Replies
    10
    Views
    2,373

    it's basically like this program, but i need to...

    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...
  9. Replies
    10
    Views
    2,373

    qsort() w/ pointer swapping

    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...
Results 1 to 9 of 9