Page 6 of 7 FirstFirst ... 34567 LastLast
Results 51 to 60 of 66
  1. #51

    Quote Originally Posted by MarkCuering View Post
    in C# it runs but technically it is wrong. and try not to use "Properties Approached" its not safe...
    @MARKCUERING - just because it worked in C# it does not mean that it is technically wrong because it is not possible in C++.

    NOTE. I am not referring to the specific discussion at hand but on a general C++ and C# 'comparison'.

  2. #52
    Elite Member
    Join Date
    Aug 2008
    Posts
    1,053
    Blog Entries
    1
    Quote Originally Posted by iamweasel View Post
    @MARKCUERING - just because it worked in C# it does not mean that it is technically wrong because it is not possible in C++.

    NOTE. I am not referring to the specific discussion at hand but on a general C++ and C# 'comparison'.
    well...I'm not refering either as General but on his code specifically... you declare X as Y then why you have to cast X to Y? other example...

    int x = 10
    int y = 100
    x = (int)y

    does it makes sense?

    that's my advice though, I'm not letting him to do so

  3. #53
    guys..

    if its ok... can somebody elaborate more about the casting in c#

    =)

    daghang salamat...

  4. #54
    ben77 - with regards to your question you could refer to msdn for detailed explanations.
    Casting (C#)

    As what mark said c++ is more strict especially in casting thingy or in overall compare to c#. In c# you could do implicit and explicit casting while in c++ you must cast it explicitly.

    Doing this is not logical.
    Code:
    int x = 10
    int y = 100
    x = (int)y

  5. #55
    @ta3 thanks...

  6. #56
    Elite Member
    Join Date
    Aug 2008
    Posts
    1,053
    Blog Entries
    1
    @ben77, the was just mentioning the basic about cast... however you can refer to C++ cast, and compare it to C# Type Casting

    here, I copied from my book:

    very important details:

    Since a value can be of more than one type, a use of the value needs to clearly identify which of its types is being used. Since values are read from locations that are typed, the type of the value which is used is the type of the location from which the value was read. If a different type is to be used, the value is cast to one of its other types. Casting is usually a compile time operation, but if the compiler cannot statically know that the value is of the target type, a runtime cast check is done. Unlike coercion, a cast never changes the actual type of an object nor does it change the representation. Casting preserves the identity of objects. For example, a runtime check might be needed when casting a value read from a location that is typed as holding a value of a particular interface. Since an interface is an incomplete description of the value, casting that value to be of a different interface type will usually result in a runtime cast check.

    and don't forget to research about these:

    Boxing and unboxing (rules in C#)
    Enum (got some restriction regarding Cast)
    castclass and isinst on value types ----> cast an object to a class

  7. #57
    @MarkCuering


    thanks a lot bro for the inputs....


    dako na ug tabang sa ako....



    di man gud ko masatisfy if dili maelaborate sa among titser ang kana mga discussions...


    =)




    ganahan lang ko mokutikoti kung asa na gikan ug ngano naingon ana na siya....


    =)

  8. #58
    video training

  9. #59
    how about deep codes? like parameters , many parameters?

  10. #60
    Elite Member noy.juan's Avatar
    Join Date
    Mar 2010
    Gender
    Male
    Posts
    1,521
    Blog Entries
    1
    after reading all the post....


  11.    Advertisement

Page 6 of 7 FirstFirst ... 34567 LastLast

Similar Threads

 
  1. What do you want to learn?
    By chai in forum General Discussions
    Replies: 2861
    Last Post: 02-17-2021, 07:19 PM
  2. Replies: 8
    Last Post: 05-06-2011, 05:51 PM
  3. WHO WANTS TO LEARN " WUSHU" like JET LI
    By gigzzhai in forum Sports & Recreation
    Replies: 29
    Last Post: 10-15-2010, 01:19 PM
  4. Want to Learn Self Defence?
    By pring_pring in forum Sports & Recreation
    Replies: 2
    Last Post: 04-25-2008, 04:03 PM
  5. Do You Want To Learn How To Blog But Don't Know How?
    By NetMarketer in forum Websites & Multimedia
    Replies: 0
    Last Post: 12-11-2007, 04:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top