(Solved) How to extract numeric values from string?

You could use regular expression to do this. Although this pattern is very naively implemented, it is a start. I’ve used Tuple instead of Vector, but you can easily change that yourself. static readonly Regex VectorRegex = new Regex(@”a:(?<A>[0-9]+\.[0-9]+);b:(?<B>[0-9]+\.[0-9]+);c:(?<C>[0-9]+\.[0-9]+)”, RegexOptions.Compiled); static Tuple<double, double, double> ParseVector(string input) { var m = VectorRegex.Match(input); if (m.Success) { double … Read more

(Solved) Need to combine these two javascripts

You can’t create two variables with the same name, or two functions with the same name – not in the same scope, anyway. But you can combine the bodies of your two loaded() functions into a single function. (Or you can rename them loaded1 and loaded2 and call them individually, but I wouldn’t do that.) … Read more

(Solved) Why can templates only be implemented in the header file?

Caveat: It is not necessary to put the implementation in the header file, see the alternative solution at the end of this answer. Anyway, the reason your code is failing is that, when instantiating a template, the compiler creates a new class with the given template argument. For example: template<typename T> struct Foo { T … Read more