5,331 Posted Topics
Re: Unfortunately, a lot of schools are still using seriously outdated tools, such as Borland C/C++. This is just absurd, and not suitable to train new programmers. ![]() | |
Re: People need to recognize that PHP is an object-oriented language (C++ with training wheels) that runs on a web server, and can emit HTML and javascript as necessary to run on the client (browser) for further processing. I posted an article here about how to do that properly. Read it. … | |
Re: Try leaving the Curve attached to the computer. Shut the computer off (cold shutdown - not a restart). Then reboot the computer and see if the device is detected. Note that many mobile devices have two USB modes. One is to have it seen as a usb storage device. The … | |
Re: Specify CREDITRATING as a private member, but provide a protected setter and public getter method to set/get the data. Don't use friend or static members or methods for that. In your derived class, if you need to change the credit rating based upon some analytical processes, then you can call … | |
Re: Use one or the other in C++, not both. Cout is preferred. You can use sprintf() to push the data into a string, and then output that with cout. Sometimes, that is a reasonable alternative, allowing you to use printf() formatting options to build the string you want to output. | |
Re: This is more or a C than a C++ problem. Read one character from stdin (cin), count the number of instances of that character from stdin until you get a new character. Add that code (cN) to an array of results. Start with new character with a count of 1 … | |
Re: You really don't need javascript to do this! Assuming you have the tax rate and selling price (either GET or POST variables), then you can easily do this in the server-side PHP logic. Then, output to the client browser with HTML is trivial. ![]() | |
Re: Systems shut down automatically when certain things happen, such as overheating. Is this a laptop or desktop system? What is the power supply rating (in watts)? Are the cooling fans working? | |
Re: Your routers have a maximum bandwidth, and all the loads are probably hitting that limit, hence the "lags" you are experiencing. You can use both wifi access points, provided they are directly cabled to the modem, providing a greater throughput than you will get with WiFi only. We have two … | |
Re: This warning will be issued in a number of scenarios, including if the certificate is a self-signed one (not registered with a legitimate CA). They should be noted, but for testing purposes can probably be ignored, although CA spoofing is becoming a problem these days. | |
Re: This requires some sort of database to keep current user data, such as MySQL or PostgreSQL. You need to write your php scripts to capture the data to the database, and then the script to sync the data to mailchimp has to read that data. This is not a trivial … | |
Re: An R9 290? Is that also a Radeon card? Does it require a dedicated power supply? Some high-end video cards have a power socked and require a cable from the system power supply to connect with it. Also, depending upon other loads, 600 watts may not be sufficient. Finally, are … | |
Re: Does it only go high when updating, or always after the update? | |
Re: Look here: http://www.cplusplus.com/reference/list/list/ | |
Re: We don't do your homework for you. Write the code, post it here along with the errors you are getting, and we may help you... ![]() | |
Re: Windows comes with a lot of unneeded cruft and services installed that take up memory, and don't give you much benefit. This ends up causing such performance issues, even if there are no viruses on the system. So, remove or disable all unneeded applications and services and see if that … | |
Re: Battery life depends totally upon the load that the computer is generating. Computationally or graphically intense programs will increase power usage. Also, power settings for the system will have a major impact. | |
Re: Try running alsa mixer and see if adjusting the master volume control helps. Also, try running VLC media player. | |
Re: Is this a usb mouse, or is it a wireless unit? If wireless, have you tried replacing the battery? | |
Re: Also, look at this: http://www.cprogramming.com/tutorial/lesson17.html Variable arguments have been in use for decades. This technique is pretty standard for processing (...) arg lists. FWIW, the printf() functions use this internally. | |
| |
Re: The Linux kernel is written in C as are many of the system utilities, though python is becomeing very popular. Most large-scale programs are written in C++ or Java. I prefer C++ myself since it is much more efficient and flexible than Java (my opinion). If you want to write … ![]() | |
Re: The pop function generally is just removing the most recently added (push) member of the queue/stack and returning it to the caller. | |
Re: In current c++ compilers, main() must return an int, NOT void. That is deprecated, and will generate errors or warnings with any recent (since 1999 or so) c++ compiler. | |
Re: You need to take the tests for min and max outside of the loop. Also, min and max are the names for common functions (such as min(x,y) and max(x,y)) - some compilers will not like this. Change the names to something like theMin and theMax. | |
Re: This is a simple factoral problem. 1, 2, 4, 8, 16, 32, 64, 128... As DaveAmour asks, do you have any code yet? | |
Re: Wipe the entire drive and reinstall the operating system - preferably Linux. Boot a Linux live CD/DVD drive and run the command "dd if=/dev/zero of=/dev/sda bs=1M" - that will wipe the entire disc including the boot/partition sector, which is probably where the malware was located so it could re-infect your … | |
Re: So, describe the input, the output, and the miscalculation. | |
Re: We don't do your homework for you. Write your code, and when you have problems with it, post it here for advice. | |
Re: If you are running WiFi 802.11b (probably) then you are getting about the max your wireless can provide (between 1 and 11 mbps), depending upon signal strength and distance from the access point. According to the Dell user docs, the specs say that it should be able to support 802.11g … | |
| |
Re: I tend to agree with s.o.s about the clunky nature of SQL to model such hierachical structures. It can be done of course, but the file data would have to be BLOBS if you want the file data in the database. Depending upon their sizes, that could be an issue … ![]() | |
Re: AMD chips are usually cheaper than Intel ones of similar capabilities. Here is a link to an Asus motherboard (good quality) for AMD chips, which also has audio and video onboard, $66.99 at rakuten.com (formerly buy.com): http://www.rakuten.com/sr/searchresults.aspx?qu=asus+A68HM-E Do remember, you still need a case, power supply, CPU chip, RAM, disc … | |
Re: How is the joystick connected to the computer? Analog game port, serial port, usb port? What? | |
Re: @ youssefmanm - harde har har har! I like my Samsung Galaxy 5... :-) Amrita, the best monitor is what you like the best, at a price you can afford. I have dual Dell 1920x1200 monitors that have been going for years and are good for what I do. The … | |
Re: In the immortal words of Bruce Schneier, it sounds like security theater to me! | |
Re: You need to be more specific about what you want and the problems you are having. And GOD or $$ have nothing to do with this! | |
Re: 1. Initialize the variable a to 0. 2. Since this is C++, don't pass pointers, but better to use references. IE: `void addition (int& b)` called as `addition (a);` - that eliminates the need to check for void pointers. Your task is to fix up the code for the functions. … | |
Re: The virtual machine extensions need to be enabled in the BIOS. IE, the VT-x and/or AMD-V extensions need to be enabled in the BIOS or you will get this sort of problem with kvm, vmware, or VirtualBox. | |
Re: Please provide more information. Does it work when you first boot the computer and attach the modem? If so, how long before it stops working? | |
Re: Fib(43) is a VERY big number, and will overflow even double precision numbers. Not sure about 64bit integers, but definitely 32bit ones. As for the recursive vs. non-recursive algorithms, show your work! FWIW, I was using recursive fib algorithms back in the mid-1980's to balance S&P indexed funds for the … | |
Re: Not ever! Blu-ray is heavily DRM encumbered, and every purchase of a drive and/or disc puts $$ in Sony's pocket, who I will NEVER again support! Stick with DVD's. Yes, BR can provide higher resolution, but not enough to justify Sony's egregios anti-consumer behavior! 720p (DVD quality) is pretty darned … | |
![]() | Re: My wife is a physicist and I am a software architect/engineer. All of our systems at home are either OSX or Linux. Even when I am forced by an employer to use Windows, most of my work is in Linux and I run it in a virtual machine. Windows is … ![]() |
Re: First, you have not initialized the two strings, so they contain random data from the stack. Moschops is correct in that you need to initialize the strings before calling the mystery function. Also, this is NOT testing for length, but for equality of strings, so your output is misleading. IE, … | |
Re: What interface(s) does the printer provide? It can be serial, pararllel, or USB. That will determine what port you send the output data to. Also, does the printer require some specific protocol to communicate print data to it? There are many factors here to resolve before you can even think … | |
Re: Myself, I won't touch a BR drive to save my life - I refuse to pay Sony a tax for watching videos, and suffer the slings and arrows of heavy-handed DRM (Digital Restrictions Management). However, you can use a Google search to find many reviews of the various units available. | |
Re: It puts the last character read from the input buffer back into the buffer so the next call to getch() will return it. Let's say you are reading numbers into a string buffer from stdin and you get a character. You want to process the numeric data and then start … |
The End.