Comment by Ali Tavakol on What is "Process Killed" in C++?
It might be caused by the host not having enough RAM for g++ to work properly.
View ArticleComment by Ali Tavakol on How to open an URL in a QTableView
what about any memory leak on the new QLabel in the former approach?
View ArticleComment by Ali Tavakol on C access to first letter in struct
A side note: in this example, you have to use char* because text string is not copied into char[12] as you may expect.
View ArticleComment by Ali Tavakol on How to made QGraphicsView fullscreen?
Use QWindow instead of QDialog, and then doc.qt.io/qt-5/qwindow.html#showFullScreen
View ArticleComment by Ali Tavakol on Pass value from annotated method to @Around aspect
@tsamridh86 value here is not constant. edited.
View ArticleComment by Ali Tavakol on Why is iterating over the set and modifying element...
@super how does compiler know this? and throws error?
View ArticleComment by Ali Tavakol on Why is iterating over the set and modifying element...
about the empty set: I removed non-related code.
View ArticleAnswer by Ali Tavakol for C++ Making a function for reading in a .txt file...
what is exit (EXIT_FAILURE); for?
View ArticleAnswer by Ali Tavakol for how to read a table from oracle database in c++...
You have to add directory of Oracle C/C++ libraries to LD_LIBRARY_PATH environment variable. In my case, it is:export LD_LIBRARY_PATH=/usr/lib/oracle/12.2/client64/lib:$LD_LIBRARY_PATH
View ArticleAnswer by Ali Tavakol for C++ where can I find the implementaion of BOOST_LOG...
I recommend Sublime Text. It is worth the effort and time you put on to learning it. It is fast for navigation and search, and there are plugins like C++11 that direct you to function definitions and...
View ArticleAnswer by Ali Tavakol for Use QTimer outside QObject
Does this help?QTimer::singleShot(2000, [=]() { foo(); });
View ArticleAnswer by Ali Tavakol for Suppose I have a completely functioning program and...
Does this help?PROG:class C { void f();}#ifndef TESTvoid C::f() { // implementation}#endif // TESTTEST:#define TEST#include "main.cpp"// Your test code here can have instances to class CC c;c.f();But...
View ArticleAnswer by Ali Tavakol for removing a zero width character in c++?
Instead of sLabel.erase(remove(sLabel.begin(), sLabel.end(), ''),sLabel.end()); please try this:std::string from = "", to = "";size_t start_pos = 0;while ((start_pos = sLabel.find(from, start_pos)) !=...
View ArticleWhich one is the acceptable convention for undo / redo behavior?
Suppose this is a mathematical application that manipulates waveforms. User opens a waveform file, and edits it.Now user amplifies waveform using the application toolbox. Amplification may take a long...
View ArticleLink a C++/CLI DLL to a Qt C++ application
There is a dynamic library mylib.dll written in C++ and compiled with Visual Studio, with common language runtime (/clr) support, that exports a function:bool __declspec(dllexport) exported_func();And...
View ArticleAnswer by Ali Tavakol for Dummy value output by Pointer
There is a problem with int pixels[MAX_SIZE]; inside the readImage function. It is allocated on the stack, and will be released when call returns. You have to allocate on heap using the new operator.
View ArticleAnswer by Ali Tavakol for C++ linked list not displaying String type variables
With malloc, class constructor doesn't get called. Use new instead.
View ArticleAnswer by Ali Tavakol for Why the program crased even thoungh I got the...
Problem is InitList initializes a local copy of L, but not the L that is in your main function. Change it to InitList(LinkList **L) and call as InitList(&L);, and change your implementation...
View ArticleAnswer by Ali Tavakol for C custom datatypes mapped to C datatypes grouped...
You may assign a unique ID number to each data type, and have both sides of the message passing line agree on it. Apparently you cannot compare data types, i.e. if (data_type == MPI_INT), but you can...
View Article
More Pages to Explore .....