Posts by jcsantos • 123 points
12 posts
-
0
votes1
answer541
viewsA: SQL Server and PHP error: "The Wait Operation timed out."
I managed to solve the problem! The error is in Driver ODBC 17, apparently the same was not able to connect with MSSQL database. The solution was to uninstall it and install "Microsoft ODBC Driver…
-
1
votes1
answer541
viewsQ: SQL Server and PHP error: "The Wait Operation timed out."
I’m trying to connect to a SQL Server database using PHP, but the operation is timed out. Using SSMS (Management Studio) with the same information as the PHP string, it is possible to connect…
-
0
votes1
answer74
viewsA: Doublyllist C++ // Insert value at index position (with iterator)
It was missing some connections between the list and the temp. void DLList<Type>::insert(DLLIter<Type>& index, const Type & v) { if (index.m_curr == nullptr) return; Node* temp =…
-
0
votes1
answer74
viewsQ: Doublyllist C++ // Insert value at index position (with iterator)
My insert function is correct, but I’m having memory Leak because when I debug, temp->prev->prev was pointing to nullptr instead of pointing to the rest of the list, when it has 3+ elements.…
-
3
votes1
answer102
viewsQ: Binary Search Tree - Printinorder();
My BST (templated class) has function PrintInOrder(), that does not receive parameters: void BST<Type>::printInOrder() const{} I’ve been looking on the Internet, and I found some InOrder(),…
-
0
votes1
answer77
viewsA: Convert 'const Std::string' to 'Std::string &'
I just found the mistake... really lack of attention. My Node constructor is prepared to receive only 'Type& v', while I am trying to pass 'const Type& v', which logically would not work.…
-
0
votes1
answer77
viewsQ: Convert 'const Std::string' to 'Std::string &'
I have a mistake and would like tips to fix it I have my Node struct inside the Dllist class: struct Node { Type m_data; Node *m_next, *m_prev; Node(Type& v, Node* _prev) : m_data(v),…
-
0
votes3
answers5460
viewsA: How to hide the file URL? (do not show the whole file up)
If it is in the Browser URL, one of the options you can leave configured on your site is the User Friendly URL, and it is used. htaccess (for apache) and web.config (for IIS) Example of . htaccess…
-
2
votes1
answer114
viewsQ: Count the height and width of an "image" (char* using n) - C++
Good evening! In one of the parameters of my builder, I am passing the following char * +---+\n|A |\n| H |\n| A|\n+---+ Then the constructor calls Settext(), passing that char*, and inside…
-
5
votes1
answer444
viewsQ: Class complexity P and NP
Good evening, I just started to see FSM (finite state machine) and I read about complexity of algorithms and about P and NP, but I have 2 questions that I don’t understand. I have this picture of…
state-machineasked jcsantos 123 -
0
votes1
answer373
viewsQ: Remove value from an array
My array is mounted as follows: obstacles = [[x, y], [x, y], ...] I am wanting to remove a position [x, y from the array] But the function obstacles.remove() is turning off the server when run, if I…
-
0
votes0
answers40
viewsQ: "change-making" algorithm - Smallest amount of currencies possible
Given the Change-Making algorithm: change(C1, C2, ...., Cr: valores de denominações de moedas, onde C1 > C2 > ... > Cr; n: inteiro positivo) for i := 1 para r di := 0 {di conta a…