5,331 Posted Topics

Member Avatar for slaythezeppelin

Try a different name, such as `myReadFile()` instead, as this may be conflicting with some other function of the same name. Alternatively, you might try placing the `using namespace std;` directive before the declaration of `readFile()`.

Member Avatar for rubberman
0
165
Member Avatar for gourav1

G-SOC == Google Summer of Code. Try this site for more information: [url]http://www.google-melange.com/gsoc/homepage/google/gsoc2012[/url]

Member Avatar for gourav1
0
412
Member Avatar for Torf

1. Read line into buffer. 2. Use strtol() to read string into number (integer) variable. Example: char buffer[1024]; char* p = 0; int value = 0; istrm.getline(buffer, 1024); value = (int) strtol(buffer, &p, 10); istrm is an input stream that you can read a line from. The strtol() function will …

Member Avatar for Torf
0
195
Member Avatar for balajirs

These are system functions related to setjmp/longjmp instructions. They are probably part of the glibc library (just a guess). Look on the GNU web site (gcc) for the source code. According to the comments in /usr/include/ucontext.h (the header file for these instructions), it is part of the GNU C library, …

Member Avatar for balajirs
0
225
Member Avatar for artan8

Asking us to solve your homework assignment is cheating! You need to make the first step / effort to solve / answer the question, and then we might help you.

Member Avatar for PrimePackster
0
160
Member Avatar for MasterHacker110

Most any current distribution will work fine on this, even though the CPU is a bit pokey. Try Linux Mint (derived from Ubuntu, which is in turn derived from Debian). If you want a Red Hat Enterprise Linux (RHEL) system, you can install either CentOS or Scientific Linux (SL), which …

Member Avatar for bondo
0
233
Member Avatar for tubby123
Member Avatar for thorpntell

Next time, try some indentations. It makes things a LOT easier to read! [code] #include <stdio.h> int main( void) { int s; // scanf return status double d, y1, y2, tz, tz2, t1=0, t2=1; while( 1) // until end-of-file or error { s = scanf("%lf",&d); // scans for given values …

Member Avatar for rubberman
0
152
Member Avatar for ThomsonGB

Well, the compiler should have complained that you were assigning a string constant to a non-const pointer (char* guidStr). The initialization should have been like this: [icode]char guidStr[] = {'{','0','0','0','0','0','0','0','0','-','0','0','0','0','-','0','0','0','0','-','0','0','0','0','-','0','0','0','0','0','0','0','0','0','0','0','0','}',0};[/icode]

Member Avatar for rubberman
0
629
Member Avatar for ChrisMackle

Too long? yes! Step 1, describe what the game does. Step 2, tell us what is not working right. Step 3, post only the relevant code (class structures help as well). In your case, you are including a lot of timing and other cruft that is probably totally unnecessary to …

Member Avatar for rubberman
0
326
Member Avatar for paulas24

There are a number of CD/DVD burners for Linux, including Brasero as mentioned, as well as K3b. I generally use K3b because it gives me better control over disc write speed and other factors than Brasero does. Both of these tools use command-line programs under-the-covers such as mkisofs, which is …

Member Avatar for rubberman
0
197
Member Avatar for vinod tik

Basically, you need to restore the master boot record. Here are a couple of links that help: [url]http://pcsupport.about.com/od/fixtheproblem/ht/repairmbr.htm[/url] [url]http://ubuntuforums.org/showthread.php?t=622828[/url]

Member Avatar for flagstar
0
284
Member Avatar for Vampiricx3

Most any current distribution is suitable for learning how to program in Java and/or C/C++. My personal preference (personal, and preference) is to use Red Hat Enterprise Linux, or clones thereof (CentOS or Scientific Linux). In fact, I use all three, and I have used Ubuntu extensively in the past. …

Member Avatar for jbennet
0
289
Member Avatar for qazqaz

Quote: If you don't ask, don't expect an answer! :-) You asked, you were answered.

Member Avatar for rubberman
0
302
Member Avatar for emorjon2

This is probably due to how you have configured your USB setup in the BIOS. Whatever it is set to, try the opposite setting.

Member Avatar for jbennet
0
276
Member Avatar for HoneyBadger

/dev/sdb tells me you are running a Linux system, not windows. And dban is a "secure" disc wiper program. Finally, /dev/sdb is not necessarily a USB device. Since nothing in your post indicates that this is a USB device, why did you make that assumption?

Member Avatar for JoshuaReen
0
1K
Member Avatar for freedomflyer

