
- Home
- Activity Stream
Activity Stream
New Activity ()
Please reload this page to view the 200+ new activity items that have been created.
-
Older Activity
-
Yesterday, 10:46 PM
Hi, ALL,
I am doing a cross-platform programming using C++ cross-platform library.
At one point of time my program needs to read the value from...
0 replies | 21 view(s)
-
Yesterday, 04:36 AM
The choice of the right programming language for cross-platform mobile app development depends on various factors such as project requirements,...
1 replies | 513 view(s)
-
November 27th, 2023, 11:49 AM
If you have to 'roll your own' merge, then using insert_after as suggested by salem_c above consider:
#include <forward_list>
#include...
5 replies | 378 view(s)
-
November 27th, 2023, 11:19 AM
OK. Then consider:
int main() {
intLst l1 { 1, 5, 6 }, l2 { 4 }, l3 { 2,3,7,8 };
l1.merge(l2);
l1.merge(l3);
std::ranges::copy(l1,...
5 replies | 378 view(s)
-
November 27th, 2023, 08:29 AM
Sorry, I should have said that this is an exercise and using `std::forward_list` is mandatory.
@salem
Perhaps this way:
// ...
intLst res;...
5 replies | 378 view(s)
-
November 27th, 2023, 05:24 AM
Why use forward_list and not a list? Using a list makes life much easier by allowing use of std::merge. Consider:
#include <iostream>
#include...
5 replies | 378 view(s)
-
November 27th, 2023, 12:30 AM
Why not use insert_after, and save a lot of reversing.
https://en.cppreference.com/w/cpp/container/forward_list/insert_after
5 replies | 378 view(s)
-
November 26th, 2023, 03:51 PM
I wrote this naïve code to make a sorted lists out of three sorted lists:
import std.compat;
using intLst = std::forward_list<int>;
intLst...
5 replies | 378 view(s)
|
Click Here to Expand Forum to Full Width
|