« first day (764 days earlier)      last day (1664 days later) » 

10:46
0
Q: Unique value of string

ElegiacHello i'm working on some replacing code using TrimStart||RemoveFromStart; public string RemoveFromStart(string s, IEnumerable<string> strings) { foreach (var x in strings.Where(s.StartsWith)) { return s.Remove(0, x.Length); } return s; } and scenario would be the...

1 message moved from Lounge<C++>
1 message moved from Lounge<C++>
 
3 hours later…
14:18
1 message moved from Lounge<C++>
user1357851
1 message moved from Lounge<C++>
15:26
Which ones work, and what's the difference:

A: string * f (string * in) { string * out = in; in = new string(); return out; }

B: string * g (string * in) { string * out = new string(in); in = ""; return out; }

C: string * k (string in) { return &in.c_str(); }

D: string * l (string in) { return &in[0]; }

E: string * h (string &in) { return &in; }
1 message moved from Lounge<C++>
 
4 hours later…
19:26
1 message moved from PHP
 
2 hours later…
1 message moved from Lounge<C++>

« first day (764 days earlier)      last day (1664 days later) »