Search found 2 matches

by B14CKD24G0N
Thu Dec 09, 2010 2:44 pm
Forum: Volume 105 (10500-10599)
Topic: 10528 - Major Scales
Replies: 2
Views: 1090

Re: 10528 Major Scales Wrong Answer Problem

Can anyone help me?
I didn't know, why my code is get a wrong answer.
Thx.
by B14CKD24G0N
Thu Dec 09, 2010 2:42 pm
Forum: Volume 105 (10500-10599)
Topic: 10528 - Major Scales
Replies: 2
Views: 1090

10528 Major Scales Wrong Answer Problem

#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int hurufToInt(char* huruf) {
if (!strcmp(huruf,"C")) return 0;
else if (!strcmp(huruf,"C#")) return 1;
else if (!strcmp(huruf,"D")) return 2;
else if (!strcmp(huruf,"D#")) return 3;
else if (!strcmp(huruf,"E")) return 4;
else if ...

Go to advanced search