5,331 Posted Topics
Re: Javascript can be used for either client or server-side usage, but it is most commonly used for client side stuff, especially graphics-intensive stuff that should most appropriately be run on the client. Other than that, it is a general-purpose web programming language. PHP really is designed for server-side programming, and … | |
Re: What rproffit said. In places where I worked that had/have guess access points, the router that the guest AP's are connected with are NOT connected to the corporate network, but directly to the internet. If they require access to the corporate network, and are given the means to do so … | |
Re: It sounds like the video sub-system has failed. You may want to take or send it in for diagnosis and/or repairs. It may simply be a broken solder joint on the video connector which would be easy to fix. Without the unit in hand, I can't say much more than … | |
Re: There is also the possibility that the network card has been disabled in the OS - this can be done in Windows or Linux both. Go to the networking page in the OS and disable the network card, reboot, and re-enable it again. I've seen this work on either type … | |
Re: Also, please don't ask us to do your work or homework for you without making an honest effort to solve the problem first. @rproffitt was being nice in providing a couple of relevant links for you to review. In any case, these are very simple problems. The math is well-known. … | |
Re: I think this is simple math. If the amount available - the cost is less-than zero, then you gray the option out, and don't let them choose it. Also, give them the option to insert more coin to make the desired purchase. | |
Re: And do remember, we DO NOT do your homework for you. There are plenty of online resources about simulation software and how to do it. If you want our help, make an effort, post your code along with your problems and errors here, and then we can make the effort … | |
Re: First, write out the solution (as you understand it) in pseudo-code. IE, plain language describing the problem and solution. Then, we may be able to help you put it into code. Do bear in mind that Pascal is an ANTIQUE language (Niklas Worth wrote it in the 1960's or 70's … | |
Re: How's the weather up there? It may be condensation caused by the cold. Get the system to a warm environment, and give it some time to dry out. Some compressed air blown into the system may help dry things out more quickly. | |
Re: I would tend to agree with @rproffitt, though the web site for QE says that there is a windows version available. You need a fortran compiler. I also don't see a Windows version for the 5.2.1 (latest) version. As for Windows 10, that is another issue entirely? Do you have … | |
Re: From the department of sarcasm department: Windows 10 will be ready when Windows 11 ships... :-) | |
Re: Usually one uses recursion instead of a for() loop. Give an example of a problem you are trying to resolve. | |
Re: In this example, it is redundant. However, in other cases, you can pass another function signature to the executeFunction() function, though that seems excessive unless the function to be called may be dynamically determined due to other things. In any case, do explain what you are trying to accomplish. In … ![]() | |
Re: Rule of thumb for enterprise systems - NEVER do an upgrade to version 0 of anything. PHP 7.0 is no exception to this rule! That said, your feedback to the PHP development community may be helpful. ![]() | |
Re: Where is your prolog code? This is C/C++. Prolog is very different. I assume you are speaking of the prolog computer language? | |
Re: Why does the Runway class have instantiated public member variables for Plane, landing and takeoff? It appears to me that you have not analyzed your use cases properly. Other beginner C++ issues - you have no default constructor, no copy constructor, or assignment operator. If not needed, then declare them … | |
Re: There are a number of solutions to this problem. You can use a std::vector for the array which will happily resize itself as needed. Much better than "rolling your own", which I have done in the past before the STL was available. For automatically resizable arrays these days I use … | |
Re: float x = 10.0; float y = 2.0; float z = x/y; System.out.printf("x == %f, y == %f, x/y == %f\n", x, y , z); | |
Re: Node.js is simply (AFAIK) a javascript API that allows you to speed up client-side development. Remember, JS runs on the client, and PHP on the server. PHP can serve up javascript to the client, where it is executed, and this includes node.js scripts. So, I don't think it is a … | |
Re: There are a gazillion articles on the Net that cover this subject. You need to do some serious reading. The subjects of inheritance (dog inherits from animal, so does human), polymorphism (virtual int number_of_legs() - returns 2 for humans, 4 for dogs or cats but calling on a pointer or … | |
Re: Turbo C/C++ are so far out-of-date that you and your class should NOT be using them! You can download good open source C++ compilers for Windows that ARE up-to-date, such as MingW or GCC in Cygwin. If it doesn't allow string class usage (which is a derivative of basic_string, an … | |
Re: Also use classes where your constructor or setter methods can set internal variables that can be accessed with a simple getter method. Add to that @tinstaafl's suggestion about array's of strings, you can do something like `obj.wbdisplay();` where the wb value is stored in the object when it is constructed. … | |
Re: Types are critical. You are passing the address of a pointer to init() and not the pointer itself. Also, your variable TEMP* temp in main has not been initialized with a pointer to a real object. If you change the type of temp to a TEMP object, as in `TEMP … | |
Re: This is DEFINITELY NOT a simple topic. As for computer languages used for AI applications, some of the common ones were (or are still) Lisp, Prolog, Smalltalk, Snowball, and stuff written in languages like C++ or Objective-C that implement CLIPS or neural network protocols. FWIW, I have programmed in Prolog, … | |
Re: What @tinstaafl said. You are basically passing the address of a pointer, not the pointer itself in your print() statement. | |
Re: The info member of STRING is a `char*`, NOT a numeric or boolean value. What is your intent here? | |
Re: Those card slots are usually attached to an internal USB hub. I usually fix this sort of cruft by going into the hardware manager, removing all the USB ports/devices, and rebooting. Windows will auto-discover all that gear and remount it. In any case, you can just remove the card-slot stuff … | |
Re: Assuming you want to keep your data, you install the new drive in the same place as the old one, boot from the CD, install Win7. Then, if you can, install the old drive in another slot, or put it in an external drive bay, connect to the system, and … | |
Re: Please format the register form with proper intentation. Also, you don't indicate where your bogus output is being generated. I can't find it anywhere in your example code (either PHP or HTML). | |
Re: What @amigura said. Hash values generated by the like of md5, des, sha1/sha256, etc. are NOT reversable by design. ![]() | |
Re: First, disable your Windows "firewall", then go to the networking page and delete your network connection, and then add it back. See what happens then. In any case, you should NOT need to update your system's network drivers, assuming that the new ISP's router is using a normal TCP connection. … | |
Re: Post your proposed code for the swap function. We are not going to give you the solution for this without some effort on your part. :-( | |
Re: You need to study what an insertion sort is. What are you inserting? How are you sorting the array? Also, your for loops in the sorting function is bogus. Didn't the compiler complain, at least about the inner loop? FWIW, EOF is dependent upon the context. Sometimes it means -1. … | |
Re: Just this change: class Account { public: Account() { } virtual ~Account() { } private: // Private parts here. } | |
Re: I see you figured out to not apply the & (address-of) modifire to reverseWord in the form_temp_array() call. It depends upon whether the words in the input file are one word per line, or all on one or more lines. That will determine how you parse them (problem 'A'). As … | |
Re: Saying what the errors are is useful. That said, you are assigning your arguments to variables with the wrong variable names in your constructors such as BookTitle when the variable name for the class is 'title'. So, in the class, your variables should be things like BookTitle, ... BookReleased, etc. | |
Re: I think it has to do with how the printer deals with color variations. In your printer setup in the Acrobat Reader, you may be able to increase the color acuity, but then the printer may be limited in that. Try changing the line colors to see if that helps … | |
Re: These are character (integer values) so the + or - '0' will subtract the ascii value from the left side of the expression. If you are talking about a zero and not a capital Oh, that has a decimal value of 48, so you are subtracting or adding 48. Here … | |
Re: A stack is an abstract concept of, as @DavidW explained, that behaves in a first in, last out manner (or last in, first out if you prefer). To add an element to a stack, you "push" it onto the stack. Subsequent "push" operations will, conceptually, push the previous elements down … | |
Re: 1. Use endl instead of '\n' for newlines in C++ code, especially when pushing to cout. It will force the stream to flush the data to output, which the newline will not. 2. Where do you declare/define the pr variable? It is not in the function you show. 3. Just … | |
Re: Check with Sony. And in the future, DO NOT buy Sony products! Once upon a time, they were great (I still have Sony audio tape recording and minidisc products), but they have become so consumer unfriendly that I can no longer support the company. | |
Re: You should specify another php or HTML page for the action= component. In that page you can get the post variables and do the math... :-) If you construct your page properly, you can recursively call the same page. That said, just leaving the action out, the form will post … | |
Re: All program memory allocated on the heap within a program will be returned to the operating system when the program terminates. As for your line 30, that should be just fine. The results of new Type is a pointer to a Type object, Student in your case, so if you … | |
Re: Your example of summing a rance of columns or rows should work with LibreOffice Calc just like it does with Excel. Have you tried that? | |
Re: My brother-in-law had to do this. He restored Win7 from his recovery partition, and disabled automatic updates. We were able to recover his data. In any case, the update to Win10 didn't seem to have affected the recovery partition. Have you tried that yet? | |
Re: The Reverend Jim is correct. You need to access the admin web page on the router, which means you need to directly connect your computer to it with an ethernet cable since you don't have WiFi access. There, you can either view the password, or if it is obscured, you … | |
Re: You cannot divide by zero as you do on line 5 when page-fault-counter is 0. Also, you are doing an integer divide and converting the resule to a double. You really should cast the numerator and denominator values (page_list_size and page_fault_counter) to doubles before the division. In any case, this … | |
Re: Are you sure the mytree print lines are not reversed in order? System.out.println("-------------Pre-order------------------"); mytree.iprint(); System.out.println("---------------In-Order-----------------"); mytree.preprint(); Anyway, please show your input, and your output. | |
Re: Is the modem also a router/switch/Wifi access point? |
The End.