
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
Gentoo: Trocando wpa_supplicant pelo iwd no NetworkManager (Systemd)
OCS Inventory NG: Instalação de Agentes Linux e Windows + Autenticação HTTP
Recriar Links Simbólicos Quebrados
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!
Removere linux-image-6... [RESOLVIDO] (2)
Quando vocês pararam de testar distros? (19)
O que houve com slackware ??? (6)









