i am making a c++ application, and my gridsorter class sort a grid data using…
Jump to turn (8)
- 1i am making a c++ application, and my gridsorter class sort a grid data using st
- 2I changed it but the problem still persisted, so I look up in another place wher
- 3FrameMain.cpp|96|error: conversion from ‘wxString’ to non-scalar type ‘std::stri
- 4it is giving me error in rowValues[c] = wideValue; line now: FrameMain.cpp|98|er
- 5Ok I followed up the code and it didn't changed it anything, then I found out th
- 6no I want to apply wxT to rowData[row][c] before assigning it, so I want to do i
- 7it is still giving me the same error: chartype.h:203:44: error: ‘LrowData’ was n
- 8Ok I made it to work, but now I need to make a function for these two lines so t
- User
i am making a c++ application, and my gridsorter class sort a grid data using std::string but it doesn’t work with unicode characters such as japanese alphabet, how can I fix it?
void GridSorter::SortData(int col, std::vector<std::vectorstd::string>& rowData) { std::sort(rowData.begin(), rowData.end(), [col, this](const std::vectorstd::string& a, const std::vectorstd::string& b) { return GetSortDirection(col) ? a[col] < b[col] : a[col] > b[col]; }); }
- Assistant