I am trying to make a simple app that plays a sound when pressing a specific number but whatever I enter it plays the first song for some weird reason.
#include <stdio.h>
#include <Windows.h>
#include "MMsystem.h"
void main(void){
printf("\t\t\t\t\t\tCh00se A M3m3\n\n");
printf("\t\t\t\t\t\t1.Quick Maths\n");
printf("\t\t\t\t\t\t2.Crippling Deprresion");
int MemeNumber;
scanf_s("%d", &MemeNumber);
if (MemeNumber = "1")
{
PlaySound(TEXT("BigShaq.wav"), NULL, SND_SYNC);
}
if (MemeNumber = '2')
{
PlaySound(TEXT("CripplinD.wav"), NULL, SND_SYNC);
}
getch();
}