
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");
}
Gentoo binário em 2026: UEFI, LUKS, Btrfs e Systemd
Trabalhando Nativamente com Logs no Linux
Jogando Daikatana (Steam) com Patch 1.3 via Luxtorpeda no Linux
LazyDocker – Interface de Usuário em Tempo Real para o Docker
Usando dracut e dispensando genkernel no Gentoo + LUKS + Btrfs
Curso GRÁTIS: OCS Inventory NG - Do Deploy ao Hardening com foco em Segurança da Informação!
Instalando fontes via script no Nautilus Scripts no Gnome do Debian 13
Instalar Linux em notebook Sony Vaio VPCEG13EB (3)
VirtualBox no Ubuntu 25.10 sem redimensionam... automatico. (1)
GLPI Não atualiza Inventario (0)









