Search:
Type: Posts; User: 2kaud
Search:
Search took 0.06 seconds; generated 19 minute(s) ago.
-
Well either it's a really boring party or this thread isn't meeting it's objectives........
-
#include <iostream>
#include <iomanip>
bool checkPalindrome(unsigned original) {
unsigned reverseNum {};
for (auto tempOriginal {original}; tempOriginal > 0; tempOriginal /= 10)...
-
We've all made stupid mistakes at least once, twice...
-
Do you mean file permissions or file attributes? These are quite different.
-
April 28th, 2022, 03:15 AM
See https://docs.microsoft.com/en-us/visualstudio/releases/2022/release-notes-preview
-
April 26th, 2022, 04:07 AM
You can't change the buffer size to be less than the size of the console window. Note that there are two sizes - the size of the buffer and the size of the window. The window is a 'picture' of the...
-
April 19th, 2022, 03:32 AM
Have fig 1 and fig 2 been transposed?
Interesting article.
I hadn't come across Double Metaphone before. In the 1980's/90's I used soundex extensively when querying data files. The top...
-
April 18th, 2022, 03:46 AM
You can't cleanly terminate a thread without assistance from the thread. You can terminate a thread using TerminateThread() - but that has issues. The usual way is to use event which is set by the...
-
April 17th, 2022, 04:18 AM
decltype() does only accept one param. In your example
decltype((x == nullptr), get_object(*x))
decltype() has only one param get_object(*x). , is the comma operator so that the...
-
April 13th, 2022, 10:56 AM
As vecOfStrs is std::vector<std::string>, the number of chars used for each entry is not the same. Also the data is stored in dynamic memory so sizeof() doesn't give the number of bytes stored for an...
-
April 13th, 2022, 04:34 AM
What are you trying to accomplish?? Based upon the provided code:
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include <exception>
-
April 11th, 2022, 04:14 AM
When posting code, please use code tags so that the code is readable. Go Advanced, select the formatted code and click #
Friend is a class that stores the data for a friend. It is not a collection...
-
April 10th, 2022, 04:30 AM
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
bool getFileContent(const std::string& infileName, const std::string& outfileName, std::vector<std::string>&...
-
April 8th, 2022, 03:15 AM
See my post above re PM jamespayne. You can't directly publish an article.
-
April 7th, 2022, 03:22 AM
@srilatha0515 If you are interested in submitting articles, I suggest you PM jamespayne
-
April 5th, 2022, 05:35 AM
This is default value initialisation. If there's no value between the {} the variable is initialised to the default value for the type of the variable - which is 0 for long. It's good practice to...
-
April 5th, 2022, 03:31 AM
What is out_buffer?
I'm not sure what you're trying to achieve. Perhaps you could be more explicit in the requirements? However consider:
#include <iostream>
class Message {
public:
-
March 28th, 2022, 10:09 AM
... and also a mix of C++ and C !
-
March 27th, 2022, 04:30 AM
-
March 26th, 2022, 11:36 AM
Use the debugger to trace through the code and watch the variables. When the debugger shows behaviour different from that expected from the design then you have found an issue.
-
March 25th, 2022, 11:26 AM
clip is a handle - not a pointer to data. Once you have the handle then you need to obtain a memory pointer from it. For this use GlobalLock(clip). The return value is a pointer to the data. If not...
-
February 20th, 2022, 08:40 AM
Well IMO it's far better than something like:
for (auto itr {all_triggers.begin()}; itr != all_triggers,end(); itr = std::next(itr))
(*itr)->process_state_requests (bufs, nframes - 1);
...
-
February 20th, 2022, 05:20 AM
all_triggers is a type that supports .begin(), increment (++) and .end() . all_triggers is iterated from .begin() to .end() by incrementing an internal iterator. The iterator is de-referenced and...
-
February 16th, 2022, 04:43 AM
gets() has been removed from the standard. use gets_s() instead. As this is C++, why not use std::string?
You have a 'typo':
strcpy(second, word3);
strcpy(second, word2);
-
February 15th, 2022, 08:44 AM
Well C++ allows null pointer (nullptr - 0). If a function returns a pointer then checking for nullptr is valid - and probably needed. The question probably isn't about checking a pointer for nullptr,...
|
Click Here to Expand Forum to Full Width
|