« first day (3431 days earlier)      last day (576 days later) » 

12:05 AM
REFRESH! There are 8053 unanswered questions (89.4623 answered)
 
 
6 hours later…
6:10 AM
0
Q: Finding a Palindrome with unordered multiset

Benjamin ChenProblem: https://codeforces.com/problemset/problem/1324/B My process: Take an input, insert the numbers into an unordered_multiset. Use eqaul_range to find the distance between the first and last occurence of each number. If the distance between the first and last occurence is greater or equal to...

 
6:48 AM
possible answer invalidation by greybeard on question by Benjamin Chen: codereview.stackexchange.com/posts/279961/revisions
possible answer invalidation by greybeard on question by Benjamin Chen: codereview.stackexchange.com/posts/279961/revisions
 
7:27 AM
0
Q: Using bootstrap 5 in Angular app

MatthiasI am planning to use bootstrap as "component framework" in an angular based app. I also found angular-ng. Now I am wondering if it is necessary to base the app on angular-ng or if i can "just use bootstrap". What would be the pro/cons of either approach? Disclaimer: I consider this to be a code r...

 
 
3 hours later…
10:01 AM
0
Q: What is the best way to create 2 classes which will be used lists of objects in oop

Moshei created 2 classes of 'City' and 'Street' , each class using as list of object. i need to create following fileds each class: City: name, code Street: name,code,code city. I need create functions for add City to list and print , for street as well but in print i need to create relationship with ...

 
 
2 hours later…
11:44 AM
0
Q: How to correctly define a method with a smart pointers?

getsugaI have a Node class. For example, I want to define GetSucessor() in my .cpp file. I did it like that(check bellow). Is there a better and shorter way to define GetSucessor()? Does a GetSucessor() should return a constant pointer? How to correctly pass a smart pointer as an argument to a function...

 
 
2 hours later…
1:53 PM
0
Q: the multi-threading of adding all the values from a random generated vector

Keanu.cI currently am trying to create a vector and fill it with random values( for this case the random values will be 1) once the vector is created i want to calculate the total sum which should be 100000000, I am using ones to test that the addition was done correctly. My goal is to make this code mo...

 
@Duga Moderator need to look at this question closely.
@SᴀᴍOnᴇᴌᴀ @Mast ^^^
 
@CaptainObvious I've closed the question. Despite the comments no-one else did. (cc. @pacmaninbw)
@pacmaninbw Closed
 
2:12 PM
@Peilonrayz Sorry.
I'm in a lot of pain I may have sprained my knee
 
No problem, if you disagree with the hammer just say.
 
@Peilonrayz Usually I accompany that comment with a down vote and VTC.
 
2:34 PM
I presumed so. Seems the situation is fine :)
@pacmaninbw That's unfortunate. I hope it gets better.
 
Thanks
 
3:35 PM
0
Q: How to make the text from file to lowercase

Di DianI want the output all word turn into lowercase. How should I do that? I try to to add std::tolower into the loop, any idea how to do that? File JOHN LIM AUSTRALIA 18872891 KIM TEOH AUSTRALIA 99188402 JIM DIS AUSTRALIA 1993881 GOH CHEN KOK AUSTRALIA 2883740 AGD JDN DOS AUSTRALIA 8189398 WIN NIE TE...

 
4:00 PM
Monking
 
0
Q: C# .Net Core: Async Await Pattern Code

Mugil KarthikeyanI'm working on an application that exports and imports work items from Azure DevOps. To import work items into Azure DevOps, I have written the following code. Would you be able to review and make suggestions? I'm unsure whether I've used the Async-Await pattern correctly. namespace Export_Import...

 
 
1 hour later…
5:18 PM
0
Q: Delphi - did I understand callbacks correctly?

MyICQI am trying to learn callbacks in Delphi (7). Could not find a complete simple tutorial, so I puzzled together a few bits here and there. This is my first attempt, of course trivial. My form contains a button and a label. For the test, I make a loop in the onClick code, and every time do a callba...

 
 
2 hours later…
7:26 PM
0
Q: Python decibel meter-accurate?

ijknmimport os, errno import pyaudio from scipy.signal import lfilter import numpy from tkinter import * from tkinter.ttk import * from tk_tools import * from tkinter import messagebox root=Tk() root.title('Decibel Meter') root.grid() gaugedb = RotaryScale(root, max_value=120.0, unit=' dBA') gaugedb.g...

 
@Enrique Solutions you write, with test code, could be posted on Code review for a critique. Be sure to identify the range of acceptable values. — chux - Reinstate Monica 38 secs ago
 
 
1 hour later…
8:43 PM
0
Q: OOP Tic Tac Toe Console C++ Program

Mohamed MagdyBoard.h #pragma once #include <vector> #include <iostream> namespace Logs { inline void announce_winner(char winner) { std::cout << "Game Over! " << winner << " wins the game\n"; } inline void draw() { std::cout << "Game Over! .. Draw\n"; } inline void alrea...

 
9:13 PM
You should prefer std::vector or std::unique_ptr. In the last companies I've worked, naked new and delete are considered bad practice and won't pass code reviews. — jabaa 55 secs ago
 
 
3 hours later…
11:44 PM
I suggest you try code review. Since your problems are many. — Strom 56 secs ago
 

« first day (3431 days earlier)      last day (576 days later) »