5,331 Posted Topics
Re: As indicated by deceptikon, with the leading double quote, it is legimate C++, but not GOOD C++ code. The newline tokens will not flush the output stream. Instead of the trailing "\n\n" tokens, it should be `<< endl << endl` which will cause the output stream to print the data … | |
Re: An approach I have used in the past quite effectively was to create an array with the data in the list, sort that, and then use the sorted array to recreate the linked list. Sorting a linked list directly is a real PITA, and AD's suggestion is one possible method. … | |
Re: Your question is not clear. What precisely are you trying to do? | |
Re: Good post Mike2K! Got an up-vote from me for that... :-) We run Linux servers for our production systems, exclusively, mostly CentOS 6.x - we have thousands of physical servers running in data centers world-wide, and thousands more running on virtual servers in the Amazon cloud. Windows? Well, it runs … | |
Re: Honestly, I do not recommend dual-booting operating systems. I have found it to be prone to serious problems. Myself, I use a virtual machine manager, such as VirtualBox, to create multiple virtual machines, with their own virtual HD wherever I want it. It preserves the fabled KISS principal. -) FWIW, … | |
Re: Not quite right JorgeM, I think! (Caveate Emptor). I think the poster is referring to an internet domain, such as xyzzy.com. He has registered his domain (xyzzy.com) and wants it to be visible on the general internet, correct gerhardus01? To do this, you need a static IP address from your … | |
Re: If you want to figure out how to write your on DOS (Disc Operating System), look at FreeDOS - an open source version of MS-DOS: http://www.freedos.org/ | |
Re: Personally, I think they should rename it as "Not-so-safe Mode"! :-) That is a good way to fubar your system... Hopefully you verified that this is not a file critical to other system functions? | |
Re: The open source MySQL database can handle this sort of load very easily. There is also PostgresSql which is more "Enterprise" capable. I use both, as well as Sybase and Oracle. For small Linux database loads, MySQL works very well! I use it to store system performance data in large … | |
Re: Your posts are not particularly enlightening (so to speak). I assume you are having difficulties starting your computer. Have you tried holding down the power button for at least a number of seconds until the light goes out? I had that problem the other day with my laptop, and that's … | |
![]() | Re: Too much code, and not enough information. What is the "drive" function supposed to do, for example? What do you mean by a "recursive" quick sort? Do you mean a reverse sort - largest to smallest? Or do you mean a recursive sorting algorithm? ![]() |
Re: @ Ancient Dragon I would suggest that the students vector be a static member of the Student class, although your suggestion is also valid. However, having it a static member of the Student class means that other classes and functions can access it, whereas if it is declared in main() … | |
![]() | Re: Yes, it is an instance variable, and only affects the instance you set it in. Make it a class static variable, and that should do what you want. ![]() |
Re: That's a good start on the Use-Case diagram. It still isn't complete. For example, in item #3, "Passenger seeks information on fare, train timings, and availability of tickets.", you only have one use-case, that of availability. So, go back through all of the points and make sure you cover all … | |
Re: As shown by Labdabeta, make sure you "guard" your header files from multiple inclusions. | |
Re: Try manually mounting the partition at /dev/sda4 without all the options you are using, but with a read-only option. What Linux OS are you trying to use to recover your data? I assume that you are booting from a Linux CD or DVD? Or is your system dual-booted? | |
Re: "Never mind - God I why do I always figures this crap out right after I post?" Probably because we all figure out our errors right after we ask someone about them - having a bit of time to rethink what we did... Welcome to the Homer Simpson Society "Doh!". … | |
Re: What James said. In addition, there are abundant sources of documentation on how to implement b+ trees on the web, and in printed books. Try some Googling on your own! This came up on a quick Google search for b+ trees: http://en.wikipedia.org/wiki/B%2B_tree | |
Re: Myself, I use Linux to create a system bit-image of both Linux and Windows system discs. I copy the image to an external hard-drive using the dd command piped to gzip to compress it, and if something mungs the system it is an image of, I can restore it pretty … | |
Re: Chimei is a major Taiwanese electronics manufacturer. Their monitors have a decent reputation, and I believe they have a good (3 year) warranty. If you can get one at a competitive price, it should do you well. | |
Re: What James said. Also, if we give you the code, do we get your degree? :rolleyes: | |
Re: It may be the swiss-army knife of modeling tools, but I have been working happily with Sparx Enterprise Architect (found at www.sparxsystems.com) for years. They fully support relational and entity-relational diagrams, as well as UML, and other design methodologies. They have a reasonably priced student license (assuming you are a … | |
Re: Go here for official nVidia GeForce driver downloads: http://www.geforce.com/drivers | |
Re: I have also found that if you go into the System->Preferences->Display page, you can usually get it to find the new display device (projector) and set that to be the output device, or set the display to mirror the output on both the laptop and projector at the same time. | |
Re: It looks like a fairly straight forward recursive algorithm. Work it through in words (pseudo code) what you need to solve it. | |
Re: Ah, prime numbers! One of my favorite subjects when I was studying public key encryption algorithms back in 1984-1985. I wrote some interesting prime factorization algorithms that were quite efficient so I could generate Goedel numbers from random strings, and extract the strings from the numbers in turn. Over the … | |
Re: Do I hear an echo, echo, echo? We don't do your homework for you... :-( | |
Re: What deceptikon is trying (in his inimcable way) that you need to first try to solve the problem, post the code here, and wait and see if we decide to help you... :-) We will, if you make an honest effort to work it out - we do NOT do … | |
Re: Was this a socketed chip, or soldered into the board? If soldered, did you do it yourself, or have someone else do it? Soldered chips in systems like this need to either be reflow soldered, or done very, very carefully. Myself, I can solder pretty well, but I wouldn't try … | |
Re: Good find caperjack! :-) Gets an upvote from me, and I work for Nokia Mobile Phones! :-) | |
Re: In C++, interface classes are pure virtual classes. There is no such thing as an interface class per-se in C++, unlike Java and some other languages. The advantage is that you can have default behaviors (not all methods need to be pure virtual) that can be used or overridden by … | |
Re: Show your code and logic, and then we may be able to help you get through the knottier parts. | |
Re: Note that the java compilers generally require that the last line is terminated with a new-line sequence. Try adding an empty line after the end of the code. Many C/C++ compilers have the same problem. | |
Re: As said, just install Linux (either on your HD or a virtual machine) and get started! You can ask for help here, or you can go to http://www.linuxforums.org/forum and post there - it is a Linux only forum (the other one I help on) and there are a LOT of … | |
Re: Burn and boot a live Linux CD/DVD image disc (a recent distribution that supports NTFS partitions). Then, assuming the disc is /dev/sdb (your normal system disc should be /dev/sda, but use fdisk -l to see for sure), use this command: fsck -f /dev/sdbN where N is the number of the … | |
![]() | Re: It all depends upon the word size of the architecture. A 32-bit system will be 4 byte aligned. 64-bits will be 8 byte aligned. This is a definite case of caveat programmer (programmer beware)! :-) A lot of new developers have been bit by this. |
Re: What operating system is this for? In any case, you can get it here: http://freecode.com/projects/minicom | |
Re: What deceptikon said. The window manager probably supports drag+drop, (pretty standard these days) but both source and destination applications have to handle the drag and drop events respectively, otherwise nothing will happen such as you want. "Wrapping" the application in another window buys you nothing. Even with C#, your application … | |
Re: A couple of issues. MPI is a parallel computation framework. Where do you distribute the work to other members of the computational cluster? What I see is what would run on one system (cpu/core etc). Anyway, go here for more help/tutorials and such: http://www.mcs.anl.gov/research/projects/mpi/ | |
Re: Mapping physical neural networks to computer constructs is PhD level R&D - some of the smartest people on the planet have been working on this problem for years. As I said in another thread, you do it, and then you get a Nobel Prize in Medicine... :-) I think that … | |
Re: What do you mean by "receiver"? Do you mean to be able to simply use it as a WiFi access point? This is not hard to do. I have done that with one of my Linksys routers. You disable the routing capabilities and the DHCP server, and connect it to … | |
Re: The images are too small and are unclear when expanded to a reasonable size. Please repost the images at a larger scale. | |
Re: Suzie is being nice to you - we are not supposed to solve your homework assignments for you, though I think she just gave you a foot up to help you get started. :-) | |
Re: You don't say if this is a Windows or Linux/other system? For Windows, both triumphost and Slavi have good suggestions. For Linux systems, both C++ and Java compilers are available in the standard package repository for your distribution. For a Windows IDE, some people like codeblocks. Myself, I prefer eclipse. … | |
Re: What is the map using for the key? The SN? If so, then it should be the last element in the collection, and you should be able to use the map::crbegin() method on the map (reverse iterator to quickly access the biggest SN since it will be the key for … | |
Re: There are a number of methods to do this. One is to create a chroot environment for each process. You can restrict precisely what applications can be run there, and associated them with specific system directories. This is somthing like what L7Sqr mentions about "sandboxing" the applications, instead of separate … | |
Re: N1GHTS has giving you a good hint. That said, we don't do your homework for you... :-( ![]() | |
Re: A complex number is expressed as a number with 2 parts, the real part, and the imaginary part. Usually both are notated as either floats or doubles. This means that the complex number is a structure, and your allocation is actually more or less correct in that you need to … | |
Re: This is getting tedious. DO NOT ask us to do your homework for you! | |
Re: Not only do a, b, and c need to be declared, they also (in Rahul47's example) need to be initialized to non-zero values. So, in your case, that IS the problem! :-) |
The End.