5,331 Posted Topics
Re: 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()`. | |
Re: G-SOC == Google Summer of Code. Try this site for more information: [url]http://www.google-melange.com/gsoc/homepage/google/gsoc2012[/url] | |
Re: 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 … | |
Re: 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, … | |
Re: 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. | |
Re: 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 … | |
Re: Except it should be [icode]char *str[] = {"hello","my","name","is","tubby"};[/icode] :-) | |
Re: 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 … | |
Re: 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] | |
Re: 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 … | |
Re: 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 … | |
Re: 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] | |
Re: 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. … | |
Re: Quote: If you don't ask, don't expect an answer! :-) You asked, you were answered. | |
Re: This is probably due to how you have configured your USB setup in the BIOS. Whatever it is set to, try the opposite setting. | |
Re: /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? | |
Re: 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; … | |
Re: 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. | |
Re: [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? | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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, … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: For root access, try "sudo su", or "sudo su -". The first preserves your environment variables, the second does not. | |
Re: 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 … | |
Re: 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 … | |
Re: 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? :-) | |
Re: 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 … | |
Re: Did you place it in the EXACT same location in the file system? | |
Re: 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' … | |
Re: 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! :-) | |
Re: 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 … | |
Re: [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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: What do YOU know about pagination? Don't ask for the answers. Ask questions that will help you find the answers on your own! |
The End.