5,331 Posted Topics

Member Avatar for hudahamid

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 …

Member Avatar for David W
0
229
Member Avatar for janicemurby

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

Member Avatar for janicemurby
0
7K
Member Avatar for Ashish_23
Re: C++

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.

Member Avatar for rubberman
-1
92
Member Avatar for progteacher2

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 …

Member Avatar for deceptikon
0
113
Member Avatar for abim usman

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!

Member Avatar for rubberman
0
311
Member Avatar for appsdata

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! …

Member Avatar for rubberman
0
1K
Member Avatar for MandrewP

This sounds a lot like a means to pwn an application. Please take your attempts to subvert application security elsewhere!

Member Avatar for rubberman
0
120
Member Avatar for chrisschristou

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!

Member Avatar for rubberman
0
424
Member Avatar for Misar
Re: JAVA

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.

Member Avatar for rubberman
0
162
Member Avatar for Callum_2

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 …

Member Avatar for rubberman
0
1K
Member Avatar for janicemurby

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.

Member Avatar for janicemurby
0
540
Member Avatar for Schmelz

Yes, what nullptr said. The << operator is the output operator, but cin is an input stream so it won't have an operator<<().

Member Avatar for rubberman
0
274
Member Avatar for preslav_milev

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/

Member Avatar for David W
0
364
Member Avatar for Takuniku
Member Avatar for phpkoder

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. …

Member Avatar for rubberman
0
1K
Member Avatar for jackraf27

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...

Member Avatar for rubberman
0
199
Member Avatar for LinuxGuy80

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 …

Member Avatar for rubberman
0
169
Member Avatar for priyanka.choudhary.90038

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"... :-)

Member Avatar for rubberman
1
220
Member Avatar for COKEDUDE

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 …

Member Avatar for rubberman
0
2K
Member Avatar for bLuEmEzzy
Member Avatar for Ali_46

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.

Member Avatar for IntegratedTweak
0
288
Member Avatar for napo15

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 …

Member Avatar for David W
0
379
Member Avatar for can-mohan

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) …

Member Avatar for can-mohan
0
154
Member Avatar for LinuxGuy80

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.

Member Avatar for CimmerianX
0
623
Member Avatar for merritt2

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 …

Member Avatar for merritt2
1
323
Member Avatar for Ivan_9

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 …

Member Avatar for David W
0
2K
Member Avatar for berries

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 …

Member Avatar for diafol
0
229
Member Avatar for lewashby

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 …

Member Avatar for Gribouillis
0
460
Member Avatar for Nivetha.R

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.

Member Avatar for David W
0
149
Member Avatar for vikasmca2k11

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 …

Member Avatar for invisal
0
189
Member Avatar for DarkRm

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 …

Member Avatar for rubberman
0
370
Member Avatar for Jiby_1

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.

Member Avatar for diafol
0
137
Member Avatar for writerervin

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.

Member Avatar for rproffitt
0
104
Member Avatar for LibraryCode

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

Member Avatar for JamesCherrill
0
302
Member Avatar for muze

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 …

Member Avatar for rubberman
0
787
Member Avatar for knggee

Lacking hardware, you can use virtual machines to set up, configure, and manage a network.

Member Avatar for rch1231
0
166
Member Avatar for Mohamed_26

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.

Member Avatar for Mohamed_26
0
189
Member Avatar for Trevor_5
Member Avatar for Kaiser95

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!

Member Avatar for rubberman
0
200
Member Avatar for divinity02

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.

Member Avatar for Taywin
0
351
Member Avatar for sangi1981

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.

Member Avatar for sangi1981
0
224
Member Avatar for ut151469

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.

Member Avatar for harshalone
0
164
Member Avatar for kombi-tamiri
Re: hi

Your computer or cell phone will scan the area for open access points. Those typically would be "hotspots".

Member Avatar for mouaadable
-2
128
Member Avatar for Paulina_1

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.

Member Avatar for rubberman
0
57
Member Avatar for masterjiraya

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.

Member Avatar for rubberman
0
200
Member Avatar for Teddy112
Member Avatar for izzwizz

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.

Member Avatar for CimmerianX
0
167
Member Avatar for janicemurby

As said, the manual (found on the PHP web site) will help a LOT in dealing with this. That's how I learned.

Member Avatar for diafol
0
267
Member Avatar for Helen_2
Member Avatar for rubberman
0
258
Member Avatar for IntegratedTweak

Welcome to Daniweb. Good help here as well as on the Linux Forums.

Member Avatar for rubberman
0
303

The End.