Skip to main content
Share Your Experience: Take the 2024 Developer Survey

New answers tagged

1 vote

conv2 Template Function Implementation for Image in C++

I see several problems with the overall design. I'll refer to issues that @CrisLuengo didn't cover. Interface: I am not entirely sure what exactly the aim of this ...
ALX23z's user avatar
  • 2,338
6 votes
Accepted

conv2 Template Function Implementation for Image in C++

Algorithm I like the algorithm you use. Usually people will implement convolution by doing all computations for one output pixel in the inner two loops. I honestly don't know which is more efficient, ...
Cris Luengo's user avatar
  • 5,688
4 votes

An Implementation of UNIX wc shell utility

...
user673679's user avatar
  • 11.8k
6 votes
Accepted

An Implementation of UNIX wc shell utility

The code looks very nice; it's consistent, nicely organized, and global variables have been avoided. There are some minor things that could be improved though: Naming things Avoid unnecessary ...
G. Sliepen's user avatar
  • 57.7k
3 votes

naive C++ stack template class

Thanks to @indi. I have been reading @indi's answer and modifying my implementation for almost two hours. I really can't imagine how long it takes to write this detailed answer. I modify the code with ...
John's user avatar
  • 405
9 votes
Accepted

naive C++ stack template class

Design review So, basically, you would like to remake std::stack. That’s cool, it’s not a bad learning project at all. It is actually possible to make a much better ...
indi's user avatar
  • 11.4k
4 votes

is_number Function Implementation in C++

isdigit() expects an int that can be represented as an unsigned char or ...
Harith's user avatar
  • 7,004
7 votes
Accepted

is_number Function Implementation in C++

You can make it constexpr You can make both functions constexpr, ensuring you can do compile-time checking of strings for valid ...
G. Sliepen's user avatar
  • 57.7k

Top 50 recent answers are included