我正在尝试运行一个 React Native 项目,在尝试启动它后,它产生了一个我正在尝试调试的错误,但是在尝试调试该错误时,命令卡住了。
我试过使用'react-native log-android',但由于某种原因它卡在'Starting logkitty'
这是代码:
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main() //main function
{
// Body of the main function starts here.
double c5,c0,semitone_ratio,frequency; //Defining the middle C, the lowest note in MIDI, the ratio and frequency.
char message[256];
int midinote = 0;
char* result;
semitone_ratio = pow(2,1/12.0); //Calculating the semitone ratio.
c5 = 220.0 * pow(semitone_ratio, 3); //Calculating the Middle C Frequency using A5 = 440 Hz and raising it up 3 notes.
c0 = c5 * pow(0.5,5); //Calculating C0 by …Run Code Online (Sandbox Code Playgroud)