2,867 Posted Topics
Re: >Indeed breaking the rules of OO is a horrible thing. But that doesn't mean that there are cases in real life when you are forced to do that. Until we run into such a situation, let's not worry about it, OK? The point of this (homework?) was to learn how … | |
Re: [LIST] [*][B]Fact[/B]: The school had a policy defined beforehand, which stated that money had to be provided before a student got lunch.[/LIST][LIST] [*][B]Fact[/B]: The girl failed to provide the money.[/LIST][LIST] [*][B]Fact[/B]: The people serving at the cafeteria were jerks.[/LIST][LIST] [*][B]Fact[/B]: The girl should be happy to have anything at all[/LIST] … | |
Re: Dunno, maybe something like this? [code]out << *(obj.fl);[/code] | |
Re: Why are you using 2 separate functions to perform the recursion? Your comparison is likely to be what's causing the problem -- you can't just compare the starting memory addresses for 2 arrays to check if the contents are equal, you have to individually check each element. A few other … | |
Re: >What does QFT mean? [quote=http://en.wikipedia.org/wiki/QFT]"QFT", [URL="http://en.wikipedia.org/wiki/Internet_slang"]internet slang[/URL] meaning "quoted for truth". This term usually applies when a message is repeated for emphasis. It is also quite often used to mean "quit ***** trolling", which can cause confusion.[/quote] | |
[URL]http://gprime.net/video.php/magicmissile[/URL] | |
Re: It's rather odd the way the system freezes without an error message. Perhaps there's one in the logs. When you get to the recovery console, try typing the following: [code]dmesg | more[/code] Another good one is [code]syslog[/code] See if there's any odd error messages that would relate to the freezing … | |
Re: Except for the microscopic quick reply box, you're doing fine. :P But seriously, you are doing a very good job. Just look at the popularity of DaniWeb? Would 309,010 threads exist if you were doing a bad job? Davey has also been doing a good job, although it's sometimes hard … | |
Re: [quote=jbennet;316475]If your ipod breaks and you get a new one you have to pay to transfer your music licences to it[/quote] Not that I know of. From what I know, content purchased from the iTunes Store can be played on up to 5 computers at a time and an unlimited … ![]() | |
Re: Looks like you're not alone. [URL]http://lists.freedesktop.org/archives/xorg-bugzilla-noise/2005-March/007258.html[/URL] Try some of the configurations suggested there. If you're having trouble following the instructions, try posting part of your Xorg.conf file here so we can see what's going on. | |
Re: Although the [URL="http://www.spywaredb.com/remove-win32-ctx/"]Win32:ctx[/URL] sounds scary, it's most likely a [URL="http://forum.avast.com/index.php?topic=12408;prev_next=next"]false positive[/URL]. [url]http://www.avast.com/eng/faq_panda.html[/url] [quote]This a false positive detection caused by Panda's on-line scanner not encrypting its virus signature files. Active Scan is the folder created by Panda's on-line scanner you can delete the whole folder. Because of its location in the … | |
Re: There should be rules against flirting in the forums :D (j/k) Nevertheless, welcome. | |
Re: What a well-done music video. I'm especially amazed at how they got the rythm to work so perfectly with the music. I wonder how many hours it took to complete THAT... | |
Re: Hello, From what I can tell, this is either a RAM problem, or, more likely, a motherboard problem. Why? Because if a hard drive is not present or not working, a normal Mac would show a flashing question mark. Not being able to get to the gray screen means that … | |
Re: [quote=Aia;319986]and concerning about the getch(), clrscr() Well, knowing that they are not portable is good, however I'm not the most knowledgable guy to preach. I don't feel the most qualified to correct those things, even when reading many of your comments has made me not to use them. By the … | |
Just now I've been experiencing a problem with a lot my post edits - I edit and save the post, but none of the new material shows up. I click the edit button again; the information is still there. Yet whenever I click "save", it refuses to show. Don't know … | |
Re: [code] bool visited(); bool active();[/code] Why are you declaring these members with () when you try to access them as data here: [code]Room& Room (const Room &node) { bool visited = node.visited; bool active = node.active; }[/code] Perhaps you meant member data, but accidently added () after the name. | |
Re: > char word; Just a thought, perhaps the program might work better if this were a string instead of a single character? ;) | |
Re: It might help if you actually called setVolume()... ;) | |
Re: 175. Uh, oh... Maybe 6 hours a day on the computer is too much :eek: | |
Re: >So, next time you call "cin >> variable", it will reach the left over ENTER chacter and continue, not allowing any input. Not quite. [inlinecode]cin[/inlinecode] actually keeps searching/waiting until it finds data. This behaviour is fine until you start using getline() [COLOR=DarkSlateGray][edit][/COLOR] or until the user types in more data … | |
Re: Why do you ask for both the infile and the outfile? You should only ask the question appropriate to what the user has selected (and perhaps perform some error checking). A switch statement might suit you best: [code=cplusplus]switch (decryptencrypt) { case 1: // ask for infile, call decrypt(), blah blah … | |
Re: You may want to try the H.264 encoding, which although increases the filesize of a MPEG file, also greatly improves the quality, and in terms of filesize to quality, it's quite good. Another good thing about H.264 is that it's supported by QuickTime, so that means that it's pretty well … | |
Re: >My MacMini entertains me very frequently with spinning pizza wheels, why? It's a common Mac phenomenan, and every Mac user is likely to experience it at some point when using OS X. It's basically a cursor for when the program you are using no longer responds. So why does the … | |
Re: >I can't figure out how to get it to work. So then tell us what [I]doesn't[/I] work, so we don't have to guess. | |
Re: Assuming the given number is an integer, try dividing it by 10... [code=cplusplus]int num_digits; if (myNumber < 0) myNumber = -myNumber; while(myNumber > 0) { num_digits++; myNumber/=10; } [/code] | |
Re: Well, I haven't used emacs enough to know what I'm doing in regards to syntax coloring... :rolleyes: I found a few links though: [quote=http://notfaq.wordpress.com/2006/07/20/emacs-in-text-mode-with-syntax-coloring/] To run emacs in text mode with syntax coloring[code] host:~> setenv TERMINFO /home/user/.terminfo host:~> infocmp host:~> emacs -nw global-font-lock-mode xterm-mouse-mode[/code][/quote] I also found this mailing list … | |
Re: You haven't told us what you're having trouble with. Do you get compiler errors, runtime errors, what? And by the way:[LIST] [*]Use [URL="http://www.daniweb.com/techtalkforums/announcement8-3.html"]code tags[/URL] [*]Use iostream, not iostream.h, etc.[code]#include <iostream> using namespace std;[/code] [*]Use int main() instead of void main()[/LIST] | |
Re: [quote=Laughs Galore;320460] I have tried something like the below, but I think that it doesn't work since each line that has a number, stores whatever follows that number. [code] for (i = 0; i < num; i++) { if(list[i] != "3") { cout << i << ":" << list[i]<<endl; } … | |
Re: It depends what language (C or C++) and what kind of error-checking you need. A basic function which has no error-checking is [URL="http://www.cplusplus.com/reference/clibrary/cstdlib/atoi.html"]atoi[/URL](): [code=c] int myNumber; myNumber = atoi(myString); // myString had better contain a number! [/code] A better C function in regards to error-checking is [URL="http://www.cplusplus.com/reference/clibrary/cstdlib/strtol.html"]strtol[/URL]. For C++, you'll … | |
Re: > We've been told to work with <iostream.h> for our input and output Your compiler probably doesn't support it because that header is old and outdated. Try using the Standard Template Library; it's up-to-date and you'll notice the headers don't have a file extension: [code]#include <iostream> using namespace std;[/code] > … | |
Re: Let's just pretend I didn't see your second example... :rolleyes: Your first example works when spaced out properly, so now all you need to do is code in the average and sum, and then you're done. | |
Re: Sorry... it's not like Microsoft is just going to mail you an XP disc just because you have the registration number. Even if you legally owned it, they have no way of knowing that. So it's S.O.L. for you. Oh and this is totally in the wrong forum. :) | |
Re: There's really no point to this thread anymore, since Gmail no longer requires an invite to join. Perhaps this should get closed/destickied? ![]() | |
Re: Hey Steven, good luck with your job! I see you've already changed your user title to match it... Oh and btw I guess you'll have lots of stories to contribute to this thread :D [URL]http://www.daniweb.com/techtalkforums/thread67960.html[/URL] | |
Re: Post your latest attempt at coding it, tell us any errors you receive when trying to compile it, or if it does compile the output, and what you expected. And above all [B][URL="http://www.daniweb.com/techtalkforums/announcement8-3.html"]USE CODE TAGS[/URL][/B]. (sorry to be so harsh, but it's a constant problem here) | |
Re: Clearing the input stream won't really erase characters off the screen. What you want to do sound like getting aynchronous input. There isn't a standard portable way to read asynchronous input. One method is to use [URL="http://www.opengroup.org/onlinepubs/007908775/xcurses/getch.html"]getch()[/URL], however that's only a compiler extension, so it may not always work on … | |
| |
Re: C/C++ isn't the easiest thing to learn, especially if you've never had much experience in programming before. So then why are you taking an advanced programming course? (Assuming of course, that you haven't really had an introduction to C/C++.) My suggestion would be this: to code more. I know that … | |
Re: Interesting distro you found there. I don't think much of it, as it's still using Wine as the Windows-compatibility layer for its applications, according to Wikipedia. That means you probably won't get much better performance than if you had simply installed Wine on an already-working distro. They've written a fairly … | |
Re: I don't want to be rude but...[LIST] [*]This thread is in the totally the wrong forum [*]Since it's in the wrong forum, we have no idea what language you're trying to write in [*]You haven't [URL="http://www.daniweb.com/techtalkforums/announcement8-2.html"]shown any effort[/URL][/LIST]In other words, post your latest attempt at coding this, and be sure … | |
Re: You've got a problem with your derived class's constructor: [code=cplusplus]playerType::playerType(string first, string last, int num, string pos) : name(first, last) // try changing 'name' to 'personType' { playerNum = num; playerPos = pos; } // end function playerType[/code] Better yet, keep the whole constructor in the class declaration: [code=cplusplus] class … | |
Re: [URL]http://www.cprogramming.com/faq/cgi-bin/smartfaq.cgi?id=1043284376&answer=1047589448[/URL] | |
Re: XGL is nothing new -- Novel's had it out in public for nearly a year already. But yes I do agree with you, the visuals are amazing. My biggest complaint is that its installation is difficult; I haven't gotten around to completing the install yet, and there's a lot of … | |
Re: You're trying to use getline() to read a string into an integer. It just ain't going to work. Read it into a string, and take it out with atoi() or use a stringstream. [code=cplusplus] std::string line; std::stringstream lineStream; getline(myFile, line); lineStream << line; lineStream >> PCourant->ancien;[/code] Your code is driving … | |
Re: [quote=Lefever;318931]Just got a new IMAC PowerPC G5 running OS 10.4 Tiger. In order to run all of our old applications, we are running OS 9 Classic. Some friends have told us to be wary of doing this. Warned of losing files and other generic warnings.[/quote] Bah, that's not much to … | |
Re: Perhaps you need to install video card drivers for Linux? Generic ones that are included with Linux just aren't going to cut it. | |
Re: Also, it sounds like you're using the old C++ STL libraries. The modern ones don't end in .h, so try using those for a more up-to-date program (probably won't fix your errors, though) [code]#include <iostream> #include <fstream> using namespace std;[/code] | |
Re: Not to be rude, but we're not a software factory. Sure it is possible to write a program that does that, but it's not something that you can quickly write up in 15 minutes. One program I know that has such capability of doing it is [URL="http://www.musicmatch.com/"]MusicMatch Jukebox[/URL] deluxe version. … | |
Re: Hotmail's probably got you blacklisted because of the massive amount of spam they recieve everyday from random IP addresses. I don't blame them; they need some way of controlling it. Probably the best thing to do is to find a reliable SMTP server or use your own, which you can … |
The End.