2,867 Posted Topics

Member Avatar for virsa

>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 …

Member Avatar for Laiq Ahmed
0
141
Member Avatar for The Dude

[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] …

Member Avatar for RwCC
0
193
Member Avatar for degamer106
Member Avatar for thekashyap
0
80
Member Avatar for ammochck21

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 …

Member Avatar for John A
0
121
Member Avatar for BleedingEdge

>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]

Member Avatar for christina>you
-1
87
Member Avatar for John A
Member Avatar for Soral 3.0

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 …

Member Avatar for Soral 3.0
0
282
Member Avatar for Dani

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 …

Member Avatar for altergrave
1
585
Member Avatar for The Dude

[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 …

Member Avatar for GreenDay2001
0
380
Member Avatar for Duki

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.

Member Avatar for Infarction
0
169
Member Avatar for dking

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 …

Member Avatar for ukblondesam
0
112
Member Avatar for christina>you

There should be rules against flirting in the forums :D (j/k) Nevertheless, welcome.

Member Avatar for christina>you
1
146
Member Avatar for The Dude

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...

Member Avatar for John A
0
21
Member Avatar for joeu

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 …

Member Avatar for d2legitgod
0
194
Member Avatar for ajay kandari

[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 …

Member Avatar for Salem
0
402
Member Avatar for John A

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 …

Member Avatar for WaltP
0
209
Member Avatar for chubbywubba

[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.

Member Avatar for WaltP
0
86
Member Avatar for terp410

> char word; Just a thought, perhaps the program might work better if this were a string instead of a single character? ;)

Member Avatar for terp410
0
1K
Member Avatar for Matt Tacular
Member Avatar for The Dude
Member Avatar for Infarction
0
156
Member Avatar for ikix

>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 …

Member Avatar for John A
0
128
Member Avatar for hellokitkat

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 …

Member Avatar for John A
0
493
Member Avatar for thaner

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 …

Member Avatar for John A
0
69
Member Avatar for bcoe

>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 …

Member Avatar for John A
0
109
Member Avatar for trunks1212

>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.

Member Avatar for trunks1212
0
154
Member Avatar for olams

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]

Member Avatar for olams
0
145
Member Avatar for WolfPack

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 …

Member Avatar for WolfPack
0
991
Member Avatar for bosanac515

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]

Member Avatar for John A
0
944
Member Avatar for Laughs Galore

[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; } …

Member Avatar for John A
0
150
Member Avatar for DummyChuck

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 …

Member Avatar for John A
0
123
Member Avatar for soultron

> 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] > …

Member Avatar for jwenting
0
149
Member Avatar for bigben09

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.

Member Avatar for WaltP
0
118
Member Avatar for JOEYBOY

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. :)

Member Avatar for >shadow<
0
73
Member Avatar for rixius

There's really no point to this thread anymore, since Gmail no longer requires an invite to join. Perhaps this should get closed/destickied?

Member Avatar for GreenDay2001
0
6K
Member Avatar for Mushy-pea

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]

Member Avatar for jwenting
0
133
Member Avatar for Schooley

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)

Member Avatar for Schooley
0
93
Member Avatar for torbecire

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 …

Member Avatar for John A
0
98
Member Avatar for donaugust
Member Avatar for >shadow<
0
93
Member Avatar for Shaabangbang

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 …

Member Avatar for Shaabangbang
0
116
Member Avatar for Marks256

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 …

Member Avatar for Marks256
0
133
Member Avatar for shafiq ahmad
Re: help

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 …

Member Avatar for John A
0
31
Member Avatar for SHWOO

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 …

Member Avatar for John A
0
128
Member Avatar for priya_pikku

[URL]http://www.cprogramming.com/faq/cgi-bin/smartfaq.cgi?id=1043284376&answer=1047589448[/URL]

Member Avatar for John A
0
34
Member Avatar for The Dude

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 …

Member Avatar for John A
0
196
Member Avatar for earlyriser

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 …

Member Avatar for ~s.o.s~
0
290
Member Avatar for Lefever

[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 …

Member Avatar for John A
0
125
Member Avatar for Sturm

Perhaps you need to install video card drivers for Linux? Generic ones that are included with Linux just aren't going to cut it.

Member Avatar for John A
0
102
Member Avatar for niceliang84

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]

Member Avatar for Ancient Dragon
0
148
Member Avatar for Beshur

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. …

Member Avatar for Beshur
0
95
Member Avatar for twoyorkie

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 …

Member Avatar for sinkrideutan
0
296

The End.