C语言基础编程案例哪里有?
请问各路大神哪里有C语言基础编程案例,本人大一新生,作业真是要我老命
#include<stdio.h> void move( char , char , char , unsigned ); int main( void ) { unsigned n; scanf( "%u",&n ); move( 'A' , 'B' , 'C' , n ); return 0; } void move( char a , char b , char c , unsigned n ) { if ( n == 0 ) return ; move( a , c , b , n - 1 ); printf( "%c move %c\n" , a , c ); move( b , a , c , n - 1 ); }
[此贴子已经被作者于2020-11-23 14:12编辑过]