5,331 Posted Topics
Re: We don't do your homework for you. We will help you when you have tried, and then post your code here. Just asking for help is not asking for help. It is asking for someone to do your thinking for you. Not going to happen! | |
Re: You expect us to analyze and comment on 300 lines of code and output? Someone perhaps will, but it won't be me. I see a lot of issues with your code, most of which is just silly stuff. You look at it again, with a critical eye and the lessons … | |
Re: Dell makes some nice laptops for this use. I prefer them to HP because in my experience they have been better at support. Given that my last Dell laptop was purchased in 2006 (9 years ago), my experience is not current... :-) One thing they do provide is an extended … | |
Re: I love this quote from the M-DISC web site: "This new standard of storage engraves your information into a patented rock-like layer that has been proven to last 1,000 years"... Well, since electronic computers have only been around for a number of decades, this seems a bit of a boast, … | |
Re: I have written such in C back in the 1980's. It was not only a movie database (that was part of it), but it was a full video store management package, integrating register, scanner, price lookups, rentals, purchases, etc. | |
Re: Nothing beats study, effort, and try, try again to learn difficult new concepts. As James said, we DO NOT do your homework for you. Maybe you are in the wrong study area if you are unable to learn basic programming concepts. As a sop, this is how a loop works: … | |
![]() | Re: You also don't declare the type of the variable "file". That, and you should NOT use NULL in C++ except for `void*` types. Use 0 instead. That is valid for any type of pointer. Some compilers will complain about that, especially if warnings are enabled. |
Re: There are restricted versions you can get from Microsoft directly that are free, but the professional and enterprise versions are only available by paying a lot of $$. Please do NOT ask us to provide you with any proprietary software like this, free or not. We'll provide links to where … | |
Re: C++ allows default values in the declaration/definition of a function, so if there are such, you can leave the ones with defaults out of the call if the default is valid. Example: #include <iostream> using namespace std; // Declaration - may be in a header file. int someFunction( int a, … | |
Re: The usual answer is "it depends". Laptops typically use a 2.5" HDD sata drive format. You can install a large (up to 1TB at least) HDD or SSD in place of the SSD that is provided, but you will have to re-install the OS, which if Windows means that you … | |
Re: "Java is to JavaScript as Car is to Carpet." Myself, I would reverse the nouns, as in "Javascript is to Java as Carpet is to Car." :-) | |
Re: Business is business. Some are good at it. Others not so. That said, it is possible to write your own software, especially for mobile apps, and have it sold for you in the mobile device app stores. The cost to entry is not too high, and if your app gets … | |
Re: Viruses that infect a virtual machine should only affect that virtual machine, unless it has some network connection to the host that can let the virus propagate to the host (rare). If your host is Linux, and the VM is Windows, this is unlikely. I use VirtualBox for this sort … | |
Re: Having multiple readers of a table simultaneously is not a problem and you should not try to lock the table. Having one read it while another is trying to write to it is another issue. Most database implementations will deal with this automatically. If one is updating, but another tries … | |
Re: To quote myself - "We don't do your homework for you!". Until you make an effort, post the code here, and let us know what errors or issues you have, don't expect much... :-( | |
Re: Just remember, we don't do your homework for you. Post your best-effort code and we will critique it and help you fix it, but don't expect us to do it for you. | |
Re: To see what is going on, before line 8, put in a printf statement that will output i and j. That may help you see the behavior of the algorithm. IE: int i = 1; while ( i < 10 ) { int j = 10; while ( j > … | |
Re: C++ is derived from C, and is fully compatible with C code. It has added classes, templates, references (vs raw pointers), and a number of other advanced programming features that allow you to write very complex programs much more quickly and with less code that it would require in C. … | |
Re: Also, normally we don't do your homework for you. Of course, you still need to initialize your variables to a sane value. I think Moschops is leaving that exercise to you... :-) | |
Re: What ddanbe says. For #2 you need to change the language to Norwegian so it will deal with the extra letters, accents, and such. | |
Re: PAE - Physical Address Extension - this allows your computer in 32-bit mode to access more than 4GB of RAM, although each process is still limited to that. SSE2 - Here is the Wikipedia article on that: https://en.wikipedia.org/wiki/SSE2 NX - No Execute instruction - helps protect your system from malware. … | |
Re: And don't forget to stick your tongue out and flap your arms vigorously while you reboot! Sorry, I couldn't help myself after these other responses! Do let us know WHAT you need help with. We are not mind readers, but we will do what we can to help you if … | |
Re: I write quite a bit of Java, and learned about it from the inventor, James Gosling, back in 1995 I believe, at a Boston IEEE Conference. I even got an "official" Java coffee mug from him! Personally, it is a PITA! The standard garbage collector sucks, and the lack of … | |
Re: What Suzie999 says. Don't ask stupid questions until you have exhausted standard search tools... | |
| |
Re: XML is frequently used to serialize objects and such these days. There are many packages that will help you with that for Java, C, C++, and other languages. And don't forget, you still need to de-serialize it at the other end of the connection. This may not be trivial. | |
Re: One is positive, the other negative. Positive and negative charges attract each other. Spyware helps sell antivirus software. Bingo! No spyware... No antivirus! Myself, I run Linux on all of my personal systems, and Windows only in a virtual machine. I have never had an issue with spyware/malware on Linux. … | |
![]() | Re: Loops have an implicit goto when the terminating condition is met, but it is a compiler construct. Goto's have often been used in lieu of exceptions to break out of a bit of code when an exceptional (bad) situation has occured. These days, most modern languages have exception handling, so … |
Re: We can't help until you tell us what your problem is. You have clearly delineated what you need to do. What have you done so far? What problems have you encountered? Are you clueless about Perl? If so, there are abundant documentation and tutorials on the Internet for you to … | |
Re: Making programs in C++... Gee, after 25+ years of C++ programming, I don't know. What tinstaafl said - try some Google searches. There are a lot of good books out there, especially those written by the author of C++, Bjarne Stroustrup. | |
Re: This is either a recovery system bug or the results of a corrupted image (such as a failing hard drive). I would guess the latter. Bug HP for new installation media and a new hard drive. If the system is still under warranty it may not cost you anything. If … | |
Re: For a bootable image, you first need to write a boot loader. Not too hard - I've done it in the past. The boot loader executes the code found, then relocates to the actual system image to continue. Then it jumps to the actual system code. So, it is a … | |
Re: Why are you worried? Do you think someone is hacking your keyboard/computer interactions? Yes, that is possible, but really unlikely unless you are up to something that the government is worried about, or someone is trying to steal information from your company. A friend of mine developed a high-security Tempus … | |
Re: This is a MS API question, and not relevant generally to C++. We would need to know in detail what the SelectObject() function is doing, and that is not in the pervue of C++. It is specific to the MS API's. Read their documentation for more information would be an … | |
Re: Also, I think you are passing the array in by value (copy) so it won't be visible outside of the function. You need to pass by reference as in: `void mulTable(int (&arg1)[50][50], int r, int c)` | |
Re: Contact Adobe support. I'm not sure this version of OSX (latest probably?) is currently supported. In any case, do that, and I will contact the Adobe Creative Cloud support group this week to see what the situation is with regard to Yosemite. As I am an Adobe employee, this may … | |
Re: Networks don't usually crash unless a switch, router, or proxy server goes down. If a switch fails, then all the systems connected to it will not be accessible and they will not be able to access the rest of the network or the Internet. You can install more than one … | |
Re: School/class assignment? Do work first. Post work here. If appropriate, we will critique and help you. | |
Re: Since this is coming from systemd, I have to assume you are using a new/bleading-edge distribution? Please provide more system information. | |
Re: Actually, most current processors support process segregation, but the OS has to utilize it. Most do these days, including Unix, Linux, and Windows (since Windows 2000). You don't want processes to be able to access memory and other resources in other processes as that would allow them to, accidentally or … | |
Re: Yes, on both 32 and 64-bit systems, usually an int is 32-bits, but in your 64-bit system, you need a 64-bit integer, which is a long in the 64-bit system, and long long in a 32-bit one. The long long distinction is currently irrelevant on 64-bit systems, but that may … | |
Re: @Nathan If they weren't open then I would expect the input and output operators to throw an exception. @markdean1989 What output do you get if you use cout instead of outfile for the output stream? Do you get sensible values for mathgrade, scigrade, and average. Do you get any output? … | |
Re: It's all in the physics - acceleration, inertia, vectors. So, if you want help, or some criticism, post your design here. My wife is a particle physicist. I am an EE and software engineer. My grandson designs robotic aircraft that can self-navigate a course and land autonomously - he does … | |
Re: @Mike2k My grandson is a prodigy, though he has finally hit adulthood (21 this year). At 8 years old he rewired my daughter's kitchen radio in order to receive transmissions from his kid walky-talky in the back yard ("Hey mom, can you bring me some lemonade?"). He designs and builds … | |
Re: Without access to the rest of your code I can only say that yes, you could be dealing with a thread race condition here. You might want to consider using a mutex that will keep a second thread from starting if the previous one has not yet terminated. | |
Re: A self-healing OS? Sounds like a great subject for a PhD thesis in Computer Science. Personally, I don't know of any currently, although the QNX operating system is as reliable as they come, and if any driver or other service (other than the real-time micro-kernel) fails, it can be replaced … | |
Re: Nobody really gets this correct. Microsoft certainly doesn't get it right, and Linux engineers are not much better. There are too many factors such as system load, I/O loads, disc read/write speeds, is the source file on one disc and the target on another or the same disc? What are … | |
Re: Show the C and your C++ code. C++ is C with classes, and some other stuff, like differing syntax for input/output functions. Without code, there is no way to answer your question. FWIW, you can execute your C code if compiled with a C++ compiler, with some minor caveats. The … | |
Re: There are experimental systems that support distributed RAM, but bear in mind that they have horrible latencies since they have to operate over the network. With the faster networks we are getting today, such as 10Gbps switches and NIC's, this may become more mainstream in the future, but for now, … | |
Re: The minimum RAM is 512MB and minimum recommended is 2GB. That is basically for the database server. You should double that to 4GB in order to avoid virtual memory swapping. I assume you are running the 64-bit OS and database server? If not, then upgrade asap! |
The End.