Search:

Type: Posts; User: behzad_shabani

Page 1 of 5 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    1,491

    this is getPassword function, and problem is...

    this is getPassword function, and problem is exactly because of it.
    How should I solve it?


    string getPassword()
    {
    string result;

    // Set the console mode to no-echo, not-line-buffered...
  2. Replies
    3
    Views
    1,491

    cin.get problem

    hi,

    in code below cin.get() doesn't work correctly (maybe I'm mistaken)


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

    void getPassword(void);
  3. Replies
    10
    Views
    1,478

    oh yeah! thanks, it works now ;) thank you all

    oh yeah!
    thanks, it works now ;)
    thank you all
  4. Replies
    10
    Views
    1,478

    I didn't understand, I don't think it's related...

    I didn't understand, I don't think it's related to:


    cin >> pages;

    because the first getline didn't work even when I remove cin >> pages; line
  5. Replies
    10
    Views
    1,478

    This is part of a class method. BookName and...

    This is part of a class method.
    BookName and Author are the attribute of the class!

    this is the class:


    class Book
    {
    public:
    Book();
  6. Replies
    10
    Views
    1,478

    std::getline and cin

    hi,
    I have this code:


    ...

    string BookName, Author;

    cout << "> Enter book title: ";
    getline(cin, BookName); // this does not work
  7. Replies
    63
    Views
    8,913

    thanks ;) (however I'm losing std::getline...

    thanks ;) (however I'm losing std::getline instead)
    another question, (I know I am pert :D) I'm using pdcurses to handle the cursor, but how could I move cursor to previous line?
    when i press key...
  8. Replies
    63
    Views
    8,913

    thank you, I don't need C based text editor, I...

    thank you, I don't need C based text editor, I want to write a C++ class based text editor.

    I have a question. how could I get a line into a std::string variable?
  9. Replies
    63
    Views
    8,913

    I get it ;) so I think I would work harder and...

    I get it ;)
    so I think I would work harder and learning new thing.
  10. Replies
    63
    Views
    8,913

    I have a little knowledge of C++, I have never...

    I have a little knowledge of C++,
    I have never worked with vectors and I don't know what it is!
  11. Replies
    63
    Views
    8,913

    Is it good idea to use link list and stack or...

    Is it good idea to use link list and stack or somewhat to reading lines?
    I see it in a C console based text editor.
  12. Replies
    6
    Views
    2,230

    thanks ;) I forgot to set it under release mode...

    thanks ;)
    I forgot to set it under release mode :D
  13. Replies
    6
    Views
    2,230

    I'm not sure :( would you tell me how?

    I'm not sure :(
    would you tell me how?
  14. Replies
    6
    Views
    2,230

    so what I should do now? It still does not work!...

    so what I should do now?
    It still does not work! :(
  15. Replies
    6
    Views
    2,230

    add new library to VC 9.0

    hi,

    I have downloaded pdcurses the package contains "curses.h", "panel.h", "pdcurses.dll" and "pdcurses.lib"

    how could I add this library to my project?

    ----------------------------
    I have...
  16. Replies
    63
    Views
    8,913

    but it doesn't help! I need something that...

    but it doesn't help!

    I need something that return the character that user is entered right the moment so I check it and if it was '\n' string will go to another line
    ...
  17. Replies
    63
    Views
    8,913

    I couldn't find any thing, it returns no result...

    I couldn't find any thing, it returns no result
    ---------------------------
    I found it
  18. Replies
    63
    Views
    8,913

    I wrote this but i can't handle the entered...

    I wrote this
    but i can't handle the entered strings.



    #define LINE 60
    #define COL 100

    class Editor
    {
  19. Replies
    63
    Views
    8,913

    I know :D It was a simple mistake, I understand...

    I know :D
    It was a simple mistake, I understand it :D
    sorry about that
  20. Replies
    63
    Views
    8,913

    would you tell me more about buffer and how it...

    would you tell me more about buffer and how it works, or give me an article.
    I couldn't find anything :(
  21. Replies
    63
    Views
    8,913

    I have one question from the code above: why...

    I have one question from the code above:
    why buffer should be 2D array?
    I have little knowledge about buffer. I couldn't find a good resource for this. :(
  22. Replies
    63
    Views
    8,913

    I was :D, sorry about that :( Once I wrote...

    I was :D, sorry about that :(



    Once I wrote a simple editor by using MFC, but it was so simple and I think my teacher wouldn't accept that, so I decide to write a console editor.
    I know that I...
  23. Replies
    63
    Views
    8,913

    seems that you no longer support me through this....

    seems that you no longer support me through this.
    If you don't wanna help any more, please close this thread
  24. Replies
    63
    Views
    8,913

    I have one question from catch22.net tutorial...

    I have one question from catch22.net tutorial

    when I download its codes and compile it, it run successfully; but when I wrote the whole code by my own visual studio give C2440: '=' : cannot...
  25. Replies
    63
    Views
    8,913

    yes, actually this is my C++ project in...

    yes, actually this is my C++ project in university.

    In university we are learning Deitel C++ book. this text editor should written by C++ classes, strings and File.
    we never practice graphical...
Results 1 to 25 of 104
Page 1 of 5 1 2 3 4