Search:

Type: Posts; User: kristentx

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    1,577

    I removed the for loop and now the final value is...

    I removed the for loop and now the final value is not printed 97 times, but it still appears that the files are not being merged correctly. I kept that last if in, but I realized that I typed it in...
  2. Replies
    9
    Views
    1,577

    Thanks...I can't believe I missed that! Well I...

    Thanks...I can't believe I missed that! Well I called mergeSortedArrays, and now the output has 3 rows of numbers from one of my data files, and then 97 rows of -9.25596E+61.

    One data file has...
  3. Replies
    9
    Views
    1,577

    I tried not initializing array3Size at all, but...

    I tried not initializing array3Size at all, but then when I run my program, I get an error "The variable 'array3Size' is being used without being defined." I couldn't figure out the problem there,...
  4. Replies
    9
    Views
    1,577

    Values not going to external file

    I have compiled a program which is supposed to read one array from one file, read a second array from a second file, sort each array separately, then merge the sorted arrays into a third array, which...
  5. I am not sure what you mean, could you please...

    I am not sure what you mean, could you please explain a little more? Do you mean I should have an if clause involving count and if it's less than MAX_SIZE it should stop the loop?
  6. The problem is that my instructor put together...

    The problem is that my instructor put together the bare bones, and I am afraid to change the return type of main, because that is what he put in there.
    I made some changes, and now the scores are...
  7. Incorrect Valules displaying in a struct member

    My program is supposed to read input ( a student ID and then a score, separated by a space) from a user named file, store that data in a struct, and compute the average of all the scores. If the...
  8. Replies
    1
    Views
    1,660

    I/O with strings

    The object of my program is to read one line from a file, read a line from another file, compare the two and if file 1 is smaller than file 2, then it is supposed to write from file 1 to the output...
  9. Replies
    13
    Views
    2,939

    I don't even get the chance to put in input. ...

    I don't even get the chance to put in input. When I compile and run, nothing happens. I have tried double clicking on the exe file, but still nothing happens. I am going to try and install a...
  10. Replies
    13
    Views
    2,939

    I have tried shutting down Dev-C++ several times;...

    I have tried shutting down Dev-C++ several times; it's still not working. I am going to try running again in the morning, after I shut down tonight, to see if that helps. I just wanted to make sure...
  11. Replies
    13
    Views
    2,939

    I probably did it all wrong, but here is the way...

    I probably did it all wrong, but here is the way it's supposed to work. The program reads input file 1 and then reads input file 2. Then it is supposed to use strlen to compare and see which one is...
  12. Replies
    13
    Views
    2,939

    The program is supposed to prompt the user to...

    The program is supposed to prompt the user to name two different input files, and one output file, read from both input files to merge the data and write it to the output file. When I try to run it,...
  13. Replies
    13
    Views
    2,939

    Problem Running Program After Compiling

    I have written a program and it compiles successfully (or at least I am not getting any errors), but it will not run. I am sure I am missing whatever it is that I did wrong. Can someone take a look...
  14. Replies
    11
    Views
    1,292

    thanks everyone for all the help

    thanks everyone for all the help
  15. Replies
    11
    Views
    1,292

    OK, I think I have fixed the issues but now the...

    OK, I think I have fixed the issues but now the file is not being created.



    #include <iostream>
    #include <iomanip>
    #include <fstream>
    #include <cmath>
    #include <cstdlib>
    #include...
  16. Replies
    11
    Views
    1,292

    I think maybe my compiler inserted a return...

    I think maybe my compiler inserted a return statement.
  17. Replies
    11
    Views
    1,292

    I do want to return an answer but the problem is...

    I do want to return an answer but the problem is that I actually have two answers that I need to pass to the calling function. calculateOneLineOfLoanResults calls two other functions, one which...
  18. Replies
    11
    Views
    1,292

    Problem passing values

    I apologize if this is a dumb problem, but I really need help.

    I have most of my program worked out, but I am having a hard time getting it to do what I want it to do. The idea is that in main, I...
  19. Replies
    2
    Views
    1,089

    Problem writing to external file

    I am attempting to write a program for an assignment. I have to use several functions to open and then write some data to an external file. I have to use one function just to open the external...
  20. Replies
    2
    Views
    1,937

    Problem with cout

    Hi, I have an assignment to create a program that asks the user to input an employee's name, the date and the amount of their paycheck and print out a simulated paycheck. I have almost everything...
  21. error messages

    arrayallocator.cpp
    arrayallocator.cpp(18) : error C2065: 'array' : undeclared identifier
    arrayallocator.cpp(18) : error C2065: 'numElem' : undeclared identifier
    testaveraging.cpp...
  22. using data returned from fucntion in one cpp file to others in a different cpp file

    Hi,

    I am supposed to create a project with two different cpp files, the first cpp file arrayallocator.cpp is supposed to dynamically allocate an array of integers and return a pointer to the...
  23. Replies
    12
    Views
    4,908

    OK, so I looked around and found a tutorial on...

    OK, so I looked around and found a tutorial on arrays and I thought I understood it, so I went back to my code and edited it. Still getting errors.


    #include <iostream>
    #include <iomanip>...
  24. Replies
    12
    Views
    4,908

    Here is what I have now: #include ...

    Here is what I have now:


    #include <iostream>
    #include <iomanip>
    using namespace std;

    void initArray();
    void selectionSort(char &names[20][17]);
    int searchName(char &names[20][17]);
  25. Replies
    12
    Views
    4,908

    When I put the & in the prototype and definition,...

    When I put the & in the prototype and definition, I get the following error:


    error C2234: 'names' : arrays of references are illegal


    also I tried using [NUM_NAMES][SIZE] instead of [20][17]...
Results 1 to 25 of 30
Page 1 of 2 1 2