Search:

Type: Posts; User: hoangvo

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    940

    Wierd Text from File

    ok I got a new problem after the Dbl Link list was solve.

    The moving from one node to another and back works perfectly.

    now the problem is the information retrieve from the file.
    for example, ...
  2. Replies
    6
    Views
    1,466

    cout

    cout << "Please give the Day of the month" << endl;
    cin.get();
    cin >> Day_X;
    change it around


    cout << "Please give the Day of the month" << endl;
    cin >> Day_X;
    cin.get();
  3. Replies
    6
    Views
    1,436

    i did a few test and figure it out: here is...

    i did a few test and figure it out:

    here is the new test loadFile():


    void loadFile()
    {
    fstream ofile("Account.txt",ios::binary|ios::in);
    if(!ofile.is_open()) return ; //1=no file exist
  4. Replies
    6
    Views
    1,436

    rootP is a pointer to an Account object but was...

    rootP is a pointer to an Account object but was instantiate at:

    rootP=new Account
    its in the loadFile() function

    I have no problem moving the current Pointer (currP) starting from root to the...
  5. Replies
    6
    Views
    1,436

    I just found out my current point is not moving...

    I just found out my current point is not moving back at all.
    any reasons or help?
  6. Replies
    6
    Views
    1,436

    Dbl Link Problem

    Hi all,

    I am having a problem with a double link list.
    The list is loaded from a file, I got the list to move forward but cant seem to move backward.

    Account.h:

    #include <iostream>...
  7. Replies
    4
    Views
    925

    question about pointers

    when declaring:


    Account nAcnt1;

    and


    Account *nAcnt2;
  8. Replies
    17
    Views
    2,210

    I use do-while for my menu choice cause it makes...

    I use do-while for my menu choice cause it makes sense to me.


    int c;
    do
    {
    system("cls");
    cout<<"1- menu1\n";
    cout<<"2- menu2\n";
    cout<<"3- menu3\n";
  9. Thread: opening files

    by hoangvo
    Replies
    5
    Views
    919

    Thank you, I got it to work via binary method....

    Thank you,

    I got it to work via binary method.

    its a bit to remember but as i constantly type it i will eventually remember.

    its abit confusing as well cause of...
  10. Thread: opening files

    by hoangvo
    Replies
    5
    Views
    919

    opening a file in append mode so I can write info...

    opening a file in append mode so I can write info into it, only reason i m asking is because ios:app is hard to remember sometimes.

    just other choices for opening a file that might be easier to...
  11. Thread: opening files

    by hoangvo
    Replies
    5
    Views
    919

    opening files

    is there any other way to open a file for append output other than:



    ofstream afile("filename",ios::app);

    ??
  12. Replies
    7
    Views
    1,505

    thank you, this is what i was missing as well....

    thank you,

    this is what i was missing as well.

    the error was telling me that string is undeclare.

    but after i included

    using namespace std;
  13. Replies
    7
    Views
    1,505

    Yes I am trying to return the whole array. At...

    Yes I am trying to return the whole array. At first when I had teh code above complie and run it return me an address (229...). I save close poject and reopen it and recompile and run and it return...
  14. Replies
    7
    Views
    1,505

    ok now this is wierd. I m using Dev C++ and...

    ok now this is wierd.

    I m using Dev C++
    and now the function retFN() works and return teh value instead of the address ..

    anyone help with how that happens?
  15. Replies
    7
    Views
    1,505

    returning arrays?

    Hi all, I am wondering if anyone can help me as I havent been programming in c++ for a long time and just went back. I did some basic c++ before but kind of lost the touch.

    The problem I am trying...
  16. Replies
    4
    Views
    1,162

    can you post your new codes on and the new build?

    can you post your new codes on and the new build?
  17. Replies
    4
    Views
    1,162

    else { cout>>"Get out of my numbers.\n"; } ...

    else {
    cout>>"Get out of my numbers.\n";
    }

    cout<<"Get out of my numbers.\n";

    cin>>variabe (accept input to variable)
    cout<<variable (display on screen)
Results 1 to 17 of 17