143 Posted Topics
Re: It's best to assume that we're all overly paranoid. I'm not going to download anything from your site unless you can prove to me that it's completely harmless. The best way to do that is to post code and ask a detailed question about that code [i]here[/i]. Otherwise, you probably … | |
| |
Re: > I have no idea what I'm doing. Clearly. You have serious design problems by using inheritance instead of containment for this project. It's much simpler if CartesianPoint (aside from being more concisely named) is a self-contained class, then Line and LineSegment contain CartesianPoint (henceforth to be referred to as … | |
Re: >> Theres not much diff between the 2. Only if you limit yourself to a tiny subset of C++ and use poor style in C. When used correctly and to their fullest, there's a huge difference between C and C++. >> plus what u use in c can be easily … ![]() | |
Re: Ouch. Sounds like a serious corruption. You can try a live Linux CD like Knoppix to recover the data, but it's possible that it's a loss unless you want to pay for expensive professional recovery. | |
Re: I don't think this is the right forum for your question, unless you plan on writing this program in C or C++. | |
Re: You seem confused about the difference between threads and processes. To use processes you fork a child from a parent and use one of several methods for inter-process communication. To use threads you say the magic incantation: [code] $ man pthread [/code] Multiple processes don't share memory, so you're required … | |
Re: When it comes to pre-configured retail systems, I've always stuck with [url=http://www.powerspec.com/]PowerSpec[/url]. Then again, it's almost always better to build your own. That way you have complete control over price, scalability, and power. | |
Re: Jedi Knight goes straight through a software or router based firewall, I've played every game in the series online and it never failed to work. But it does sound like you aren't getting out. Are you on a router or other hardware firewall? | |
Re: > Write down your favorite cp commands and what they do! ping! :) | |
Re: You know we're not going to do it for you, right? | |
Re: #1) I would recommend that you reformat the drive and reinstall. But, since that's #2, I'll just mention that there are Linux installations on live CD that you can run and have access to your drives. For example, in bad situations like this I would use my Knoppix disk for … | |
Re: Symantec can be a brute sometimes. Were you running a scheduled background scan or update at the time? Those two operations are the only ones that should take up so much of your resources, and it shouldn't last more than an hour on average, though that depends heavily on your … | |
Re: It's probably your ISP. If it happens again for any length of time, give them a call and see if there are any outages in your area. Otherwise, I wouldn't worry about it. | |
Re: I'm there regularly. Maybe you're just there are a slow time. :) | |
Re: Try opening the image using the software most likely to view it. If it looks great in photoshop, but like crap in a browser or other image viewer than you you should be the first to know. :) | |
Re: twm, just because it was the first one I got a feel for and I never bothered to switch to another. ;) | |
Re: Okay, rule #1 about dynamic content: Audio that you can't turn off is EVIL! Always give the client an option when it comes to potentially annoying features. The first thing I did when the page loaded was kill the browser. The second thing I did when the page loaded again … | |
Re: Maybe it's just me, but it seems like everyone is [i]trying[/i] to post in the forum that is least topical to their question. | |
Re: >>My ? is, do all webs get attacked all of the time???? Not constantly, but webservers get attacked on a regular basis, especially corporate webservers. If you plan on running a webserver, security should be one of your primary concerns. | |
Re: [code] template <> double ToDouble( double source ) { return source; } [/code] | |
Re: >> So I guess to answer my own question, 'yes, I missed something' Yes, but it's an easy mistake to make. Since string literals are of type const char *, and it's not possible to overload built-in data types, "F" + "F" is trying to add two addresses, which is … | |
Re: You're on the right track. Try incorporating a temporary link into your function rather than trying to work just with head and its next links. | |
Re: >> (certainly not C or C++). It looks like Managed C++. But I agree that this question would be better asked in a .NET forum. | |
Re: >> Why? Why not? It's concievable that there would be a default precision for the stream, one that would be valid everywhere so that it could be portable. It just so happens that that's the case. The default is 6: [code] #include <iostream> int main() { double d = 123.4567890123; … | |
Re: Is that the exact error or your rendition of the error? | |
Re: There's not a common base class for map and hash_map since hash_map isn't even a standard container and they aren't commonly implemented in remotely the same way. set and map might have a common base class, but that's an implementation detail that you shouldn't rely on because the standard doesn't … | |
Re: >> Are they the same? Kinda sorta, but not really. A switch is a control flow structure that directs execution through a certain block of code depending on an integral value. In other words, it's like door #1, door #2, and door #3 in the old gameshows. Those three doors … | |
Re: >> ccin.open(data.dat); I think you mean [code] ccin.open("data.dat"); [/code] >> getline(ccin,str);//the problem :( Looks okay to me. What compiler are you using? Can you give us a short and complete program to compile that gives you the error? Can you post the error? | |
Re: >> Here is the compile log from Dev-C++: That's assuming that Zackery doesn't have Allegro installed, which he probably does. Almost all of those errors and warnings have to do with you not compiling and linking correctly with a third party library. >> i dont understand how Its not wiorking … | |
Re: I have no idea what your question is. Can you state it in a different way? | |
Re: >> What are yours? Daniweb and newsgroups. My most frequently visited are comp.lang.c, comp.lang.c++, comp.lang.c++.moderated, and comp.std.c++. From what I've seen, the same people post to multiple forums, so there's really no need to visit more than one on a regular basis. | |
Re: >> can a context belong to more than one process? Why would you want it to? The context of a process is it's state at any given time. If two processes shared the same context then they would effectively be duplicates. That's not as useful as it may sound at … | |
Re: >> while (cin>> x >>" ">> y, !cin.fail()) Since you already know what the problem was, I'll tell you why it's a problem, just to be thorough. cin >> is strictly for formatted input. It doesn't accept formatting strings and it already skips whitespace by default. If you want to … | |
Re: Um, can you be more specific? It sounds like you want us to give you the full code for an FTP server for Linux, written in C. That's not a request that will ingratiate you to us. ;) | |
Re: Post some complete code that breaks under Dev-C++. It looks like you wrote what you think is the same thing as the relevant parts of the program, but since the code you posted won't compile even after removing the .... parts and adding necessary headers. And rule #1 when your … | |
Re: >> I thought cin.get() didn't work with strings... or am I wrong? What kind of strings are you talking about? C++ supports two types of strings: the C-style string that's just an array of char terminated by '\0', and the std::string class. You're correct if you mean the std::string class, … | |
Re: An access violation means your code is broken. Post the relevant parts of your attempt and we can probably help you fix the problem. | |
![]() | Re: This is a forum for programming help, not for hiring programmers. If you want someone to write this for you then you can get someone cheap at [url]www.rentacoder.com[/url]. It's pretty clear that you have no intention of learning to program to get this working, so your thread is off-topic. |
Re: No offense, though it will seem that way, but if you're incapable of even starting this then you probably haven't been paying attention in class. Why should we work to help you when all you seem to want is a handout? | |
| |
Re: The diagnosis is accurate for the most part. Shared memory can't handle non-POD types. You could write a special purpose allocator for your standard containers, and unshared proxy objects that refer to a reasonable representation of the data in shared memory for everything else. I don't have a lot of … | |
Re: If you really need dates beyond 2038, you have no choice but to avoid time_t and the standard functions, which means either hand coding the algorithms or using a third party library. That's the solution that people use when they need very old dates (where they discover the "Satan's armpit" … | |
Re: You're calling the default constructor, not the two argument constructor: [code] #include <iostream> #include <string> using namespace std; class baseType { public: void decToBase(int num, int base); void print(); baseType(int b, int d); baseType(); private: int decimalNum; int base; }; int main() { int d; int b; cout << "Enter … | |
Re: >> while ( ! file.eof() ) You shouldn't use <stream>.eof() as a loop condition. Because the eofbit is only set after a request for input has failed, you'll increment the counter once more than necessary if the last line contains the search string. A better way to read input is … | |
Re: >> what must be added to convert between 2 and 36? How about using all letters of the latin alphabet rather than just the first 6? | |
Re: >> i cant clearly get to ur point That's probably because the answer was assuming C++ when you clearly stated C. Arrays are just a bunch of blocks of memory strung together; you can fake a multidimensional array using a single dimensional array easily: [code] #include <stdio.h> #include <string.h> int … | |
Re: >> can anyone tell me what are the real time applications of C.? Take a look at any application you use. Chances are good that it's written in C, written in a language implemented in C, or written in a language derived from C. |
The End.