SORU
18 Mart 2009, ÇARŞAMBA


C tipi işaretsiz char * karakter *sabit atama

Var:

unsigned char *foo();
std::string str;
str.append(static_cast<const char*>(foo()));

Hata: invalid static_cast from type unsigned char*’ to type const char*’

C stil buraya fırlatmak için doğru yolu nedir?

CEVAP
18 Mart 2009, ÇARŞAMBA


reinterpret_cast

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • DRDAnimation

    DRDAnimation

    28 EYLÜL 2012
  • justintimberlakeVEVO

    justintimber

    2 EYLÜL 2009
  • Learn word 2013 tutorials

    Learn word 2

    5 AĞUSTOS 2014