python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Sorting a 2-d vector but getting an unexpected output
I am trying to sort a 2 D vector and I am getting the desired output for input 'n' less than 15 but above that it is not arranged in the order that I want. If all the first column values are 0 then th...
Aryaman
Votes: 0
Answers: 1
Prevent a string with from being cast to an int with try/catch
I am using try/catch exception to sort a vector of strings and I want to prevent it from converting a string like "157cm" from being converted to an int. It removes the "cm" part.
...
blindfox916
Votes: 0
Answers: 0
Skew Lines Midpoint from 4 points?
I'm trying to understand the basics underlying a piece of source code I was given to use. It works, this is proven. I'm just trying to wrap my head around the why of it well enough that I could do i...
William McMillan
Votes: 0
Answers: 1
c++ String from file to vector - more elegant way
I write a code in which I want to pass several strings from text file to string vector. Currently I do this that way:
using namespace std;
int main()
{
string list_name="LIST";
ifstream REF;...
Przemysław
Votes: 0
Answers: 3