Duki 552 Nearly a Posting Virtuoso

>I couldnt found it here
that made me smile. thanks.

Duki 552 Nearly a Posting Virtuoso

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

Duki 552 Nearly a Posting Virtuoso

>eating an apple I picked from my garden.
there's something you don't hear every day. that rocks.

Duki 552 Nearly a Posting Virtuoso

console gaming is fun against other console gamers. throw in a guy with a keyboard/mouse attachment and there goes the even teams. I prefer pcFPS as well, though console games such as Halo (when played on a LAN) are equally as fun to me if for no other reason than the atmosphere. just mho

Duki 552 Nearly a Posting Virtuoso

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.

Duki 552 Nearly a Posting Virtuoso

Well I just started eating dinner and thought this would be a neat topic. Everyone knows we love to eat while on the computer; two birds, one chair.

I'll start it off:

Deli Sandwiches, macaroni salad, potato salad and a Pepsi :)

christina>you commented: . -3
ndeniche commented: lol... i think it's cool... +3
almostbob commented: Really took off didnt it +0
XP78USER commented: Man 18 ups no downs Ka\-Ching $$$ +0
Duki 552 Nearly a Posting Virtuoso

> The halo series is overrated.
i hate you.

Duki 552 Nearly a Posting Virtuoso

Alright, nvm got it. Leaving variables uninitialized = bad.

Duki 552 Nearly a Posting Virtuoso

thanks for all the help Narue! My program is working (almost) great!

I've just got a logic error somewhere that I'm trying to figure out. for some reason, when I output the Pepperoni pizza it outputs 1 cheese topping every time.

Duki 552 Nearly a Posting Virtuoso

