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...
Type: Posts; User: behzad_shabani
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...
hi,
in code below cin.get() doesn't work correctly (maybe I'm mistaken)
#include <iostream>
#include <string>
using namespace std;
void getPassword(void);
oh yeah!
thanks, it works now ;)
thank you all
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
This is part of a class method.
BookName and Author are the attribute of the class!
this is the class:
class Book
{
public:
Book();
hi,
I have this code:
...
string BookName, Author;
cout << "> Enter book title: ";
getline(cin, BookName); // this does not work
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...
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?
I get it ;)
so I think I would work harder and learning new thing.
I have a little knowledge of C++,
I have never worked with vectors and I don't know what it is!
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.
thanks ;)
I forgot to set it under release mode :D
I'm not sure :(
would you tell me how?
so what I should do now?
It still does not work! :(
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...
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
...
I couldn't find any thing, it returns no result
---------------------------
I found it
I wrote this
but i can't handle the entered strings.
#define LINE 60
#define COL 100
class Editor
{
I know :D
It was a simple mistake, I understand it :D
sorry about that
would you tell me more about buffer and how it works, or give me an article.
I couldn't find anything :(
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. :(
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...
seems that you no longer support me through this.
If you don't wanna help any more, please close this thread
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...
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...