5,331 Posted Topics
Re: 400+ lines of code is a LOT to ask people to analyze who do this in their spare time... Focus on the areas that you think may be problematic. You haven't received any responses yet, probably because we all have better things to do than analyze this amount of complex … | |
Re: Shouldn't [code] for (int i = 1; i < n; i++) { e = ( e + (1/(factorial( n + 1 ))) ); } [/code] be [code] for (int i = 1; i < n; i++) { e = ( e + (1/(factorial( i + 1 ))) ); } [/code] | |
Re: You use the -> (pointer-to) operator to dereference a member of a pointer to an object/struct. You use the . (dot) operator to dereference a member of an object (not a pointer to the object), or a reference to an object. In your example, the operator * is what makes … | |
Re: Sounds like the hardware is starting to go "wonky" - technical term for random failures. Vacuum/blow the dust out of the system. Let it cool down totally (shut down for at least 1 hour). If the problem persists, then it's time to take it to the repair depot! | |
Re: All LCD displays have color differences. There is software that can help you to adjust it to some standards, but in many cases this requires specialized tools to actually see the colors and provide adjustment settings to use with the display driver software. I have two Dell displays that are … | |
Re: This is C++ exercise? You show code, but no data structures (classes) for modeling this problem. This means that you are going backward, from code to structure. You need to design the classes you are going to use in terms of their contained data (attributes/properties) and behavior (methods/functions). So, what … | |
Re: Windows does support the POSIX interfaces, but writing code that works equally on Windows as on Unix is not simple, especially if you want to write GUI applications. In such a case, you would be best served by using a platform neutral SDK such as Qt. That provides a means … | |
Re: Any programming language would let you do this. Which ones are you familiar with? Which are you most comfortable with, and why? | |
Re: Please show your code, completely! Without seeing the context in which your problem exists, anything we say is just conjecture! | |
Re: One is a valid network address (the second one) + subnet mask, the other is not. | |
Re: Since the system has a DVI and not HDMI adapter, I don't think it will give you audio over the link. You will probably have to use the computer's audio mini jack to output audio to wherever. You should be able to find mini-to-regular stereo coax cables that will connect … | |
Re: Remember, with recursion, just as with loops, you need a terminating condition that will ALWAYS be reached (unless you want an endless loop), which we sometimes call a barrier condition. You need to test for when you reach a value less than 10, so change your code for D(int) to … | |
Re: You also need to scan your disc for bad sectors. They may be readable after a few retries, so checkdisk/f may still succeed, even though the disc is starting to go off the road. | |
Re: Alternatively, you can use an array of pointers to House. IE: [code] int numHouses = 100; House** someHouses = new House*[numHouses]; for (int i = 0; i < numHouses; i++) { someHouses[i] = 0; } [/code] Now, when you want to see if you have a house there, the contents … | |
Re: Make sure you are dealing with 32-bit integers. If so, then you can do this. [code] const int unusedvalue = 1; const char* ptr2tmp = (char*)&unusedvalue; const bool bigendian = (1 == ptr2tmp[3]); [/code] Why do it this way, instead of how you showed it? Because it is clearer in … | |
Re: My rule is NEVER to suppress warnings! They are there for a reason, and sometimes they give good indications that some code is going to be problematic. Your professor may suppress them for class projects because he knows they are "noise". Myself, I have to design and build systems that … | |
Re: Just about any current PCI-E x16 card will work, which these days means that mostly you get either AMD/ATI or nVidia cards. Myself, I prefer nVidia cards, but that's because they have better Linux support and I only run Linux systems. I used ATI cards exclusively back in the deep, … | |
Re: These are the kernels installed on the system. As you update with yum, new kernels, with security and other fixes in them, they are added to the boot menu, with the latest as the default. The others are there so that if the new kernel causes you problems, you can … | |
Re: ClamAV works just fine as x86_64. How are you trying to install it? From source? On Fedora or RHEL, you can install x86_64 ClamAV from either the atrpms or epel repositories. Use either of these repositories and you should be able to install it just fine using yum. Most use … | |
Re: Two sites to visit: [url]www.kernel.org[/url] [url]www.tldp.org[/url] The kernel.org site is down presently, since the servers for The Linux Foundation were hacked recently. Hopefully it will be back up soon. The Linux Documentation project (tldp.org) is up, however, and it has a lot of tutorials, articles, how-tos, and such to help … | |
Re: The C library read(), write() calls are probably the most efficient. What, exactly, are you trying to accomplish? | |
Re: There are no drive designations in Linux. Everything is under the root file system, which is / - user directories are under /home, user commands are in /usr/bin, etc. As a simple user, usually you will be working in your /home/userid directory. As for free anti-virus for Linux, the most … | |
Re: Well, if I understand it correctly, what you mean by FCFS is First Come, First Served, which is really (with some caveats) FIFO, depending upon the length of time required to process the request. Anyway, this is a good exercise for an operating systems class in engineering school. So, assume … | |
Re: Hash tables are simply 2-dimension arrays sorted by the key (hash value). The hash value is a mathematical representation of the data stored. There are a number of hashing algorithms that are used these days. The "key" is to select one that will minimize the number of collisions - situations … | |
Re: Download and use the command-line tool ffmpeg. It can transcode just about any video format into any other. I use it frequently (up to several times a week). It is the best audio/video transcoder that I have found, including ones on Windows and Mac. Go to [url]www.ffmpeg.org[/url] for details or … | |
Re: std is a system-level namespace. If you want to set the namespace for a section of code, you can do so with the "using namespace <name>" directive. IE: [code] using namespace std; int foo(int value) { cout << "value==" << dec << value << endl; } [/code] Without the "using" … | |
Re: What are the specs for this drive - size, partitions, formatting, etc? What do the modem/router's docs say about plugging in USB drives? | |
Re: The key is in the connectors. Visit the Intel web site to see what other processors use the same connectors. Those should be compatible with your current CPU. | |
Re: I assume you installed the CDT plugin for Eclipse? What is your OS, and what compiler are you using? Have you verified that your project is using the correct compiler, etc? Eclipse is picking about that sort of stuff. | |
Re: There is no real difference between USB drives and USB data cards, which typically are presented to the operating system as drives as well (solid state). What, exactly, are you trying to accomplish? | |
Re: Gah! I haven't had to look at Cobol code for 25+ years! In fact, I last worked with Dec's Dibol after that! I guess there are still Cobol programmers out there... So, what was the question again? :-) Anyway, what I think you are asking is how you can limit … | |
Re: I assume this is a broadband LTE modem? You need to make sure you have a very good connection to the appropriate tower. If you don't, then you will get some fraction of the maximum speed the device is capable of. What does the manufacturer documentation say? | |
Re: A modem requires a "powered" usb port. Some only provide enough juice for things like thumb drives, but many laptops only provide 1 port with enough power for things like broadband modems, etc. | |
![]() | Re: What OS (including version and service pack) are you running, and what make+model is your mouse? Do you have any other weird display issues? |
Re: The integrated Intel GPU is not bad these days, and can handle normal videos quite well, but if you are going to do any serious graphics work, then the Radeon is a good choice. If mostly you are going to do software development, then either will do you well, unless … | |
Re: Another good place to post is The Linux Forums ([url]www.linuxforums.org/forum[/url]). You'll find me there also. Then, you need to visit [url]www.linuxwireless.org[/url] - they have drivers (or links to) and installation procedures for just about every wireless device that can run on Linux. | |
Re: I've had to remove such for clients of mine. I use a Linux system with 2 or 3 different virus scanners when someone has these problems. The virus may have also infected the boot loader. In any case, running a Windows scanner will likely not totally remove this critter. On … | |
Re: Basically clueless, aren't we? Is there a computer programming language involved, or do you only need to model/describe the system in object-oriented terms (such as using UML)? | |
Re: They may also restore from the restore/recovery partition, which most OEM systems have installed on them. I've done that for my clients except in cases where the recovery partition was infected with a virus. | |
Re: So, did you install the libxerces development package? Without that, you won't get the headers you need to build c-xerces code. The basic package will only have the shared libraries and dependencies needed to run existing applications that rely upon it. | |
Re: Huh? I don't know what you are talking about, unless you are referring to 7-bit ASCII key codes, which would make sense. I have done complete telnet implementations for real-time operating systems (both client and server side, device drivers, and all the rest of it) back in the early 1990's. … | |
Re: Just an observation. Using tokens/keywords with leading double underscores, such as __AND, are reserved for the compiler and system library implementer. NEVER (I repeat that - NEVER) use them in your own code, otherwise you are likely to encounter some very weird error situations with names (and macro name) collisions! … | |
Re: Actually, mazzica1 is not quite correct. Just use the name of the function. You don't need the address operator. IE, [code] void callTest() { test(add); } [/code] | |
Re: Please don't ask us to do your homework for you. In case you haven't figured it out yet, a running program is always in RAM (or possibly virtual memory on modern systems). Google is your friend. The answers to all of these questions can be found in the Wikipedia I … | |
Re: Well, a BNF (Backus-Naur Form) listing of the syntax would be helpful. | |
Re: School class exercise? So, define your terms. What do YOU mean by "starvation free"? What do you understand to be the relationship between deadlock and "starvation". These are broad terms, and are relevant to the environment, and specific situation in which you encounter them. FWIW, typically "starvation free" refers to … | |
Re: As ITG-JM said, IPv4 has been around for decades (since the 1970's and 80's). If you are concerned about IPv6, that is different. The stuff I learned about IPv4 back in the 80's is still relevant today. I still use the DDN White Book as a reference for IPv4 issues, … | |
Re: [QUOTE=silverman166;1745468]Thanks for that. But in the event of poor themal contact with cpu, wouldn't the reverse situation apply ie wouldn't there tend to be more problems as the PC warmed up, rather than from cold?[/QUOTE] Probably. Is this from a thermally cold situation? Or is this also from normal room … | |
Re: Can you use inline conditional assignments? IE: [code] int Grade = (pct >= 85) ? 'A' : ((pct >= 75) ? 'B' : ((pct >= 65) ? 'C' : ((pct >= 55) ? 'D' : 'F'))); [/code] No if statements there! :-) |
The End.