Week11
step01
程式碼:
step02
程式碼:
step03
程式碼:
step04
程式碼:
| #include <windows.h> | |
| int main() | |
| { | |
| PlaySound("do_re_mi\\do.wav",NULL,SND_SYNC); | |
| PlaySound("do_re_mi\\do.wav",NULL,SND_SYNC); | |
| PlaySound("do_re_mi\\do.wav",NULL,SND_SYNC); | |
| PlaySound("do_re_mi\\re.wav",NULL,SND_SYNC); | |
| PlaySound("do_re_mi\\re.wav",NULL,SND_SYNC); | |
| PlaySound("do_re_mi\\re.wav",NULL,SND_SYNC); | |
| } |
step05
step06
程式碼:
| #include <windows.h> | |
| #include <GL/glut.h> | |
| void display() | |
| { | |
| glutSolidTeapot(0.3); | |
| glutSwapBuffers(); | |
| } | |
| void keyboard(unsigned char key,int x,int y) | |
| { | |
| if(key=='1') PlaySoundA("C:\\Users\\Administrator\\Desktop\\do_re_mi\\do.wav",NULL,SND_ASYNC); | |
| if(key=='2') PlaySoundA("C:\\Users\\Administrator\\Desktop\\do_re_mi\\re.wav",NULL,SND_ASYNC); | |
| if(key=='3') PlaySoundA("C:\\Users\\Administrator\\Desktop\\do_re_mi\\mi.wav",NULL,SND_ASYNC); | |
| } | |
| int main(int argc,char**argv) | |
| { | |
| glutInit(&argc,argv); | |
| glutInitDisplayMode(GLUT_DOUBLE | GLUT_DEPTH); | |
| glutCreateWindow("week11"); | |
| glutDisplayFunc(display); | |
| glutKeyboardFunc(keyboard);///今天新教的 | |
| glutMainLoop(); | |
| } |
step07
setting👉compiler👉Linker Setting 新增winmm
step12
上傳檔案git指令
1. git指令
2. cd desktop
3. git clone https://github.com/你的帳號/2023graphicsa
4. cd 2023graphicsa
5. start .
6. git add .
7. git status
8. git config --global user.email "電子郵件"
9. git config --global user.name "帳號名chiche0306"
10. git commit -m "week"
11. git push













沒有留言:
張貼留言