5,331 Posted Topics
Re: It was probably installed somewhere else, and the old version is found first in your PATH environment. | |
Re: It requires an argument that is an object of type Picture. You are calling the method without any arguments, and while the class writer could have included a version of the method that takes no arguments, they did not. As a result, the compiler is telling you that you are … | |
Re: Some compilers will co-locate string literals that are "equal" at the same address. However, this is not required, and a lot of compilers do not do that. So, the comparison that you are doing is comparing two pointers (addresses) that are not necessarily equal, and are not in your situation, … | |
Re: It is difficult to read this. Consulting the site's guidelines on how to post source code. Here is an example: ~~~ // This is a comment // Here is some code for (int i = 0; i < 1024; i++) { if ((i % 100) == 0) { cout << … | |
Re: Actually, your code should be: while (file.good() && !file.eof()) { char buffer[MAX_LINE_SIZE + 1]; file.getline(buffer, MAX_LINE_SIZE); } The signature for getline is this: istream& getline (char* s, streamsize n ); There may be other issues, but this stood out. | |
Re: This is why I run Linux on all of my systems, and only run Windows in a virtual machine. I install all the Windows cruft that I want, and then take a snapshot of the virtual system. If I get a virus, I just restore to the snapshot - bingo, … | |
Re: You need to restore the Windows boot loader, which you can do if you boot from the installation disc and go to the repair/recovery mode. Then, you run the commands from a cmd.exe command line "fixmbr" and/or "fixboot". Here is a link to an Ubuntu How-To posting about how to … | |
Re: The onboard flash memory battery has probably died. Can you boot into the BIOS? If not, then you need to replace the battery (a silver-dollar looking thing in a carrier on the motherboard), determine which are the reset jumpers on the motherboard and short across them (the instructions should be … | |
Re: If it is physically write-protected, then you are SOL. If it is software write-protected, then you should be able to disable the write-protect settings. | |
Re: See the C function getopt(). Alternatively, iterate over the argv[] array passed on the command line to main(int argc, const char* argv[]). If you don't know about this stuff, you have some studying to do before you try to solve this assignment. | |
![]() | Re: It depends upon the operating system that this device is running. If it is running OpenWrt, then this may help: http://wiki.openwrt.org/doc/recipes/3gdongle?s[]=3g&s[]=usb&s[]=dongle ![]() |
Re: FWIW, the XOR operator is ^ as in (0xCAFEFACE ^ 0xECAFEFAC). The | symbol is the OR operator. | |
Re: What gusano79 said. A header guard is something like this: #ifndef MAIN_H #define MAIN_H // Contents of file below. . . #endif /* MAIN_H */ This will keep the header contents from being processed more than once, even if included in more that one other header file that you are … | |
Re: Gaming-oriented computers tend to have high-end processors, video chip sets, and lots of memory. These are good things if you want a high-end development system. This is kind of what my company provides its software engineers for their laptops, a system with: 1. An Intel i7 dual core 3.2GHz hyperthreaded … | |
Re: I look at PhP as a scripted version of C++. My advice (just off the top of my head) is to code it entirely in PhP. | |
Re: Time for you to go to the Oracle Java pages and start reading some of the docs and how-to's. | |
Re: Web application server such as Tomcat, javascript and/or php for the application, which can easily access the MySql database. Do some google searching - there are a lot of open source applications out there that do similar stuff which you can investigate for code and ideas. | |
Re: The original INT 13h was for a real-mode system. Once the operating system has booted into the OS these days, unless you are running MS-DOS/FreeDOS, et al, you will be running in protected mode. You need to check your OS documentation to see if INT 13h will still work for … | |
Re: When you installed the system, you were able to tell it to sync to the hardware clock, which in the case of a virtual machine, would be the host clock. You can still do that via the System->Preferences menu. | |
Re: If you use the standard BIOS and boot loader, then you are limited to 4 primary partitions, just like other operating systems. If your system supports EFI/UEFI then you can use a more modern boot loader with much expanded partitioning options. However, even with a standard PC BIOS, Linux can … | |
Re: The large buffer is causing you to crash because it is being allocated on the stack and you don't have enough stack space. If this is Linux/Unix you can fix that with the system ulimit command, unless the sysadmin has restricted you in some way. In any case, this is … | |
Re: Why not install and use Linux? You can boot a Linux live cd/dvd drive, mount your Windows file system, copy your data files to a thumb drive, and then install Linux - it will happily reformat your drive, removing all trace of your virus, and you can use OpenOffice or … | |
Re: Netbeans is just pure java code. It is neither 32-bit nor 64-bit. The jdk executables that you installed are 64-bit, so your java programs can access more RAM and such. I use 64-bit Java daily in my position as senior systems engineer for a tier-one mobile phone manufacturer, both on … | |
![]() | Re: So, your c++ code needs to open and read the XML file, and then prints out the points in the specified format. To do this, you need to either write your own parser, or you need to use a standard XML parser that can read the file and put the … |
Re: When this happens with Linux, one generally boots with a recovery or live cd/dvd/usb drive and then run fsck on the partition that is bad. That will fix the file system. If the boot sector has gone bad, you can restore that with the fdisk program on the live/recovery system. | |
Re: How you do it depends upon whether you just need serial input/output, or if you need some random access to the data. If you need random access to the data, then as Ancient Dragon said, you need support for files >4GB (maximum a 32-bit offset can handle. Current Linux systems … | |
Re: By "new setup" I presume you mean you have a new router? If so, what is the router/gateway address, and what is the NAS address? You may need ot change the NAS address if it is static. | |
Re: Re. cscgal: amen to that! Poster has to make the first effort to solve the problem. Then we may decide to help out... :-) | |
Re: A fall like that can easily flex the circuit board(s), causing a break in a circuit trace. You need to take this to a competent hardware diagnostic center. It may be fixable, but it may not be. In any case, take the system drive out, plug it into a docking … | |
Re: How are you determining this amount of RAM? Post the output of the "free" command here. | |
Re: Have you tried using the sudo command, as in "sudo su"? If it asks for your password, input your user password. | |
Re: If you don't have root access, an administrator's account, and are not in the sudoers list (/etc/sudoers) then you are not out of luck, but you are going to need to do several things to get access to the other 130GB of disc space. To do that you will need … | |
Re: What does a locked grub boot loader have to do with using the terminal? If you boot from a live CD/DVD/USB drive and login, you will get a GUI desktop. From that, the terminal program should be available either as an icon on the top menu bar, or as a … | |
Re: Normally, a Linux system will automount a usb drive when it is detected, although settings in /etc/fstab can override that. Post the contects of /etc/fstab here. | |
Re: How is the KVM switch connected to the computers - via PS/2 keyboard/mouse ports, or USB? Also, given that this problem affects all of the PCs attached to the KVM switch makes me think that the problem is related to the switch; however, have you tried a different keyboard? | |
Re: I suppose that if you want to call a different version of a constructor inside another of the same class, that you could, although it is HIGHLY ill-advised! So you could do something like this, I suppose (danger Will Robinson!): [code] class ClassX { private: int knit; int perl; public: … | |
Re: You pointed the pointer (sic) to an external variable, which won't go out of scope until the translation unit (source file) terminates. The variable itself will terminate when the function is finished, but the external variable glb1 will retain the value you set inside the call fnCall2(). | |
Re: So, you would like us to solve your homework for you? Do we get your degree when you are finished with school? Make an effort to solve this on your own first, and then we might think about helping you! | |
Re: You still need to post your new code base. | |
Re: So, WinXP works, Win7 does not, correct? If so, then check your network settings for TCP/IP to make sure you are getting a proper DHCP address from the school's network infrastructure, or has a valid static IP address. Look at the XP network settings that work, and make sure your … | |
Re: Physical address == MAC address - hardwired into the NIC (network card). If you mean your IP address, then either you are not getting a DHCP address from your router/DHCP-server, or if you are using a static IP address, then your network configuration is FUBAR. Is this a Windows system, … | |
Re: We have a similar setup at my place of work. Sometimes, network access points and/or routers have problems. We had such a situation today at work, very similar to what you are experiencing. So, contact the university IT help desk (you have a contact for them, right?) and let them … | |
Re: Please describe your problems. Just saying that "it is having serious trouble..." is not particularly revealing. | |
Re: Are you sure this is not a checksum? Have you ever worked with magnetic strip readers before? I have, and usually there is a checksum appended to the data stream, unless you have configured the hardware to leave it off. In any case, the reader should still validate the checksum, … | |
Re: To see all partitions on all discs, run the command "fdisk -l". | |
Re: I usually use the "less" command, which will let me look at the file, and optionally edit it if I want. | |
Re: Check out the inotify system services. They let you be notified when a file/directory has been changed. See the inotify man page: man inotify | |
Re: A steady 5v or 0v signal is not a standard RS-232 signal. First, you need a specialized driver capable of detecting that the voltage change is valid and not just a transient glitch (not uncommon), and then passing the appropriate information to the user-space application (java in this case). Honestly, … | |
Re: Well, JMHO in that the new "standard" is fine, but you should still support the old bbcode blocks. |
The End.