5,331 Posted Topics
Re: Each tab open in Chrome creates a new system process, and uses a lot of memory. This is the most common cause of such behavior as the system may have to hit the virtual memory swap space. Try closing other tabs or add more memory to your system. FWIW, I … | |
Re: If you are considering switching into more current web-based programming, then get up-to-speed on PHP and LAMP. PHP is really a web server based version of C++. If you are going to use it properly, you need to understand well the foundations of OOP (object-oriented programming). A lot of currently … | |
Re: Also this: int uch = toupper(ch); if (uch >= 'A' && uch <= 'Z') { // This is a letter. } | |
Re: Well, ping is a UDP protocol. There is a message format. You need to format a ping message, open a reply port, and send the message (with reply port) to the IP address using UDP, and then wait for the reply (usually using the select() function). You will need a … | |
Re: Remember, we won't do your homework for you. You need to make a good effort to solve it, and when you run into problems that you cannot solve, then post your code here for us to review and critique. | |
Re: Antenna design is a dark art. I studied software genetic engineering with a very bright US Air Force captain at MIT who was using genetic algorithms to help design phased array radar antennas. He ended up with some very strange designs that out-performed anything that mere humans had come up … | |
Re: Class assignment? Sorry, but the terms of service here do not allow us to do your homework for you. Make a good attempt to solve the problem, and if you have errors, post the code here, which we can then critique and help you with (to a point). ![]() | |
Re: Computer/phone/tablet gear is very subjective. Try them out at the store (provided you have a store with the devices in question) and then decide which works best for you. | |
Re: Use PHP for webapps. It is a derivative of C++, so learn C++ first, and apply the object-oriented principles you learn there to your PHP code. | |
Re: Have you tried Microsoft's Security Essentials? It is free, and does a decent job at cleaning such issues. Also, there is the FOSS (Free and Open Source) tool ClamAV. FWIW, I never use just one cleaner in these cases. | |
Re: You shouldn't lose the data unless you drop/cancel the account. Just disconnecting from it should not do that. | |
Re: The 4096 cores is a limitation built into the kernel. If you want to modify the kernel, you could increase that. There are Linux supercomputers that have lifted that limit considerably - not a task for the noobie kernel hacker... :-) As for the 128TB RAM limit, that is probably … | |
Re: The key to learning C++ (C with classes) is to learn how to code in C first. Then, get a grip on object-oriented design (classes, methods, etc), and then on C++ STL (Standard Template Library) tools. This is not a simple process, and will take a couple of years to … | |
Re: ?Huh? Try a Google search? In any case, you are not being clear enough to give rational advice. | |
Re: What do you mean by "a repository"? Something like Git, SVN, ClearCase, etc? | |
Re: Also, you are popping a value off of the result stack BEFORE you pushed anything onto it. This is the cause of the error there. There is nothing to return to you! ![]() | |
Re: Unless you have the tools required to fix a cable, it is not worth fixing. Replace it with a new one. | |
Re: Well, your addrec() method has no code, so it won't do anything... ![]() | |
Re: First, you are confused... :-) The ostream& operator<<(ostream& output, classname& cn) returns a reference to the output object, allowing multiple outputs to the same stream in one expression such as `cout << "foo" << "bar" << " " << dec << 1001 << endl;`, which would display "foobar 1001". Your … | |
Re: Try int main(void) { vector<string> activities; activities.push_back("a new activity"); cout << activities[0] << endl; return 0; } You don't need to pre-size vectors in c++. They will grow as needed. | |
Re: Also, we don't do your homework for you. If this is job, not school related, then Schol-R-Lea's response is 100% correct. FWIW, in Linux systems, there are timer functions that will help you do this very easily. I have frequently used them in the past. Most are POSIX functions, so … | |
Re: 1. Convert input to either upper or lower case. 2. Assuming lower, see if the answer is "yes" or "no". 3. If neither, then execute the "not a valid answer" branch. | |
Re: This is the purpose of the ODBC libraries - they provide a database-neutral means of accessing most any database without changing your code. Before ODBC existed, I wrote an ODBC-like API for manufacturing systems, and a set of loadable shared libraries for each supported database (Oracle, Sybase, Informix, Ingres, and … | |
Re: Either you purchase an installation or live CD/DVD disc set, or download an installation or live CD/DVD set of ISO images to burn to CDs or DVDs, boot that, and install the system. Most distributions have means to purchase installation media (DVD usually) online if you don't want to burn … | |
Re: Please be more specific. How are you trying to run these programs, and why do you think you need to run an "installer wizard". Finally, what Linux distribution are you running? | |
Re: Are you plugging into a wall charger, or is it plugged into a computer USB port? As JorgeM suggested, try an alternate charger. So, if you don't have another wall charger, try a USB connection to a live computer. If it still doesn't get beyond 10%, then it is most … | |
Re: I learned software engineering by doing. My first real project was to write an accounting application for a customer (I was a sales representative at a computer store) in dBase II over 30 years ago. He provided the specifications, and I learned the dBase language in order to deliver what … | |
Re: An 8 bit value, such as a char, can be signed, or unsigned. So let's look at chars - you can have a signed or unsigned char. The top-most bit for a signed char is the sign. If set, the value is negative. If not, it is positive. In this … | |
Re: Both solutions are brain-dead... Use bsearch() and utilize a different compare() function for ascending vs descending orders. That way, you only need to tell the program how the list is sorted, and it can call bsearch() with the appropriate compare() function. Simple, effective, and fast. | |
Re: What do you mean by "hdd-regenerator" software? HDD - Hard Disc Drive? Regenerator - restore file system, disc image, what? | |
Re: There are several issues here. There are references, const references, pointers, and const pointers. In C++ references of either type are preferred to pointers. Why? Because the function doesn't need to verify that the pointer is null before accessing it. If passed as a reference, the object has to be … | |
Re: I consider Java and C# to be C++ with training wheels. One of the major advantages of C++ is that you can also write low-level C code with it, such as direct I/O for device control that may be difficult or next to impossible with other languages. | |
Re: Here is a good tutorial on the subject of random number generators: http://www.phy.ornl.gov/csep/CSEP/RN/RN.html The math requirements aren't too onerous, and translation from the Fortran90 examples to C or C++ shouldn't be too difficult. My wife is a particle physicist and Monte Carlo routines and RNG's are her life blood. Most … | |
Re: You are not providing enough information to help you. I assume you are just closing the display, probably putting it into sleep and later hibernate mode. That said, I think you need to be sure you have enabled a hibernate file. If not, then before you shut the cover, shut … | |
Re: Getting a new system will likely be less expensive than fixing this one. | |
Re: GNU has a fortran compiler as part of the GCC compiler suite. I don't know if it is 2008 compliant or not, but it is usally fairly up-to-date. What OS are you running on? | |
Re: Run it through a sed script to remove the "null" entries. | |
Re: Try ` system("java -jar ./myJar.jar");` assuming that the file is in the same directory as you started your C++ application and it did not change directories before it executed the system() call. | |
Re: First, what language are you using? Next, why isn't this in the Software Development forum? | |
Re: There a built-in open source nVidia driver for Linux called Nouveau. nVidia also has proprietary Linux drivers for their gear which work very, very well. The proprietary drivers are much more efficient than the Nouveau driver. I run Nouveau on my laptop which has an nVidia GPU, and the proprietary … | |
Re: Well, what you need to do depends upon whether you are running Linux (or other *nix), or Windows. If Windows, it will find and mount the file system automatically, as drive E: or something. If linux, you will probably need to manually mount it on your file system. So, let … | |
Re: Anyway, we need to see your code, especially where you take input for the password, and how the input stream is configured. | |
Re: Here is link that may be helpful: http://www.linuxlinks.com/article/20110129042546189/PointofSale.html | |
Re: > after compiling,when i run program my 'FTN 95\PLATO' recently showing me black DOS box,only reading "PREES 'RETURN' to cotinue" without executing the program. could u say why is this happening ? Not without a lot more information. How are you compiling it? Is there a file "PLATO.exe" in the … | |
Re: This is a chicken and egg problem. No drive, cd/dvd won't work. You either need to get an external drive, or have someone write it to a USB thumb drive that your system can boot from. | |
Re: These days, a 4 CPU system will have from 8 (more likely 16) cores, to as many as 32. More cores == slower clock speeds. You can overclock 4 core high-end Intel CPU's to about 5GHz, and possibly more with agressive liquid cooling. | |
| |
Re: What operating system/version are you using. According to the Linux man page for fopen, the usage of "a+" is this: a+ Open for reading and appending (writing at end of file). The file is created if it does not exist. The initial file position for reading is at the beginning … | |
Re: What Schol-R-LEA said. For a cross-platform GUI development tool set, use either Qt, or Wx - Qt is preferred. That said, they are C++, not C API's. AFAIK, there are no standard GUI tools that are strictly C based, other than text-based ones such as curses/ncurses. | |
Re: I assume this is a shell script. When you execute the argument as a command, it has to be found in the system's PATH environment. Try `./$1` instead. That tells the shell to look for the command (argument) in the local directory, where you executed the ss4 command. |
The End.