а можно на моем примере правки сделать?
#include <iostream>
#include <cstdlib>
#include <ctime>
#include <clocale>
#include <string>
using namespace std;
int main()
{
setlocale(LC_CTYPE, "rus");
string str1 = "1235";
string str2 = "9321";
size_t countOfCommonSymbols = 0;
for(size_t i = 0; i < 4; i++){
if(str1.find(str2[i]) != string::npos){
countOfCommonSymbols++;
}
}
cout << countOfCommonSymbols << endl;
return 0;
}
я пока с std не работаю
да и хз чего эти std дают
Да, все верно. Но при использовании HTTP передачи данных пароль идет до сервера в незашифрованном виде. Этот момент в этой цепочке - самое узкое место. Есть костыли по типу SALT, но проблему решает только HTTPS.
class ListController : public QObject {
Q_OBJECT
public slots:
void onListDoubleClicked(const QModelIndex& index)
{
if(!index.isValid())
return;
if(QListWidget* listWgt = dynamic_cast<QListWidget*>(sender()))
{
if(QListWidgetItem* item = listWgt->takeItem(index.row()))
{
delete item;
}
}
}
};