In your BSTNode<T> assignment operator you have a serious leak. And the solution is not simple unless you create a BSTNode<T> copy constructor so you can do this: [code] BSTNode<T> & operator=(const BSTNode<T> & other) { if(this != &other) { // First, clean up old values. delete value; delete left; …

Member Avatar for mike_2000_17
0
595
Member Avatar for McLaren

I think postgresql on Windows is one of those things where you have to reboot the computer after you uninstall it so it can deal with the background services it starts.

Member Avatar for McLaren
0
839
Member Avatar for zina_a

[url]http://www.net-snmp.org[/url] [url]http://www.net-snmp.org/docs/man/snmpwalk.html[/url] [url]http://www.net-snmp.org/wiki/index.php/TUT:snmpwalk[/url] BTW, what version of snmpwalk are you using?

Member Avatar for rubberman
0
50
Member Avatar for poovalingam.msc

Simple enough. 1) Reinstall the Windows MBR (master boot record). 2) Use fdisk to remove the Linux partition. 3) Use the Windows disk manager to merge the partitions. Since this will change the system signature pretty significantly, Windows will have to re-authenticate itself with Microsoft on the next boot.

Member Avatar for jbennet
0
222
Member Avatar for Scott Davis

So, you switched from 230v to 110v, or 110v to 230v? If 110v to 230v then cooked motherboard is what you have. Do you want fries with that? :-( When you switched it and turned it on, it is likely the voltage to the system was too low and as …

Member Avatar for benmar
0
263
Member Avatar for vijay496

You figured out diff just fine - differences between two files and/or directories. Read the man page for more info: man diff As for git, that is an entirely different animal. There are a number of source control / configuration management systems available for Linux and other operating systems, such …

Member Avatar for rubberman
0
195
Member Avatar for CityThrille

What's in a name? Nothing. Format and/or set the label for the drive to whatever you want. Then safely remove it, plug it back in, and the new name/label should appear with the drive icon. A lot of thumb drives are identified as "Generic USB Flash Device", or similar. Don't …

Member Avatar for caperjack
0
451
Member Avatar for CityThrille

Windows does this when copying large amounts of data to USB flash devices and thumb drives. I have experienced this frequently on my Windows 7 work system. I think that it is not responding properly to buffer-full conditions on the flash device. I remove the drive, and plug it in, …

Member Avatar for rubberman
0
276
Member Avatar for luiseduardo14

Well, I haven't written an x86 boot loader since about 1986 or 1987... Since there isn't anything at line 29, the assembler has probably skipped over the empty lines, meaning that the error is really at (just a guess) line 34 or 35 in your code. However, I see that …

Member Avatar for NotNull
0
360
Member Avatar for aabi

The desktop is your GUI. If you have access to your task bar, and other programs, then the desktop is working. I think you have inadvertently changed some desktop settings. What happens when you right-click on an empty portion of the screen? Do you get the menu with the entries …

Member Avatar for judan
0
578
Member Avatar for C++ programmer

1. Purchase a USB docking station or enclosure for the drive. 2. Plug it into the system. 3. Go to the (assume you use Windows) disk manager tool and remove any old partitions. 4. Add a new NTFS partition. 5. Format the partition, selecting the "full" vs. "quick" option (or …

Member Avatar for Marseline
0
219
Member Avatar for varundeveloper

My guess it that the port you want to use is the one used by the modem for remote access/diagnostics. You can either select another port, or alter the router's settings so that remote access to the router is disabled.

Member Avatar for rch1231
0
282
Member Avatar for CzechRock3

Are you running Windows 7 or Linux? Also, what version of Java did you try to install, and was it from Oracle? FWIW, I have a system with a very similar hardware configuration and Java runs without problems at all both with Win7 and Linux.

Member Avatar for RTFMID10T
0
156
Member Avatar for Fitchie

Well, at least you know that the port does work. Sorry but I'm not a Python programmer, so I can't tell you if there is a problem with the code. In any case, you should NOT have needed to create the device node for /dev/ttyS0 - that should by default …

Member Avatar for Fitchie
0
302
Member Avatar for HoneyBadger

Right-click on the speaker icon in the top menu bar and select "Sound Preferences". Click on the Hardware tab and select the hardware you want to use. Ditto for the Input and Output tabs. In the Hardware tab, select the appropriate profile for the external speakers, and then you can …

Member Avatar for HoneyBadger
0
227
Member Avatar for davi0011

What OS are you running? If Linux, then I recommend using the proprietary nVidia Linux drivers, rather than the default open source Nouveau nVidia driver, especially if you are going to run videos, games, or other graphics-intensive software.

Member Avatar for davi0011
0
267
Member Avatar for Karlwakim

Bogus info, AFAIK! Avast has been around for quite awhile, and has been considered one of the better A/V programs out there. I haven't used it myself, but I think that if such rumors are circulating, that you should, until you know otherwise, take them with a very large grain …

Member Avatar for rubberman
0
90
Member Avatar for Karlwakim

Not really. There are many reasons why a process may be started without your input, so to speak. In Unix/Linux terms, these may be daemons - processes that run on a regular basis in order to do system cleanup/maintenance duties, or to provide other services. The explorer.exe process for Windows …

Member Avatar for Karlwakim
0
194
Member Avatar for alaa sam

For root access, try "sudo su", or "sudo su -". The first preserves your environment variables, the second does not.

Member Avatar for alaa sam
0
408
Member Avatar for scarcella

FWIW, C++ and PHP have very similar constructs and syntax. Get a C++ reference book, such as Ellis and Stroustrup's "Annotated C++ Reference Manual" (ARM for short). Stroustrup was the inventor of C++, so you can't go wrong there! :-) I have two copies on my bookshelf - one is …

Member Avatar for Keeame
0
153
Member Avatar for Classified64

Well, I'm not sure I'd go as far as Rik and accuse you of downloading "illegal" software, but it appears you were infected with a virus. Rolling back the system probably removed them, as should have the Malware Bites A/V software. Consider yourself lucky if that is all that happened …

Member Avatar for Rik_
0
367
Member Avatar for agieli

Well, in order to map a bt device in two dimensions, you do need two sensors (radios) in order to triangulate their position. So, perhaps it is time to learn how to do some programming? :-)

