588 Posted Topics

Member Avatar for The Dude

[quote=jwenting;441260]Even the first question makes no sense... The entire thing is rigged to produce low scores, as is to be expected from something obviously produced by a leftist idiot.[/quote] agreed. though, i did get a 1, and that's pretty accurate :P. I may have accepted anything <=4

Member Avatar for sneekula
2
419
Member Avatar for Duki

Ok, I'm going post all of my code, and hopefully someone can tell me where my error is at. I'm guessing I need to do a cin.ignore() somewhere, but I'm not sure where. I've tried it in a couple of places, but nothing has fixed the problem completely. [code=c++]#include <string> …

Member Avatar for jbennet
0
242
Member Avatar for Duki

Hey everyone... could someone tell me why this isn't working? I get "The specified path could not be found." when I run it. [code]@echo off REM########################################################################### REM Author: Caleb REM Date: 11-14-2007 REM Contact: - REM Description: This .bat file is to copy necessary .cui, .mnl, and .mnr files from …

Member Avatar for Duki
0
120
Member Avatar for Duki

Hey guys, Here's my code: [code=c++]#include <iostream> using namespace std ; template<class T> class Pair { public: Pair ( ) ; Pair (T v1 , T v2 ) ; void setFirst(T newV ) ; void setSecond(T newV ) ; T getFirst() const ; T getSecond() const ; private: T first …

Member Avatar for Duki
0
123
Member Avatar for Duki

How important are data structures in C++? I'm majoring in networking and going to grad school for MISM with a focus in networking. If I have a firm understanding of C++ concepts such as encapsulation, inheritance, recursion, polymorphism, templates, and exception handling will topics in data structures benefit me at …

Member Avatar for Duoas
0
112
Member Avatar for Duki

Could someone explain the difference between Overloading, Redefining, and Overriding functions? A nutshell answer will work fine; I just need something to stick in my brain for tomorrow's test. I know the concepts behind these tools, but I just need a simple way of defining the difference between them.

Member Avatar for Duki
0
6K
Member Avatar for The Dude

[quote=Sturm;376811]I got 1,348,720! um..no offence dude, but you kind of suck.[/quote] ? the video says [B]june[/B] 30th 2007 :P nice work though!

Member Avatar for 13Girl
0
261
Member Avatar for Duki

Hey everyone, I'm still tweaking the attributes but here is what I've got: [B]All races:[/B] dmg = rand, where 0 < r < str [B]Human[/B] 25% chance of blocking 5% chance of double attack (attack x2) 10% chance of dmg+60 [B]Elf[/B] 5% chance of blocking 35% chance of double attack …

Member Avatar for Mouche
0
180
Member Avatar for Duki

