Search:

Type: Posts; User: Charlin

Search: Search took 0.01 seconds.

  1. Thread: Empty an Array

    by Charlin
    Replies
    11
    Views
    2,030

    void ReadIntoArray(void){ ...

    void ReadIntoArray(void){

    varuread.open("varulager.txt");

    if(!varuread){
    cout<<"Filen kunde inte öppnas";
    exit(1);
    }

    AntalVaror=0;
  2. Thread: Empty an Array

    by Charlin
    Replies
    11
    Views
    2,030

    The Array contains String, Float and int. And Im...

    The Array contains String, Float and int. And Im kind of a newbie at c++ so I don't exactly know what your talking about..
  3. Thread: Empty an Array

    by Charlin
    Replies
    11
    Views
    2,030

    Empty an Array

    I have an array that I need to update after using a function. So I need to know how to empty it before I call on the function that reads everything into the array. Simple enough to solve?
  4. Replies
    8
    Views
    1,469

    Since Im using the textfile in other functions I...

    Since Im using the textfile in other functions I thought that was the best with a global declaration..
  5. Replies
    8
    Views
    1,469

    That's because Im writting a quite big program...

    That's because Im writting a quite big program and this is just a function. I have it declared in the top of my program.
    EDIT; Got the error message, error C2676: binary '<<' : 'class...
  6. Replies
    8
    Views
    1,469

    varulager

    varulager << artnr, artname, artpris; ?
  7. Replies
    8
    Views
    1,469

    Cin to textfile

    I want to get artnr, artname and artpris to a textfile called varulager.txt . But I don't really remember how, can getline() send all the variables as I have written to the textfile?

    void...
Results 1 to 7 of 7