Re: Android development
Ethin, Telegram was developed with C++. Facebook messenger was developed with C++.
To be honest, I don't know a program developed with C# for Android. Or maybe I know and use such programs, but I don't know that it was developed with C#.
About C. C is simpler than C++, if only because the C++ standard is 7 times larger than the C standard.
C is simpler than C++. But this doesn't mean that C is simpler than C++ in solving problems, writing code.
A small example of creating an email address:
C++
string compose(const string& name, const string& domain)
{
return name+'@'+domain;
}
In the C-version, it's necessary to work directly with symbols and memory:
char* compose(const char* name, const char* domain)
{
char* res = malloc(strlen(name)+strlen(domain)+2); // место для строк, '@', и 0
char* p = strcpy(res,name);
p += strlen(name);
*p = '@';
strcpy(p+1,domain);
return res;
}
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector