
- Home
- Activity Stream
Activity Stream
New Activity ()
Please reload this page to view the 200+ new activity items that have been created.
-
Older Activity
-
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 | 584 view(s)
-
November 28th, 2023, 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...
1 replies | 120 view(s)
-
Today, 12:06 AM
I'm trying to start a server in a window. I want to see the command's results, which is a webpage. But it doesn't show anything anywhere, even if I...
0 replies | 4 view(s)
-
Yesterday, 04:46 AM
It looks like for OSX long uses more binary bits than for an int. For Windows int is 32 bit and so is long. For 64 bit you need long long. For OSX...
1 replies | 120 view(s)
-
Yesterday, 03:30 AM
Sawyer Blake - Did you happen to notice the DATE that this thread was started?
2 replies | 608 view(s)
-
November 28th, 2023, 04:36 AM
The choice of the right programming language for cross-platform mobile app development depends on various factors such as project requirements,...
2 replies | 608 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 | 584 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 | 584 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 | 584 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 | 584 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 | 584 view(s)
|
Click Here to Expand Forum to Full Width
|