588 Posted Topics
Re: [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 | |
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> … | |
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 … | |
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 … | |
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 … | |
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. | |
Re: [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! | |
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 … ![]() | |
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! | |
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 … | |
[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 … | |
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? | |
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 = … | |
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 … | |
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 … | |
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 = … | |
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 ( ) … | |
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 <= … | |
![]() | |
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 … | |
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 … | |
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 … | |
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 ( … | |
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 ; … | |
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 … | |
Where is that thread about the huge star that was like 99999999x larger than our sun? | |
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 … | |
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 … ![]() | |
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 … | |
Re: please refer to [URL="http://www.daniweb.com/forums/thread78223.html"]this[/URL] first | |
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 … | |
Re: Read [URL="http://www.daniweb.com/forums/announcement8-2.html"]this[/URL]. Then we'll be more than happy to help you. | |
Re: 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. | |
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 … | |
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 << … | |
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. … | |
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 ( … | |
Re: [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] | |
Re: 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. | |
Re: how does the compiler know what the value of 'i' is here:[code] string names[3] = {"John","Anne","Mary"}; int score[i]; [/code] | |
Re: 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 | |
Re: hahaha! that's awesome!! great story!! I'm going to send the link to my classmates!! rofl | |
| |
Could someone possibly post a brief explanation of the differences between member and nonmember operator overloading? ![]() | |
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 … | |
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? |
The End.