Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
int __toascii( int c );
#include <iostream>
using namespace std;
void hexnum_to_hexstring(int hexnumber, string& result){
int pot = 1;
for(;pot <= hexnumber; pot *= 16);
while(hexnumber > 0){
pot = pot / 16;
int res = hexnumber / pot;
hexnumber = hexnumber - (pot * res);
res = (res > 9)? res + 55: res + 48;
result += res;
}
}
int main(){
string erg;
int hexa = 0xabc;
hexnum_to_hexstring(hexa, erg);
cout << erg << endl;
}
#include <iostream>
using namespace std;
int main(){
cout << hex << 0xabc << endl;
}
char c = 0x41; // Buchstabe 'A'
printf("%c", c);
#include <iostream>
using namespace std;
char c = 0x41; // Buchstabe 'A'
cout << c << endl;