Hey guys, Could someone show me how to write a batch file to install software? I just need something very basic that, when run, will auto install the software. I know it isn't that hard, but I don't know how. :( thanks!

Member Avatar for Duki
0
172
Member Avatar for Duki

Hey guys, We're getting ready to start planning for our Halo3 tournament. It's going to be double elimination, with 8 teams of 4 in Team Slayer to 50. I'm curious as to what price to charge for tournament players. I told Christina we had planned on $5 for entry and …

Member Avatar for jbennet
0
100
Member Avatar for Duki

[code=c++]#pragma once #include <string> #include <iostream> using namespace std ; class Document { public: Document ( ) ; Document operator= ( const Document & d ) ; void setText ( ) ; string getText ( ) ; protected: string text ; } ; #include "document.h" Document::Document ( ) : text …

Member Avatar for Ancient Dragon
0
124
Member Avatar for Duki

Is there any reason to check for self assignment, if you're not using array's or pointers, when overloading the = operator? For example, if the only datatypes in Vehicle are int cylinders and string manufacturer, do I really need to check before assigning? If so, what's the point?

Member Avatar for vijayan121
0
88
Member Avatar for Duki

I'm trying to write an asp.net page that will keep variables using the .value command. It's not working. Here's my code [code=vb.net] Dim custID As Integer Dim noMovies As Integer Dim price As Double Dim discount As Double Dim total As Double custID = Integer.Parse(Me.idTextBox.Text) noMovies = Integer.Parse(Me.numMovTextBox.Text) price = …

Member Avatar for SheSaidImaPregy
0
119
Member Avatar for Duki

I have a class called Person. I also have a class called Truck, inherited from class Vehicle. I want to overload the iostream operators for all three classes so that I can do statements such as: Person a ; Vehicle b ; Truck c ; cin >> a ; cin …

Member Avatar for John A
0
92
Member Avatar for Duki

Hey guys, I'm looking at taking a PHP course in the spring. The prof and I get along well, and she said I could waive the college's prerequisites and sign up if I wanted to. The prerequisites (in the college catalog) are a couple of HTML courses. My question is …

Member Avatar for ryan_vietnow
0
262
Member Avatar for Duki

I'm trying to write an asp.net page that will keep variables using the .value command. It's not working. Here's my code [code=vb.net] Dim custID As Integer Dim noMovies As Integer Dim price As Double Dim discount As Double Dim total As Double custID = Integer.Parse(Me.idTextBox.Text) noMovies = Integer.Parse(Me.numMovTextBox.Text) price = …

Member Avatar for SheSaidImaPregy
0
96
Member Avatar for Duki

I'm getting an error in main() saying TitledEmployee is an undeclared identifier? [code=c++]#include <iostream> #include <string> using namespace std ; namespace Employees { class Employee { public: Employee ( ) ; Employee ( string theName , string theSsn ) ; string getName ( ) const ; string getSsn ( ) …

Member Avatar for Duki
0
91
Member Avatar for Duki

Hey guys, I'm supposed to write a program that will calculate the Nth fibonacci number, without using recursion. I have the recursion problem written already, but am having a hard time doing the iterative one. here's my recursion function: [code]int fib ( int n ) { if ( n <= …

Member Avatar for Duki
0
758
Member Avatar for thunderstorm98
Member Avatar for Duki

Hey guys, we were given an opportunity for extra credit in my OOP class. We're going over recursion and my prof said if we could do a project using recursion and do another useing iterative statments, and time them, we would be given extra cred. Is there a way to …

Member Avatar for Duki
0
95
Member Avatar for Duki

Public Class videoBonanzaForm Dim videoBonanza(,) As String = {{"Comedy", "Aisle 1"}, {"Drama", "Aisle 2"}, {"Action", "Aisle 3"}, _ {"Sci-Fi", "Aisle 4"}, {"Horror", "Aisle 5"}, {"New Releases", "Back Wall"}} Private Sub videoBonanzaForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub Private Sub searchButton_Click(ByVal sender As System.Object, ByVal e …

Member Avatar for waynespangler
0
123
Member Avatar for Duki

I have a question on my handout for class that says: Justify / refute the statement that theese declarations are equivalent. double speed[1] ; double speed; My guess was they are the same, since, even though speed[1] is an array, it is the same size of just speed. Am I …

Member Avatar for Narue
0
116
Member Avatar for Duki

Hey guys, Could you tell me what is wrong with this part of my code: [code]#include <iostream> using namespace std ; class TwoD { public: TwoD ( ) ; TwoD ( int , int ) ; private: int *m ; int d1 ; int d2 ; }; int main ( …

Member Avatar for ndeniche
0
87
Member Avatar for Duki

I get error C2143: syntax error : missing ';' before '*'[/code] at the typedef line (and every other line with the word 'string'). ... //File: prob4.h #pragma once //header files + efficiency #include <string> #include <iostream> using std::cin ; using std::cout ; using std::endl ; typedef string * strPtr ; …

Member Avatar for Duki
0
908
Member Avatar for Duki

So, I've ordered two separate books for studying C#, and am sending them both back. One was Murach's C# 2005 and the other is Illustrated C# 2005 by Daniel Solis. Neither of them were written the way I like to learn; I prefer a textbook style of learning with exercises …

Member Avatar for Samson_ZXL
0
70
Member Avatar for Duki

Where is that thread about the huge star that was like 99999999x larger than our sun?

Member Avatar for Lardmeister
0
107
Member Avatar for Duki

here's my printing code: [code] Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage Dim printlinestring As String Dim horizontalPrintLocationSingle As Single Dim verticalPrintLocationSingle As Single Dim printfont As New Font("arial", 12) Dim lineheightsingle As Single = printfont.GetHeight horizontalPrintLocationSingle = e.MarginBounds.Left verticalPrintLocationSingle = e.MarginBounds.Top PrintPreviewDialog1.Document = PrintDocument1 …

Member Avatar for Duki
0
150
Member Avatar for Duki

Hey everyone, I have an assignment to work on and it's a bit confusing. Here's the problem: [quote]Using dynamic arrays, implement a polynomial calss with polynomial additions, subtraction, and multiplication. Discussion: A variable in a polynomial does nothing but act as a placeholder for the coefficients. Hence, the only interesting …

Member Avatar for iamthwee
0
162
Member Avatar for Duki

Hey guys, I am in desperate need of a monitor with the following specs: * 21” or larger CRT * Horizontal Frequency = 30-115 KHz or greater * Vertical Frequency = 50-160 Hz or greater * Recommended resolution of 1280 x 1024 @ 120 Hz / True Color * Required …

Member Avatar for Duki
0
60
Member Avatar for christina>you
Member Avatar for Serunson
0
481
Member Avatar for niki01

please refer to [URL="http://www.daniweb.com/forums/thread78223.html"]this[/URL] first

Member Avatar for Killer_Typo
0
156
Member Avatar for Duki

I'm trying to get totCust and totRev which are declard in videoBonanzaForm to show up in the summaryForm.textboxes I have them declared as friends; i've even tried assigning `me.textbox.text = "1"` and nothing shows up still when I click the Summary button (in videoBonanzaForm). I open the summary form with …

Member Avatar for Duki
0
199
Member Avatar for Mariam0097

Read [URL="http://www.daniweb.com/forums/announcement8-2.html"]this[/URL]. Then we'll be more than happy to help you.

Member Avatar for Duki
0
77
Member Avatar for GirlInterrupted

If you get a book (which I would recommend if you're not satisfied with the current text) I would recommend [URL="http://www.amazon.com/Programming-Problem-Analysis-Program-Design/dp/1418836397"]this[/URL] I have the 2nd edition of this book and so far in my college career, this has been the best written text book I've used.

Member Avatar for Duki
0
89
Member Avatar for Duki

Hey guys. I need to add a constructor that takes an int argument, sz, and an array of char of size sz. I then need the constructor to set the first sz members of the private dara array (myArray) to the sz members of the argument array of char. Here's …

Member Avatar for Dave Sinkula
0
91
Member Avatar for Duki
Member Avatar for Infarction
Member Avatar for ndeniche
0
445
Member Avatar for Duki

Could somone give me a hint as to why my division by 0 check doesn't work? [code]istream & operator >> ( istream & is , Rational & r ) { char x ; is >> r.num >> x >> r.den ; if ( r.den == '0' ) { cout << …

Member Avatar for Duki
0
147
Member Avatar for Duki

Hey guys, I have [URL="http://www.spiceworks.com"]spiceworks[/URL] setup on our servers at work and need to setup some dns record to give them friendly names. Right now, we access the helpdesk via server:9000 in a web browser, but I would like to make the access name something along the lines of server/helpdesk. …

0
56
Member Avatar for Duki

hey guys. the following code should return a percentage of the current values of the object. I keep getting 0 returned. If this isn't enough code let me know. [code]Money test = ourAmount.percent ( 10 ) ; test.output ( ) ;[/code][code]const Money Money::percent ( int percentFigure ) { return ( …

Member Avatar for Ancient Dragon
0
205
Member Avatar for annagraphicart

[quote=annagraphicart;439845] 1. I need it to [B]sort descendingly[/B], not ascendingly.[/quote] try rethinking this part of your code: [code]if( score[i] < score[j] ) { ... } [/code]

Member Avatar for Duki
0
272
Member Avatar for purifier

I advise Databases. I could use databases for a number of things where I work if I understood how they worked. I too am in the networking field.

Member Avatar for Ancient Dragon
0
164
Member Avatar for annagraphicart

how does the compiler know what the value of 'i' is here:[code] string names[3] = {"John","Anne","Mary"}; int score[i]; [/code]

Member Avatar for Ancient Dragon
0
80
Member Avatar for metalbassist56

You first need to read [URL="http://www.daniweb.com/forums/announcement8-2.html"]this[/URL] Then you should read [URL="http://www.daniweb.com/forums/thread78223.html"]this[/URL] After reading, you should try your post again

Member Avatar for Duki
0
153
Member Avatar for Fitter

hahaha! that's awesome!! great story!! I'm going to send the link to my classmates!! rofl

Member Avatar for bill.jeffs
1
95
Member Avatar for kazek
Member Avatar for Salem
0
3K
Member Avatar for Duki

Could someone possibly post a brief explanation of the differences between member and nonmember operator overloading?

Member Avatar for iamthwee
0
92
Member Avatar for WEATHER CHANNEL
Member Avatar for Duki

Hey everyone. I need to write program that builds an object of Pizza class and then pass that object to Order class. here's my Pizza class: [code]class Pizza { public: void setCheeseToppings ( int ) ; void setPepperoniToppings ( int ) ; void setSize ( string ) ; void setType …

Member Avatar for Duki
0
188
Member Avatar for Duki

Hey guys, I'm looking for something that will work well with implementing an intranet. Could ASP.NET be used for this? Could someone give me some examples of what ASP.NET is used for?

Member Avatar for binoj_daniel
0
112

The End.