Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Coffee corner » Little Quiz
Re: Little Quiz [message #57769 is a reply to message #57757] Fri, 10 December 2021 22:22 Go to previous messageGo to previous message
Lance is currently offline  Lance
Messages: 656
Registered: March 2007
Contributor
the inner ~ is
DropList::operator ~

which inherits
Value Ctrl::operator ~()(maybe const modifier?)


the outer ~ is
String Value::operator~()(const modifier?)


the * cause a auto type cast be called
String::operatr const char * ()(modifier?);

and then dereference of the returned constant char * returns the first char in the String.

something like
Value t1=~dl;
String t2=~t1;
const char* t3=(const char*)t2;
char t4=*t3;
if(t3=='$')

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Now this is pretty cool
Next Topic: Quiz #4
Goto Forum:
  


Current Time: Tue Aug 26 00:31:18 CEST 2025

Total time taken to generate the page: 0.04873 seconds