5,331 Posted Topics
Re: Create a class with all of the values, call it AgeGroup. Create a map<int,AgeGroup> object where the int part is the age, and the object is the other member. Then read each csv record into an instance of the object, and insert that into the map. Example (not complete, won't … | |
Re: Try this: double results = kilo * sqrt(metre); String response= results + " " + FirstName + " " + Lastname; | |
Re: If you have a live or recovery cd/dvd/usb drive, you can boot into that and fix the file systems with fsck. However, as AHarrisGsy mentioned, it would be good for you to provide a bit more information. | |
Re: There was a bug in Win7 early on (fixed with a patch earlier this year) where the CPU would get "stuck" at a slow speed, even when plugged into wall power. A number of my co-workers had this problem. I don't remember just off-hand what the patch was, but you … | |
Re: itemWord* findDup(itemWord* head, itemWord* item) { for (itemWord* curr = head; curr != 0; curr = curr->next) { if (curr != item && strcmp(item->word, curr->word) == 0) { return curr; } } return 0; } void removeDup(itemWord** head, itemWord* item) { itemWord* prev = 0; for (itemWord* curr = *head; … | |
Re: You can also use a state machine to model this simple of an entity, which a DFD is at a fundamental level (sort of). | |
Re: You scan variables n and qi, malloc ni and arr, and nowhere do you do any bounds checking or verifying that you got a valid memory address. In addition, malloc() returns a void pointer, so assigning it's output to a long pointer is invalid code unless you make an explicit … | |
Re: What are you using for an editor? Have you modified the file and directory permissions so you can save a new version of the file? | |
Re: I suspect that the power supply is faulty, though it could be a problem with the motherboard as well. You need some diagnostic tools to check the system board and power supply. This is a free one that has good reviews (self-booting CD image): http://www.hiren.info/pages/bootcd, and here is a link … | |
Re: Does the drive have an external power supply, or are you just powering from the USB port? | |
Re: What distribution+version of Linux, and which kernel, are you running? This problem is usually due to a missing new-line at the end of the command stream. Edit the file, and add a new line at the bottom, then save the file and try again. ![]() | |
Re: Connect an external display and go into the BIOS setup. You might find the information you need there. | |
Re: You can enable the source code repository and download/install the kernel source code with the yum command. Alternatively, you can download the kernel source code RPM file from a CentOS mirror site and install it directly, again with either yum or rpm commands. And yes, you will need the kernel … | |
Re: MS-DOS was written in assembler, as was CP/M, TRS-DOS (for the TRS-80), et al. There is an open source version of DOS (FreeDOS) which certainly has a fair amount of assembler in it (it's mostly in assembly language). Here is a link to the download page: http://www.freedos.org/download/ | |
![]() | Re: If this is homework, please try to solve the problem on your own first, before you ask us to help you. Then, post your code or other work product here for comments, corrections, etc. In any case, fibonacci numbers are where fib(n) = fib(n-1) + fib(n-2), so exponentiation should not … ![]() |
Re: Has this been happening since you got the system, or only recently? | |
Re: The IEEE has a CSDP (Certified Software Devlopmen Professional) training/certification program, and I think you can choose your language of preference. This is the pre-cursor for the upcoming IEEE professional engineering (PE) certificate in software engineering. Up to now, software engineering has not been considered rigorous enough for a PE … ![]() | |
Re: Another approach is to use the `strtod(const char* nptr, char** endptr)` function. You pass the string containing the number, and the address to a char* which will be set by the function to the first non-numeric character. FWIW, `strtod()` [double] and `strtof()` [float] will also accept scientific notation, such as … | |
Re: Pseudo code is just a step by step description of how to perform a computation, along with appropriate explanations of what each step does to fulfill the requirements. There is no magic here, just work so get started! | |
Re: Is this a Linux system? If so, did you install the debug kernel and such? What about your current installation of the Gnu Compiler Collection (GCC) - did you install a debuggable version of that? What seems to be happening here is that glibc is a debuggable version, but you … | |
Re: Sleep a bit before exit(0). I think you are running into a race condition and your parent is getting a SIGCHLD signal (you dieing) about the same time it gets the SIGUSR1 signal. FWIW, using signals to communicate between processes is very dangerous and error-prone. It's use is common enough, … | |
Re: Homework exercise? Try solving it first, then post code here for comments/corrections. We are not here to help you cheat! | |
Re: Is this Windows, or a Linux system? Also, where did you obtain the drivers, and how specifically did you install them? Finally, are you SURE you got the correct driver for your hardware? | |
Re: Please don't ask us to do your homework for you. Make an honest attempt to complete it yourself first, and then we can comment on your work. | |
Re: Go to this web page (http://www.centos.org/modules/tinycontent/index.php?id=30) and select a mirror to download CentOS from. | |
Re: I've done a lot of research into memory management for C/C++ software, including garbage collecting versions of malloc/free, reference-counting garbage collectors that can handle non-acyclic graphs (non-trivial, but implemented in major system software), and such. This work has been written up in technical journals. If I were asked to show … | |
Re: What WaltP said. The division symbol you are using in the computation for "total" is wrong... :-) | |
Re: What caperjack said. Alternatively, you can go to the nVidia web site (www.nvidia.com) and download/install the driver from there. On Windows systems, it will automatically detect the OS and video hardware you have, pointing you directly to the correct driver. This will be the most current and stable version of … | |
Re: This is possibly a situation where the Payroll class should be a singleton (only one instance can exist), in which case, you could do something like thins: `Payroll::getInstance()->append(*member);` | |
Re: As shown by np_complete, you can implement methods of a class inline, in which case you don't need to compile them as a separate translation unit. They are truly inline code, implemented in each translation unit that uses them. | |
Re: Convert dates to julian values, then just subtract one from the other to get number of days. There is a great article on Wikipedia that expounds the algorithm in detail (http://en.wikipedia.org/wiki/Conversion_between_Julian_and_Gregorian_calendars and http://en.wikipedia.org/wiki/Revised_Julian_calendar). | |
Re: The first issue about autoreconf means you don't have the correct autoconf package installed. You need 2.63 I do believe. What version do you have installed? Anyway, since you have made it past that error, obviously you sorted out that particular issue. Missing libbz2 and libz means that in the … | |
Re: As far as I can tell, you still are not showing us where the buffer pointed to by BufferData is being originally being declared and instantiated. So, at this point, not a lot makes sense to me. | |
![]() | Re: Either C or C++ mostly, though Apple tools usually use Objective-C. You could use Java as well as other languages, but for efficiency's sake, C/C++/Objective-C are the preferred choices. ![]() |
Re: Exactly as WaltP says. You cannot compare a float with a double unless you down-cast the double, and even then it may not do what you think. Given the 64-bit systems we are mostly using these days, just use doubles if you need to compare computational results of floating point … | |
Re: School work? Analyze the problem and break it down. What are the salient factors that make up a 2-D model? What is the complexity of the model? Arbitrary, or a known model, such as floor-plans, geometric shapes, electronic board layouts (similar to floor plans), etc? Once you have determined the … | |
Re: Time to take it in to the "geniuses" at your local Apple store... | |
Re: Try googling for some reviews of these boards. Unless someone lurking here has personal knowledge and experience with them, I doubt you will get any / many responses. Both Asus and MSI boards are of reasonable quality. Myself, I prefer Intel boards, unless I am getting one for an AMD … | |
Re: If you look at the drive bay bezel / door, you should see a little hole next to the eject button. Get a paper clip or other small tool (pin) that will fit into that, and push. That is the manual release. | |
Re: Try ffmpeg. That is a command-line tool, but there is a graphics interface for the Mac. The main tool is at www.ffmpeg.org. The Max GUI interface for it is at www.ffmpegx.com. It is possible that the ffmpegx install will also include ffmpeg itself. Anyway, it will let you convert just … | |
Re: Take it in for repair. Something is fried on the motherboard most likely, or the power supply is fubar. | |
Re: If you have a visible (static) internet address, then yes you can. If you don't then it isn't so easy. Contact your ISP about obtaining a static IP address if you want to host your own email (or other, such as web) server. It will cost you some extra $$ … | |
Re: Java, python, ruby, javascript. Those are the hot buttons right now. That will change, of course, but having those skills will help with job acquisition. | |
Re: Run Linux with qemu installed. Then you can run just about any sort of emulator you want... and often faster than on the original hardware with modern 64-bit x86 systems. | |
Re: With the current push to "The Cloud" and "Big Data", companies are looking for professionals who understand large-scale distributed systems. This field includes software engineering/programming, networking, machine learning (statistics and advanced maths), and databases. These are the areas that I have been involved with for years, and were the source … | |
Re: Is this a CRT or flatpanel (LCD/Plasma) display? If CRT, then it should be repairable, though the cost will likely be more than replacing it with a new LCD flatpanel display. If plasma, don't bother - run, don't walk to your local computer store to replace it with an LCD … | |
Re: Well, I do have floppy discs, still, and have systems that can read them, but I haven't used ANY floppy disc in about 10 years, and I am a computer systems engineer... My feeling is that if you need a floppy, see if you can find one that has a … | |
Re: Take it into the computer shop. If they can't get it to work properly, ask for your $$ back. | |
Re: You are confused. Fuse is not a file system. It is a means by which user-space drivers can be installed (fewer restrictions than kernel-space drivers). Your error message means that the file system in question is mounted more than once, probably due to some login script that doesn't have an … |
The End.