CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: general07z

Search: Search took 0.02 seconds.

  1. PHP This code is echo error message even if its correct!

    The problem with this code is either the sending SMS has been sent successfully or NOT successfully will echo for me the same message.





    <?php
    $baseurl = "XXXX";
    $username =...
  2. Replies
    35
    Views
    26,790

    Re: How to generate an auto ID (or Auto Number)

    hey, it is a pointer



    // define class for queue
    class queue
    {
    public:
    queue (void);
    int RegisterPatien (patient p);
  3. Replies
    35
    Views
    26,790

    Re: How to generate an auto ID (or Auto Number)

    Hey,

    I have added





    int main(){
    int Auto_ID =0;
  4. Replies
    35
    Views
    26,790

    Re: How to generate an auto ID (or Auto Number)

    Hey,

    How can i do that?
    Is your idea, the number will be auto increase when i added another patient?
    If yes, Please where do i have to change in my code.



    I just need the ID to be...
  5. Replies
    35
    Views
    26,790

    Re: How to generate an auto ID (or Auto Number)

    Yes that is true,
    So i hope to change that variable to make it for generating an ID. i don't want any more "Phone number" Generating the Auto ID is more important than Phone number.

    So now the...
  6. Replies
    35
    Views
    26,790

    Re: How to generate an auto ID (or Auto Number)

    hey,


    The ID in my code is defined as a "Phone Number", as showing here:


    cout << "Phone Number : " << List[i].ID<<endl<<endl;

    You see here
    List[i].ID
  7. Replies
    35
    Views
    26,790

    Re: How to generate an auto ID (or Auto Number)

    The problem if i want to use a database, i have to change a lot of things and almost start over with my code.
    But if there is a way to use the database to save only the Auto Numbers. That is will be...
  8. Replies
    35
    Views
    26,790

    Re: How to generate an auto ID (or Auto Number)

    No, im not using any database. just black screen

    Thanks for your reply.
  9. Replies
    35
    Views
    26,790

    Re: How to generate an auto ID (or Auto Number)

    hey,

    Thanks for your reply.

    Now the problem is not of generating an ID, the problem is how can i specific the ID that has been generated for a patient, i mean how can i appear the number more...
  10. Replies
    35
    Views
    26,790

    Re: How to generate an auto ID (or Auto Number)

    Alright, i have added [code][/ code] tags around my code.

    hope my code is readable now.
  11. Replies
    35
    Views
    26,790

    Re: How to generate an auto ID (or Auto Number)

    Thanks, but i guess there are a lot of code tags around my code.
    Not for each line, but almost for each line. enough to be understood.

    Thanks again.
  12. Replies
    35
    Views
    26,790

    Auto-increment number

    Hello,

    This code is for (hospital management system).

    This code allow you to add patients.

    There are two types of patients. which is:
    1. Normal patient.
    2. Critically ill patient.
  13. Re: fatal error C1083: Cannot open include file: 'iostream.h': No such file or direct

    I hope you can help me with this one too



    C++:



    fstream f;
    f.open("patient",ios::in|ios::out|ios::ate|ios::app|ios::binary);
  14. Re: fatal error C1083: Cannot open include file: 'iostream.h': No such file or direct

    Thanks a lot!!

    i also used
    cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl;

    it works as well

    THank you so much!
  15. Re: fatal error C1083: Cannot open include file: 'iostream.h': No such file or direct

    I knew it, it is an old function.

    But i don't really know which function i have to replace it.

    Please can you help me what can i do to fix 'Clear screen' Function?
  16. Re: fatal error C1083: Cannot open include file: 'iostream.h': No such file or direct

    So how can i make this work in VS versions?

    i tired to write <iostream> (with no ".h").
    but it showing errors

    This is the errors

    1>c:\users\genera07z\documents\visual studio...
  17. fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory

    Hello,

    I don't know why it showing me always this error
    "fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory"

    when i try to Dedug thos code, it showing me this...
Results 1 to 17 of 17





Click Here to Expand Forum to Full Width

Featured