How to add Backgound music in C along program execution [closed] - c

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 days ago.
Improve this question
Is it possible to play backgound music in Cduring the program ongoing, like bgm for game on going, using PlaySound(), currently using code::block.
It does play the sound effect after the during the winning.
if(i == 1)
{
printf("Player %d win!\n", --player);// -- player is to get the player before current player, as the prev. while will go to next player
PlaySound(TEXT("applause.wav"),NULL,SND_SYNC);
}

Related

C program to print vowels [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 days ago.
Improve this question
I have declared an array of vowels and is trying to compare the input string with this vowel array to count the number of vowels. It doesn't seem working. The output seems to be the multiple of input string and 5.
How to fix this?
vowels="aeiou"

How to dynamically change the writing file inside a for loop [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 months ago.
Improve this question
I am writing a Monte Carlo simulation in which I take "measurements" of the magnetization every 1 correlation time. I want to have 3 for loops. The first is to change the temperature and inside it (with constant temperature) 2 other for loops in which I run e.g 10 correlation times, so 10 measurements of M. My question is, how can I switch the txt file in which I write (with fprintf) M, for different temperatures? Shape of the 3 loops I want

DevC++ is not reading typedef struct in my code [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I'm currently making this program as an activity in class. There's an error popping up when I called the struct inside my main(). I'm posting a picture of the code and where DevC++ was saying where the error is:here's the code
studentRecord[5]; is like doing int[5];.
That will not work.
Provide a variable name.
studentRecord hi[5];

Error in Batchfile, Won't Run Further Than A Certain Part In the Code (BATCH) [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
which you can download here since it's too big to put here: https://www.mediafire.com/?vks3a3fwhbj4nay won't go further than the code that rojo posted on my question here: Get A Batch Error When Running?
P.S Please don't tell me ways I can improve my code, I know it's messy and I did't loop some stuff and the login system is kinda screwed but I'm still just starting batch coding
EDIT: TO REPRODUCE THE PROBLEM FIRST TYPE skip AND PRESS ENTER THEN TYPE startx AND PRESS ENTER THEN TYPE IN AS USER:Cool841555 and PASS:somerandompassthatidontusesincethisisgonnabeuploadedto
Change
:end_welcome
goto :EOF
to
:end_welcome
goto :MENU

How do you type something on the same line of text in C [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I was wondering how can you type something in one line in C?
This is the normal way it outputs.
Output
>
<text>
Instead
> <text>
From your tags, I'm guessing you're using printf(). Simply leave out the "\n" character, which means "newline.".
In other words.
printf("> "); printf("text\n");
This will print:
> text

Resources