Can anyone help me?
I didn't know, why my code is get a wrong answer.
Thx.
Search found 2 matches
- Thu Dec 09, 2010 2:44 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10528 - Major Scales
- Replies: 2
- Views: 1090
- 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 ...
#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 ...