Re: Ja sa bong Here! Community Center Say Hello! by Reverend Jim … Oculus without having to go through the Meta servers. Naturally, casting point to point means less latency. It also means we… Re: Casting derived class to base class to make use of base overloaded operator? Programming Software Development by mrnutty Casting in that example if fine. But looking at your code, … Re: casting Programming Software Development by Comatose …warning (not error. Warnings are not fatal) for not casting between int and size_t... but there is no harm …; somestring.length(); i++) {[/inlinecode]. There is nothing wrong with casting... but you need to understand the implications in so doing…of a void pointer? My point here, is that casting has very valid and useful purposes, but you must … casting Programming Software Development by winrawr Should I avoid casting between data types? I haven't really seen much about … in a loop, how could I do that? Where would casting be useful? Where should I avoid it? What are other… Re: casting Programming Software Development by grumpier [QUOTE=winrawr;776108]Should I avoid casting between data types? [/quote] As a general rule, yes you …; (int)end; ++i) loop_body(); [/code] [QUOTE=winrawr;776108] Where would casting be useful? [/quote] Explicit conversions are useful when you [u… Re: Casting in C++ Programming Software Development by thekashyap …;> I believe then, that this iilegitimate casting can be performed with C style casting without the compiler cribbing about it. Yes…. One can say C-style casting is same as reinterpret_cast of C++ (where programmer is responsible… Re: Casting in C++ Programming Software Development by bala24 >Because static_cast isn't always safe for downcasting. That's why dynamic_cast exists: to perform a runtime check that the cast is legitimate and behave predictably if it's not. I believe then, that this iilegitimate casting can be performed with C style casting without the compiler cribbing about it. Re: Casting in C++ Programming Software Development by Narue >I believe then, that this iilegitimate casting can be performed with C style >casting without the compiler cribbing about it. No… Re: Casting and Parsing Programming Software Development by Mattox … String into a primitive data type(may be other uses) Casting - changes from one primitive data type to another, can also… and need to convert it to another primitive type, use casting. To take a primitive type to a String you have… Casting object to double. Programming Software Development by Coach_Nate Sorry, may seem like a dumb question, but I haven't seen anyone else ask it on here. I'm trying to create a stack of doubles, by casting them as I pop them out. The only trouble is that the compiler (eclipse) won't let me cast an object to a double. Any suggestions? Thanks, Nate Casting in C++ Programming Software Development by bala24 … guys and Gals, Have some trouble digesting some facts about Casting in C++. 1). Why can't we use a static_cast… Re: Casting in C++ Programming Software Development by thekashyap … guys and Gals, Have some trouble digesting some facts about Casting in C++. 1). Why can't we use a static_cast… casting and windows versions? Programming Software Development by freakybeavis … to the problem being with the use of char and casting but no idea exactly what the problem is or how… casting from userData Programming Software Development by sjcomp … object and I can retrieve my class from it using casting. My question is about the performance of my approach. So… casting&math class in pow Programming Software Development by seka208 i have one problem in casting double f, g; f = Math.Pow((double)p, (double)r); g = Math.Pow((double)q, (double)(n - r)); Console.WriteLine("f={0,3},g={1}", f, g); Casting Problem with FindMimeFromData Function Programming Web Development by deniseaddy Hi, I'm getting a casting error using the code below. The error on the web … Casting from a Linq anonimus type Programming Software Development by FallenPaladin Hi there, I have a question about Linq and casting from a var data type to list of a specific … Casting concepts Programming Software Development by Stefano Mtangoo I'm reading casting functions(I wonder if this is proper name). I get … Casting and Parsing Programming Software Development by insanely_sane Here's an easy one for you experts :P What is casting and parsing? How exactly are they different? After explaining, could anyone possibly tell me how to cast/parse the various types from and to each other? (the types being: int, double, char and String) Also, in which situations would I end up using either one of these? Thanks :D Casting issue Programming Software Development by ddanbe …-linq language itegrated query in C# 2008" gives a casting exception error on line 29. I know ToArray returns an… casting datareader value to a to a Nullable variable Programming Databases by adam2009 I'm trying to run the following code but get a casting error. How can I rewrite my code to achive the same ? [CODE] boolResult= (bool?)dataReader[&quot;BOOL_FLAG&quot;] ?? true; intResult= (int?)dataReader[&quot;INT_VALUE&quot;] ?? 0;[/CODE] Thanks Casting question Programming Software Development by terexberd which of the following statements is true about casting a) you must cast to convert from an interface type … Casting derived class to base class to make use of base overloaded operator? Programming Software Development by Jsplinter … to access the base class operator overload? I'm using casting, and it works just fine, just wondering if there is… casting a string to an integer Programming Software Development by lexusdominus [CODE]int thetime = time(NULL); string in; stringstream out; out << thetime; in = out.str();[/CODE] that's my code for casting an integer into a string, but im having a little trouble reversing it to change a string into an int. :/ can anybody help me out? you have to include the sstream library. thanks! Re: Casting Programming Software Development by cgeier [Explicit Numeric Conversions Table (C# Reference)](http://msdn.microsoft.com/en-us/library/yht2cx7b.aspx) [Casting and Type Conversions (C# Programming Guide)](http://msdn.microsoft.com/en-us/library/ms173105.aspx) Re: way of casting in oracle Programming Databases by hfx642 Casting, in Oracle, is usually implicit (It knows how to do it). Sometimes, Oracle can NOT cast implicitly. You will have to cast explicitly. Follow [I]debasisdas[/I]'s method. And, yes... he [B]did[/B] answer your question. Re: casting Programming Software Development by winrawr what's the difference between an explicit conversion and an implicit conversion? By what means can a class "Support" a direct conversion? Does this mean I couldn't go [icode]if(a string==a char*){[/icode], but I could still cast it? or could I cast it? I think what I'm asking is (I'm just trying to understand how data-types work in C++) … Re: casting Programming Software Development by grumpier An explicit conversion is what you're calling a cast. An implicit conversion is a conversion between types that the compiler allows or performs, even if you don't do a cast. For example; [code] int i = 3; long j = i; [/code] The initialisation of j involves an implicit conversion of an int to a long. The compiler knows how to do that, so… Re: Casting and virtual function Programming Software Development by JasonHippy … to be a valid instance of a Shape, so casting from a Circle pointer to a Shape pointer should work… Which is something you need to bear in mind when casting between polymorphic types! In your posted code, you've created… to a Square* !" << endl; // Now lets try casting shape to a Circle* // This should succeed because the Shape… Re: Casting and virtual function Programming Software Development by JasonHippy …! If you want to do the more dangerous C-style casting, then CSurfer has it pretty much covered in his post… example of creating a Circle pointer and then C-style casting it back to a Shape pointer would allow the Shape…