Enviado em 14/11/2021 - 14:28h
Boa dia a todos,#include <stdio.h>
#include <stddef.h>
int main() {
char Char = 'a';
wchar_t wChar = L'á'; // wchar vou usar caracter acentuado!
/////////////////////////////////////////
// NÃO QUERO COMPARAR ASSIM!
/////////////////////////////////////////
if(Char == 'a')
puts("Test1");
if(wChar == L'á')
puts("Test2");
/////////////////////////////////////////
// Alguma forma desses abaixo funcionar?
/////////////////////////////////////////
if(Char == "a") // error: comparison between pointer and integer
puts("Test3");
if(Char[0] == "a") //error: subscripted value is neither array nor pointer nor vector
puts("Test4");
if(wChar == "á") // error: comparison between pointer and integer
puts("Test5");
if(wChar == L"á") // error: comparison between pointer and integer
puts("Test6");
}
Servidor de Backup com Ubuntu Server 24.04 LTS, RAID e Duplicati (Dell PowerEdge T420)
Visualizar câmeras IP ONVIF no Linux sem necessidade de instalar aplicativos
Atualizar Debian Online de uma Versão para outra
Instalando Discord no Debian 13
Instalar driver Nvidia no Debian 13
Redimensionando, espelhando, convertendo e rotacionando imagens com script
Software livre - será que eu estou tão errado assim? (9)
Boot do PosRog so funciona em notebook (1)