I don't get it..... we haven't went over pointers yet :(

Duki 552 Nearly a Posting Virtuoso

That's a pointer?

Duki 552 Nearly a Posting Virtuoso

Oh ok! that makes perfect sense! The only part I'm consfused about is this

it->display();

what is 'it->'

Duki 552 Nearly a Posting Virtuoso

oh Ok, but how do classes access variables in other classes?

If my question isn't clear, maybe look at my example main() and see what I'm trying to do. I am completely lost on how to write the Orders class so that I can output the Pizza information. :(

I need to use a vector in the Orders class to store the pizza objects and then output them with the output func

Duki 552 Nearly a Posting Virtuoso

here's my updated .h file if that will help:

#pragma once

#include <string>
#include <iostream>
#include <iomanip>
using namespace std ;

class Pizza
{
public:
    void setCheeseToppings ( int ) ;
    void setPepperoniToppings ( int ) ;
    void setSize ( istream & is ) ;
    void setType ( istream & is ) ;
private:
    int cheeseTop ;
    int pepperoniTop ;
    string size ;
    string type ;
} ;

class Order
{
public:
    void addPizza ( Pizza ) ;
    void outOrder ( ) ;
private:
} ;

example main:

int main()
{
    Order myOrder;                    // variable declarations
    Pizza cheesy;
    Pizza pepperoni;

    cout << "Cheese size type:  " << endl ;
    cheesy.setCheeseToppings(3);    // specify pizza
    cheesy.setSize( cin );
    cheesy.setType( cin );

    cout << "pep size type:  " << endl ;
    pepperoni.setSize( cin );        // specify pizza
    pepperoni.setPepperoniToppings(2);
    pepperoni.setType( cin );
    
    cout << pepperoni.size << endl << pepperoni.type << endl ;
    cout << cheesy.size << endl << cheesy.type << endl ;

    myOrder.addPizza(cheesy);        // add to order
    myOrder.addPizza(pepperoni);

    myOrder.outputOrder();            // ouput order
    cout << "\n -- Done! --\n";
    return 0;
}
Duki 552 Nearly a Posting Virtuoso

is this

friend std::ostream& operator<< ( std::ostream& out, const Time& t );

the same as this

friend cout << ( ostream & out , const Time & t )

? Or am I utterly confused

template <typename CharT>
std::basic_ostream<CharT>& operator<< ( std::basic_ostream<CharT>& out, const Pizza& pie )

none of that^ makes since to me. =(

Duki 552 Nearly a Posting Virtuoso

Ok, so in my outOrders function would I be able to do something like:

cout << MyPizza.size << endl :

?

Duki 552 Nearly a Posting Virtuoso

Oh ok. So how would I access the Pizza data to output it?

Duki 552 Nearly a Posting Virtuoso

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:

class Pizza
{
public:
    void setCheeseToppings ( int ) ;
    void setPepperoniToppings ( int ) ;
    void setSize ( string ) ;
    void setType ( string ) ;
private:
    int cheeseTop ;
    int pepperoniTop ;
    string size [ 3 ] = { "small" , "medium" , "large" } ;
    string type [ 3 ] = { "hand tossed" , "pan" , "deep dish" } ;
} ;

I know this is a general question, but how should my order.addPizza function look? Do I need to put the same variables that were in pizza into the orders class to store them or do i have access to those variables since the object has been passed?

I'm stuck here:

class Order
{
public:
    void addPizza ( Pizza ) ;
    void outOrder ( ) ;
private:
} ;
Duki 552 Nearly a Posting Virtuoso

excellent! any pictures? What model is it?

Duki 552 Nearly a Posting Virtuoso

alright excellent! Would you agree that using C# as opposed to VB.NET would be the more powerful way to go?

Duki 552 Nearly a Posting Virtuoso

Well I'm just now learning .NET; I would prefer C# (since it uses C++), but I am not familiar with it at all.

Should I learn C# and then ASP.NET?

Duki 552 Nearly a Posting Virtuoso

Ah ok. Do you know of any good books I could purchase for a begginners guide to ASP.NET?

Duki 552 Nearly a Posting Virtuoso

great article, i'll read it thoroughly later today!
thanks!

Duki 552 Nearly a Posting Virtuoso

do i need to know asp.net before i use ajax?

Duki 552 Nearly a Posting Virtuoso

Alright, great!

The intranet will mainly be used for nothing more than document retreival, such as viewing the employee handbook. But I do want to be able to implement a timesheet program and other applications.

Duki 552 Nearly a Posting Virtuoso

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?

Duki 552 Nearly a Posting Virtuoso

I'm looking for a powerful tool to study that will benefit me in the creation of a company intranet. Any suggestions?

Duki 552 Nearly a Posting Virtuoso

Oh ok! The book I'm going by doesn't use seperate files for showing sample code... so they had something like

header stuff

class
{
...
};

static initializations

int main ( )
{
...
}

etc. etc.

So I assumed the init went in the header file.
I know, more information than you needed; thanks for the help!

Duki 552 Nearly a Posting Virtuoso

Hey guys, I keep getting a link error in my code. It says this:

1>prob4.main.obj : error LNK2005: "private: static int HotDogStand::totalSales" (?totalSales@HotDogStand@@0HA) already defined in prob4.func.obj

Here's my code, maybe someone can help me out.

#pragma once

#include <iostream>
using namespace std ;

class HotDogStand
{
public:
    HotDogStand ( int , int ) ;
    HotDogStand ( ) ;

    void justSold ( ) ;
    int idSales ( ) ;
    static int totSales ( ) ;
private:
    static int totalSales ;
    int id ;
    int sales ;
} ;

int HotDogStand:: totalSales = 0 ;


-----------------------------------------------------------------------------------

#include "prob4.h"

int main ( )
{
    HotDogStand jumbo ( 1 , 10 ) ;
    HotDogStand franks ( 2 , 20 ) ;
    HotDogStand porkies ( 3 , 5 ) ;
    HotDogStand bunzRus ;

   int totalSales ;

    int jumboSales ;
    int franksSales ;
    int porkiesSales ;
    int bunzRusSales ;

    int x ;

    for ( x = 0 ; x < 5 ; x++ )
    {
        jumbo.justSold ( ) ;
    }

    for ( x = 0 ; x < 10 ; x++ )
    {
        franks.justSold ( ) ;
    }

    for ( x = 0 ; x < 20 ; x++ )
    {
        porkies.justSold ( ) ;
    }

    for ( x = 0 ; x < 15 ; x++ )
    {
        bunzRus.justSold ( ) ;
    }

    jumboSales = jumbo.idSales ( ) ;
    franksSales = franks.idSales ( ) ;
    porkiesSales = porkies.idSales ( ) ;
    bunzRusSales = bunzRus.idSales ( ) ;

    totalSales = HotDogStand::totSales ( ) ;

    cout << jumboSales << endl << franksSales << endl << porkiesSales << endl << bunzRusSales << endl ;
   /cout << endl << totalSales << endl ;

    return 0 ;
}


--------------------------------------------------------------------------------------


#include "prob4.h"

HotDogStand::HotDogStand ( int x , int y )
{
    id = x ;
    sales = y ;
}

HotDogStand::HotDogStand ( )
{
    id = 0 ;
    sales = 0 ;
}

void HotDogStand::justSold ( )
{
    sales++ ;
    totalSales++ ;
}

int HotDogStand::idSales ( )
{
    return sales ;
}

int HotDogStand::totSales ( )
{
    return totalSales ;
}
Duki 552 Nearly a Posting Virtuoso

is there a way to make this:

If dvdRadioButton.Checked = False And vhsRadioButton.Checked = False Then
            MessageBox.Show("Format not specified", "Unspecified format", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1)
            dvdRadioButton.Focus()
        End If

        If movieTitleTextBox.Text = "" Then
            MessageBox.Show("Movie title not entered", "Movie Title", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1)
            movieTitleTextBox.Focus()
        End If

throw a single error message instead of two, one right after the other (without using the if construct)?

I read something about add handles or something? Any help is appreciated!

Duki 552 Nearly a Posting Virtuoso

question: I have a Core2Duo. Is there a way to use both cores? Has anyone tried the beta for the multiple cores yet? is it stable?

Duki 552 Nearly a Posting Virtuoso

hm i'm a bit confused. Tell me if this is right.
Your boss has a documents folder on the external hard drive and everyone has a mapped drive on their computer labeled (Z:) that points to that external drive. What drives show up on your boss's computer?

Duki 552 Nearly a Posting Virtuoso

I am going to school for Network Administration. I have an assignment to talk to a Network Administrator and answer some question about his company's network. Could someone please address these questions? I do not personally know any Network Administrators. I don't need your company's name. Thanks in advance.

If you feel like answering a couple please do so. Even if you are not a Network Admin.

1. What services are provided?
2. What servers are there?
3. What cabling is used?
4. How is the server room set up?
5. How do they connect to the Internet?
6. How do they connect to other locations if their company has a WAN?
7. What specialized software is used if any?
8. What upgrades would they like to make?
9. How does this network support the unique business interests of this company?

1. As a network administrator, my main tasks consist of the following: monitor and maintain network performance and security, delete and modify user permissions, administer active directory, develop standards, and above all, reasearch and study new technologies that could increase the overall work efficiency of the corporation.

2. The majority of our servers are Dell PowerEdges; we just recently decided to standardize our entire company to Dell workstations and servers. We chose Dell for a number of reasons, but to keep it short, the decision was made mainly due to the unbeatable service contracts. All our (live) servers have Dell …

Duki 552 Nearly a Posting Virtuoso

No problem!
So, did I answer the question you asked or are you still unsure about something?

Duki 552 Nearly a Posting Virtuoso

All far too confusing for me too follow!

Won't PartitionMagic sort this out? Merge all the drives into one? Or is there some restriction in the constellation you've got?

Here is my suggestion; it may be a little more work, but you'll appreciate it in the long run:

First, purchase/borow an external hard drive and backup all the data you want to keep.
Then just reformat your entire computer. If you need help with any of this let us know which parts and we'll give you step by step instructions.

Duki 552 Nearly a Posting Virtuoso

hey, welcome to Daniweb!

You're right, theoretically this should be a very simple fix. But remember, in the IT field things go as planned about 5% of the time.

To get your documents in one place:
Open the external hard drive and look at the files to ensure all is there and well. Minimize that and goto Start->My Documents and look at the files to ensure all is there and well also. Once you're confirmed the data you're working with you could simply highlight everything on the external drive and drag it over to the My Documents folder.

things to lookout for:
1. When prompted you'll click "Yes to All" to overwrite all the duplicates BUT be careful because if you do, any versions of the files on the external drive that are OLDER than the file to be overwritten on the local drive will OVERWRITE that file.
2. Make sure you have enough space on the local computer to save all the data from the external drive.

Be very careful with #1; make sure you read it carefully ;) If I didn't explain it well may you could ask and someone else could do a better job.


also dealing with your mapped drives. Look at the letter of a mapped drive as nothing more than a label; a place holder. Since everyone has C as their primary drive it wouldn't make sense to make C go to someone elses …

Duki 552 Nearly a Posting Virtuoso

thanks!

Alright, do you know who hosts sheppardmansion.com? From what you say, it's your ISP, correct?

Call them and ask them to step you through setting up a new email account. Tell them once it's setup, you need to use Microsoft Outlook to access it, and see if they can help you with that as well. This way, if a new employee arrives and needs an email address, you'll know what to do and won't have to call them to get the email account setup.

Duki 552 Nearly a Posting Virtuoso

thanks!

Duki 552 Nearly a Posting Virtuoso

go start->run and type cmd; press enter.

please paste the output of this command (when ran on the broken computer):

ipconfig /all
Duki 552 Nearly a Posting Virtuoso

absolutely!
try these guys: http://www.ixwebhosting.com

not sure if this answered your question

Duki 552 Nearly a Posting Virtuoso

that sucks. I know how stressful situations like this can be; well, not quite.

anyways, glad to hear all is well. Just for the record, I've used Comcast at home for going on 5 years now; I rarely have problems out of them. Then again, I'm not hosting 40 sites ;)

congrats on getting it all worked out

Duki 552 Nearly a Posting Virtuoso

Glad I could help! :)

Duki 552 Nearly a Posting Virtuoso

do you have any more information about your network?

Please supply the output (on computerA and computerB) for the following command in command prompt:

ipconfig /all

Duki 552 Nearly a Posting Virtuoso

just curious, how did you manage to install windows on the D drive? this could be a total noob question on my behalf

Duki 552 Nearly a Posting Virtuoso
Duki 552 Nearly a Posting Virtuoso

Hey, don't worry; we all started somewhere! Just two years ago, I didn't know how to do any of that stuff either; now I'm working for the same corporation as one of their lead network admins... :) Asking questions is how EVERYONE learns... even when reading a book, you ask yourself "How" or "Why".

Anyways, what is the mail server domain (i.e., user@domain.com)? Are you sure the account has been setup?

Duki 552 Nearly a Posting Virtuoso

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

Duki 552 Nearly a Posting Virtuoso

Ok, you said you ahve TuneUp Utilities?
In the top right corner, there should be a button that says restore or something to that effect. Does it? If not, what version TuneUp are you using?

Duki 552 Nearly a Posting Virtuoso

did you delete his folder in docs and settings?

Duki 552 Nearly a Posting Virtuoso

Anyone want to show me how to create a DNS record/records that will allow our users on the local network type something to the effect of: server1/helpdesk and be able to connect to server1:9000/helpdesk ?