Solved

Mean of This Assignment

Posted on 2006-11-17
2
177 Views
Last Modified: 2010-04-01
Hi experts,
What is the mean of below statement:
Wireless *wifp = (wirelessPhy *) tifp;
I havn t seen this assignment.
Thanks in advance for your time.

Regards
Shirin

0
Comment
Question by:shirin
2 Comments
 
LVL 9

Accepted Solution

by:
DrAske earned 125 total points
ID: 17971106
>>Wireless *wifp = (wirelessPhy *) tifp;
I think should be like this
WirelessPhy *wifp = (wirelessPhy *) tifp;
This is TypeCasting, this statement let the System treats the data of type *tifp* as a WirlessPhy type.
BTW, if this is a safe typecast then (I think) WirlessPhy is a subclass of *tifp* type.

regards,Ahmad;
0
 

Author Comment

by:shirin
ID: 17971215
you are right,
WirelessPhy *wifp = (wirelessPhy *) tifp;

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now