5,331 Posted Topics

Member Avatar for jalpesh_007

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 …

Member Avatar for Taywin
1
123
Member Avatar for dantheman4

Try this: double results = kilo * sqrt(metre); String response= results + " " + FirstName + " " + Lastname;

Member Avatar for NormR1
0
1K
Member Avatar for Joseph Ballah

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.

Member Avatar for johhny-marshal
0
102
Member Avatar for chrisbrunke

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 …

Member Avatar for johhny-marshal
0
335
Member Avatar for simps0n

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; …

Member Avatar for rubberman
0
344
Member Avatar for Baka_Kuma

You can also use a state machine to model this simple of an entity, which a DFD is at a fundamental level (sort of).

Member Avatar for Baka_Kuma
0
118
Member Avatar for jayram.chandan

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 …

Member Avatar for jayram.chandan
-1
236
Member Avatar for phfilly

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?

Member Avatar for phfilly
0
239
Member Avatar for kevinjam

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 …

Member Avatar for kevin2s
0
202
Member Avatar for bazp

Does the drive have an external power supply, or are you just powering from the USB port?

Member Avatar for bazp
0
213
Member Avatar for lewashby

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.

Member Avatar for Kwetal
0
140
Member Avatar for jim.anstey1

Connect an external display and go into the BIOS setup. You might find the information you need there.

Member Avatar for rubberman
0
81
Member Avatar for under_dog

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 …

Member Avatar for rubberman
0
97
Member Avatar for PhilEaton

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/

Member Avatar for rubberman
2
278
Member Avatar for I_m_rude

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 …

Member Avatar for I_m_rude
0
140
Member Avatar for Boozinberry
Member Avatar for sudhanshu.srivastava.7

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 …

Member Avatar for I_m_rude
0
132
Member Avatar for Remzz

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 …

Member Avatar for Remzz
0
210
Member Avatar for ND2

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!

Member Avatar for stuart.mwalo
0
184
Member Avatar for Gaiety

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 …

Member Avatar for _avishek
0
642
Member Avatar for piero.costa

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, …

Member Avatar for rubberman
0
757
Member Avatar for yasaman.jokar
Re: OCR

Homework exercise? Try solving it first, then post code here for comments/corrections. We are not here to help you cheat!

Member Avatar for np complete
0
118
Member Avatar for Gopi chand

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?

Member Avatar for rubberman
0
174
Member Avatar for lakshmi.e

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.

Member Avatar for rubberman
-1
85
Member Avatar for lewashby

Go to this web page (http://www.centos.org/modules/tinycontent/index.php?id=30) and select a mirror to download CentOS from.

Member Avatar for JasonHippy
0
245
Member Avatar for johnray31

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 …

Member Avatar for np complete
0
1K
Member Avatar for rithish

What WaltP said. The division symbol you are using in the computation for "total" is wrong... :-)

Member Avatar for _avishek
0
100
Member Avatar for Ryan_1

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 …

Member Avatar for caperjack
0
85
Member Avatar for capton

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);`

Member Avatar for rubberman
0
230
Member Avatar for Pyler

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.

Member Avatar for rubberman
0
342
Member Avatar for ronnel09

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).

Member Avatar for rubberman
0
102
Member Avatar for lewashby

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 …

Member Avatar for lewashby
0
413
Member Avatar for triumphost

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.

Member Avatar for triumphost
0
222
Member Avatar for Pyler
Member Avatar for napninjanx

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.

Member Avatar for napninjanx
0
131
Member Avatar for manishanibhwani

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 …

Member Avatar for rubberman
0
147
Member Avatar for faithful4ever

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 …

Member Avatar for rubberman
0
66
Member Avatar for computerbear
Member Avatar for maamirq

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 …

Member Avatar for rubberman
0
28
Member Avatar for anjanikumar.tanti

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.

Member Avatar for rubberman
0
62
Member Avatar for dingjhzt

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 …

Member Avatar for rubberman
0
658
Member Avatar for GeneralUSA

Take it in for repair. Something is fried on the motherboard most likely, or the power supply is fubar.

Member Avatar for rubberman
0
285
Member Avatar for PhilEaton

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 $$ …

Member Avatar for PhilEaton
0
160
Member Avatar for JTate89

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.

Member Avatar for lous39
1
279
Member Avatar for LestTurk

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.

Member Avatar for zimbrax
0
280
Member Avatar for hypernova

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 …

Member Avatar for danieljacob344
0
327
Member Avatar for hesham.soltan.10

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 …

Member Avatar for caperjack
0
163
Member Avatar for Eidolon

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 …

Member Avatar for shah1herry
0
158
Member Avatar for lewashby

Take it into the computer shop. If they can't get it to work properly, ask for your $$ back.

Member Avatar for David Elder
0
204
Member Avatar for vedro-compota

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 …

Member Avatar for rubberman
0
2K

The End.