Search:

Type: Posts; User: LouB

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,013

    Thanks guys. I'm going to give jverkoey's...

    Thanks guys. I'm going to give jverkoey's suggestion a try. It seems to make sense if I can get it to work!!
  2. Replies
    5
    Views
    1,013

    Linked List w/o "new" ?

    I have a program where I have an array of memory called hypomem[10000]. I have implemented a cpu simulator which loads a program into hypomem, then executes the program (which is written in machine...
  3. Thread: File I/)

    by LouB
    Replies
    7
    Views
    1,025

    Thanks Swoopy!!! That works! I appreciate your...

    Thanks Swoopy!!! That works! I appreciate your help.
  4. Thread: File I/)

    by LouB
    Replies
    7
    Views
    1,025

    It works if I do: int main() {...

    It works if I do:




    int main()
    {
    Filename = "test.txt";
    //Load the program
    PC = AbsoluteLoader(Filename);
  5. Thread: File I/)

    by LouB
    Replies
    7
    Views
    1,025

    I've tried that, and I"m getting error about...

    I've tried that, and I"m getting error about converting char to char*. I'm not sure how to properly declare the variable, load the user input into that variable, and pass it to AbsoluteLoader...
  6. Thread: File I/)

    by LouB
    Replies
    7
    Views
    1,025

    I am getting ExecutableFilename as undeclared...

    I am getting ExecutableFilename as undeclared identifier as it's written here. I'm not sure where I declare it. I tried global and local without luck. I'm not good with pointers, so that is where I...
  7. Thread: File I/)

    by LouB
    Replies
    7
    Views
    1,025

    File I/)

    I need to ask the user to type in the file name, and open that file. Here are my functions, can you tell me what I'm doing wrong?





    long AbsoluteLoader (char *ExecutableFilename)
    {
    int...
  8. Replies
    5
    Views
    1,078

    I tried that (building in Border) of course, but...

    I tried that (building in Border) of course, but there is no exe file in my project folder ?!
  9. Replies
    5
    Views
    1,078

    yes, jlou, that answers my question....

    yes, jlou, that answers my question. unfortunately, i've come to realize that since i have the introductory verision of vc++, i cannot utilize the exe. I also have Borland, which is not the intro...
  10. Replies
    5
    Views
    1,078

    How do I make an executable file

    I'm using Microsoft Visual c++, dos prompt program. How do I create an executable to save to disk?? There are text fils used in the program if that makes a difference. Thanks!
  11. Thread: error w/array

    by LouB
    Replies
    5
    Views
    1,413

    I"m making some progress I think. I believe I...

    I"m making some progress I think. I believe I should be reading the bank2.txt file into the array like this:




    int numrecs = 0;
    custFile >> numrecs;

    cust custArray[50];
  12. Thread: error w/array

    by LouB
    Replies
    5
    Views
    1,413

    ..Should I be using a pointer???

    ..Should I be using a pointer???
  13. Thread: error w/array

    by LouB
    Replies
    5
    Views
    1,413

    Ok guys, I'm still having trouble here. I'm...

    Ok guys, I'm still having trouble here. I'm trying to make firstName an array within the custArray. I want to open the file bank2.txt, read the data into the array so I can make changes, then save it...
  14. Thread: error w/array

    by LouB
    Replies
    5
    Views
    1,413

    Thanks for your reply Elad... Yes, this...

    Thanks for your reply Elad...



    Yes, this is correct.



    correct again.
  15. Thread: error w/array

    by LouB
    Replies
    5
    Views
    1,413

    error w/array

    What is wrong with this code?? I'm having trouble getting the FirstName array to read in correctly, I'm not sure how to read the array into the array.




    ifstream custFile;...
  16. Replies
    4
    Views
    1,981

    Thanks Hammer. I think that will work...

    Thanks Hammer. I think that will work...
  17. Replies
    4
    Views
    1,366

    The names are coming out gargled, with only one...

    The names are coming out gargled, with only one field (either first or last name) and not both (first and last name), and the rest of the fields are re-formatting so for instance instead of...
  18. Replies
    4
    Views
    1,366

    thought it would be helpful if you had the code...

    thought it would be helpful if you had the code to run and see what it was doing.....
  19. Replies
    4
    Views
    1,366

    error writing to file

    I'm having trouble with arrays. In the following program, I can open the file and access the data ok, but when it writes back to the outfile it's messing up the data. The text file is an attachment....
  20. Thread: code using Excel?

    by LouB
    Replies
    2
    Views
    1,058

    code using Excel?

    I am writing an ATM program that will contain a database of customers - name, address, account no., balance. etc. I need to perform transactions - withdrawals, deposits, account balance, transfer, tx...
  21. Replies
    4
    Views
    1,981

    Thanks Hammer. I do have debugger, but don't...

    Thanks Hammer.
    I do have debugger, but don't know how to use it.


    >>customerData& rec = *listArray[index];
    How do you suggest I change this?
  22. Replies
    4
    Views
    1,981

    Need help w/code error

    When I run this code, I get the prompt asking if I want to add a new record, I choose 'y', then I get an executable error. Can anyone tell me where the problem is?



    //struct.h
    #ifndef...
  23. Thread: Program error

    by LouB
    Replies
    5
    Views
    1,625

    Ok. Maybe I'm going about this wrong. The purpose...

    Ok. Maybe I'm going about this wrong. The purpose of the function is to insert the data. I copied this function from another program and then made changes to accomodate this program. But somewhere in...
  24. Thread: Program error

    by LouB
    Replies
    5
    Views
    1,625

    Thanks Prelude!! The arrow operator on ...

    Thanks Prelude!!

    The arrow operator on



    >Num->next [top++] = Num.target; //ERROR 2
    Num is a pointer, try using the arrow operator instead (-> ).
  25. Thread: Program error

    by LouB
    Replies
    5
    Views
    1,625

    Program error

    My program should read five integers from a file called sample.txt, then print out the integers, add them, etc. using the overload functions. I seem to be having a problem with my isElement, insert...
Results 1 to 25 of 74
Page 1 of 3 1 2 3