Search:

Type: Posts; User: nima_ranjbar

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    9,930

    Yes, is really strange. But the most confusing...

    Yes, is really strange.
    But the most confusing partis that I can initialize the edit box properly in another message such as WM_COMMAND.
    I use VC++ and this is not the first headache I have with...
  2. Replies
    4
    Views
    9,930

    Using the SetDlgItemText function

    This is very basic but not for a beginner.

    While developing a win32 application:
    There is an edit box on a dialog box. Want the edit box to show a text when
    the dialog box is being created.
    ...
  3. Replies
    0
    Views
    1,715

    Adding resources

    Hello,
    How can I load resources (.rc files), which I create using notpad, into my VC++ win32 application project. VC++ does not accept .rc file format, in its import resources menu. And when I...
  4. Replies
    2
    Views
    1,028

    How to KeyFlush?

    When using functions such as gets to input string, we normally use fflush(stdin) to Clear input buffer for next input.
    But when using cin.getline, how to KeyFlush?

    TIA
    Nima
  5. Replies
    19
    Views
    2,032

    >>It is poor practice to mix C and C++ I/O. Don't...

    >>It is poor practice to mix C and C++ I/O. Don't do it, you don't >>get that kind of problem

    Again, that is completely true. I am not trying to combine C with C++, am just experiencing different...
  6. Replies
    19
    Views
    2,032

    >>C and C++ I/O systems buffer differently, (in...

    >>C and C++ I/O systems buffer differently, (in some cases not at all)

    True. As mentiond in my previous post:

    char *myString;
    myString=new char[20];
    cout<<"Name:";
    ...
  7. Replies
    19
    Views
    2,032

    I found it's much easier to use C++ specific...

    I found it's much easier to use C++ specific functions, classes,etc.
    Especially that it is nor secure to mix C with C++, for example:

    #include <iostream.h>
    int main()
    {
    // char *myString;...
  8. Replies
    11
    Views
    1,791

    The difference between C and C++ is that C++ is...

    The difference between C and C++ is that C++ is the better C.
  9. Replies
    19
    Views
    2,032

    When writing C++ code, use cin.getdata instead of...

    When writing C++ code, use cin.getdata instead of gets. And use cout instead of printf. Or perhaps there r some advantages in using C function?
  10. Replies
    2
    Views
    995

    finding a job!

    This is the question, I can’t manage to find an answer.
    For a person, who knows the basics of programming in C++, what is the fastest way for him to find a job!
    There are plenty of opportunities...
  11. Replies
    6
    Views
    1,221

    As mentioned, here, no one will do ur...

    As mentioned, here, no one will do ur homework;but this will show you the line, and to be honest, it is very basic:


    #include <iostream.h>

    class Cbonus
    {
    double anual, bonus;
    int year;...
  12. Replies
    1
    Views
    1,425

    Array of character strings

    Hi,
    I am a complete newbie, and have got a problem in using an array of character pointers.
    When I run this piece of code:

    char *record[3];
    cout<<"Enter your name:";
    cin.getline(*record,10);...
Results 1 to 12 of 12