5,331 Posted Topics
Re: Sorry. I'm not going to do your homework for you. That said, for #2 you can get the number of elements in the queue with the `size()` method. IE: `cout << "Total customer in waiting list: " << dec << qnum.size() << endl;` That's as far as I'm going to … | |
Re: According the the php documentation, there is no function mysqli_fetch_row. There is mysqli_stmt_fetch. You need to review the documentation more closely. Look here: http://php.net/manual/en/mysqli-stmt.fetch.php | |
Re: It depends upon the operating system. There are a couple of problems here, besides the OS issue, what have you tried so far? And is this a school exercise, or is it work-related? So, show your work. | |
Re: You don't say if you are using a video or text console library or if the output is just ascii text in a terminal / console. Also, I assume this is C or C++. So, please show your code, and then we can help you better. Yes, you can (and … | |
Re: Put your entire HTML section, along with the PHP, properly formatted into a code block. This is unreadable without a lot of effort, and you aren't paying me enough to take the time! | |
Re: Lovely! MIPS assembler. I would suggest writing it in C and then have the code compiled into assembler so you can see what a reasonable assembler encoding would be. FYI, I haven't messed with MIPS code for probably more years than you have been alive, so I don't remember much! … | |
Re: This sounds a lot like a means to pwn an application. Please take your attempts to subvert application security elsewhere! | |
Re: So far, so good. Try some more web searching, especially studying the ANSI terminal control sequences, which provide just what you need. FWIW, I don't give obvious answers to questions you can deal with yourself with a very little effort! | |
Re: What you are saying makes zero sense. What exactly is your problem? You have set a boolean (true/false) variable to false. You have set an integer variable to 90. | |
Re: You haven't declared/implemented your functions that handle the computations and display output. Where is the functions.h header and functions.c code? You will also have to `#include "functions.h"` in the ela010task2.c file where main() should be. In addition, `main()` should be `int main(void)`. There are other likely problems with your current … | |
Re: As @cereal said, the old MySQL API has been deprecated. DO NOT use it! Use the MySQLi API instead. You can find details about that on the php.net web site. | |
Re: Yes, what nullptr said. The << operator is the output operator, but cin is an input stream so it won't have an operator<<(). | |
Re: Do you have ANY idea what your are doing? Are you trying to use std::deque for your code? Are you trying to "roll your own" version? See this: http://www.cplusplus.com/reference/deque/deque/ | |
Re: What operating system are you running? Windows, or Linux? | |
Re: If you run "php --help" you will see that one of the options is to run PHP directly as a web server (no LAMP stack required), which is the "-S <addr>:<port>" option. IE, you can do this directly in PHP by starting it with the correct address and port information. … | |
Re: 1. Always get your kids their own computers - let them figure out how to fix it when they are pwnd. 2. NEVER let your kids use your computer. GoTo #1... | |
Re: Certainly! This is not uncommon. However, it would be preferable in your example to use a non-pointer-to-integer. Why? Because you don't have control over that pointer. The code that set it may delete it, then where are you? In SEGFAULT land! As a software developer, you need to think about … | |
Re: Please post your code using the </>Code option in the editor. It is basically unreadable as it is, unless you really want to enter in the "Obfuscated C Contest"... :-) | |
Re: Can't fix the title, but there are a number of issues in your code, and I expect you could find them after a nice drink and good night's sleep... :-) Anyway look at your array indices in cat(). Also, instead of malloc'ing everything and then copying the data, try that … | |
Re: Assuming that the boot/system drive is not on the RAID, then it should not be a problem. That said, you may want to disconnect the RAID before you do the update, "just in case". Unlike Linux systems, you NEVER know exactly what Windows will do in these situations. | |
Re: The srand() function sets the random number generator "seed", which is used to generate random numbers with the rand() or rand_r(). The latter one uses the supplied seed value and is a weak generator. It is considered obsolete today. If you want a more "space age" random number generator, then … | |
Re: There are a number of errors in this code. Nothing major, but a lot of things for you to think about... #include <iostream> using namespace std; // A generic smart pointer class template <class T> class SmartPtr { T *ptr; // Actual pointer public: // Constructor SmartPtr(T* p = NULL) … | |
Re: This may help: http://www.linuxjournal.com/article/7268 As to why the network manager failed after deleting the VLAN, I can't say, but you may want to check in /etc/sysconfig/network-scripts to see if there are any vlan scripts, and if there are scripts such as ifcfg-eth0 or ifcfg-eth1, etc. | |
Re: I try to stay as far away from Exchange as I can - that is what our IT staff is paid for. So, that is just my way of saying "I don't have a clue". That disclaimer said, it should be possible to move the data store to the external … | |
Re: You want to use a vector, and a bsearch-based insertion sort for this, so that the vector is always kept sorted. I wrote such code in C++ for a commercial application development framework (SDK) years ago (in the 1990's). Based upon the bsearch (binary search) algorithm, it would find the … | |
Re: If you are running MySQL on your own server/host, then you can modify the config file and restart the server. I think 13 connections are the default. You can increase that in /etc/my.cnf with this line: max_connections = <max-connection-count> You will need to edit /etc/my.cnf and add this line, with … ![]() | |
Re: You can disable tar's removal of absolute paths (including, but not limited to '/' and '../'). It does that so that when you extract the files from the tarball it doesn't overwrite stuff you don't intend it to. It will extract the files, by default, into the local directory where … | |
Re: Sorry, but we don't do your homework for you. Make an effort and post your code along with compiler and runtime errors here. Then we may be able to help critique your work, and make suggestions on how to fix it. | |
Re: PHP is, in my humble (or not so) opinion, a great framework for server-side web development. JavaScript, HTML and the rest are mostly client-side tools. If the specified code (PHP, JS, HTML) are properly secured on the server, then the chances of malware infections are greatly reduced. These days, security … | |
Re: Well, you need to describe what areas are of most interest to you as a career. Java (C++ with training wheels, as is C# and such) is a good place to start to learn programming basics, algorithm implementation, etc. Most 1st class programmers I know are capable of programming in … | |
Re: PHP is an object oriented language based upon C++. It is most useful, and secure, when used that way. You save your HTML and JavaScript strings in class variables, and then output them when appropriate. DO NOT mix your HTML/JS code with PHP! That is a quick road to perdition. ![]() | |
Re: This is where a Google or DuckDuckGo search would be a good idea. A short search for "epub editing software" returns a lot of good options. | |
Re: You need to study UML diagrams and such first. A sequence diagram is basically a visual description of how data and actions propagate between classes and entities in a system. Here is the wikipedia article on that: https://en.wikipedia.org/wiki/Sequence_diagram And here is an IBM/Rational article: http://www.ibm.com/developerworks/rational/library/3101.html | |
Re: If you have backup copies of your web pages and source code (you do, don't you?), then compare them to what is in the web server directory tree. You may have been compromised. See if there are differences. If you don't have secured backups (shame on you!), then you will … | |
Re: Lacking hardware, you can use virtual machines to set up, configure, and manage a network. | |
Re: What are you trying to learn. Oracle has it's own magazine that isn't too shabby that you can subscribe to. I get it myself. No cost. | |
| |
Re: We do NOT do your homework for you. Make an honest effort to solve the problem / assignment and post what you did here, along with any issues and/or errors you encountered doing it. THEN, and only then, will we consider helping you! | |
Re: You cut off the output. Why is it saying that the build stopped? Also, there is no terminating output data indicating the score, plus I think that the round + level information shown in the output is wrong. | |
Re: If both tables have 1M rows, then you potentially have 1T (trillion) rows of output. How many years can you wait for an answer? Show the schema of T1 and T2 please. | |
Re: If you have a bachelor degree in one of the STEM subjects then with your network cert you should be able to get an entry-level position somewhere. | |
Re: Your computer or cell phone will scan the area for open access points. Those typically would be "hotspots". | |
Re: This is not a helpful post. Please describe the use case, what programming languages you will use, and the environment where you are asking the user to identify the color in question. | |
Re: I'm not aware of such, not that they cannot exist. Most computer/phone/tablet internet / network connections require either a direct ethernet connection, or a WiFi (wireless ethernet) connection. | |
Re: Did you log into the ftp server with valid user credentials? | |
Re: You should be able to fix this with the recovery partition. You will need to boot into safe mode to do that. My brother-in-law had this problem and that's how he fixed it. | |
Re: As said, the manual (found on the PHP web site) will help a LOT in dealing with this. That's how I learned. ![]() | |
Re: Is this a CRT (cathode ray tube) monitor? How is it connected? VGA? DVI? Other? | |
|
The End.