Member Avatar for rubberman
0
309
Member Avatar for dhruv_arora

So, what does the linker documentation say that an Error 3 represents? If there were no compilation time errors, then this is probably a linker error, as your title to the post suggests. You could try installing cygwin, and using their gnu compiler to build this. Gnu compiler tools tend …

Member Avatar for rubberman
0
118
Member Avatar for Waldek
Member Avatar for rubberman
0
157
Member Avatar for hwoarang69
Member Avatar for hwoarang69

The num[] array is a local variable to main(). You need to make it global for this to work. Just move the declaration outside of main, as in: [code] void test(char[]); void test2(char[]); char num[10]; int main(void) { test(num); test2(num); } void test() { num[0] = '1'; num[1] = '2' …

Member Avatar for rubberman
0
138
Member Avatar for chelboy_jr

There are no end of choices for this project. What do YOU think may be interesting and important? Find a topic that interests you, and do the best job you can on implementing it. That's the only way to an 'A' grade that I know of! :-)

Member Avatar for rubberman
0
211
Member Avatar for aven2ra

Well, when working as a consultant and computer security professional (back to employed status as Senior Systems Engineer for tier-one mobile phone company), I would always use a Linux system to scan and disinfect Windows drives, and never was not successful in doing so. However, I would use 2-3 different …

Member Avatar for crunchie
0
319
Member Avatar for boyisgentle

[QUOTE=jbennet;1634493]I have a similar video card (its the one that comes in core i3 - based laptops) I couldn't get it to work under RHEL 6 when it was newly released but it worked out of the box in 6.1 - so maybe you should try to update?[/QUOTE] The latest …

Member Avatar for rubberman
0
1K
Member Avatar for omegaunit

A number of keyboards are "user programmable", by hitting various keys. Go to the Dell web site and see if there is a "reset" sequence available to reset the keyboard to factory settings.

Member Avatar for M.B.
0
275
Member Avatar for java_programmer

From the bash man page about the read command: [quote] -p prompt Display prompt on standard error, without a trailing newline, before attempting to read any input. The prompt is displayed only if input is coming from a terminal. [/quote] It may be that since you say it works when …

Member Avatar for rubberman
0
166
Member Avatar for sonal_salkade

This is NOT a shallow subject. What are you MOST interested in learning about? For general knowledge, you can find out a lot on Wikipedia, but for more in-depth knowledge, that requires extensive study. I've been working professionally with this stuff for 30+ years, and am still clueless about a …

Member Avatar for jbennet
0
137
Member Avatar for glut

Every processor has an instruction set. One common one is to take the contents of one register (a bit of named memory in the processor), and add that to the contents of another register, placing the results in a third register. It doesn't have to do it that way, but …

Member Avatar for jbennet
0
139
Member Avatar for rutwvu

What do YOU know about pagination? Don't ask for the answers. Ask questions that will help you find the answers on your own!

Member Avatar for rubberman
0
207

The End.