void viewAllBooks() { char bookID[20]; for (int i = 0; i < numBooks; i++) { printf('查询结果:\n'); printf('编号:%s\t', books[i].bookID); printf('书名:%s\t', books[i].bookName); printf('作者:%s\t', books[i].author); printf('数量:%d\t', books[i].amount); printf('出版社:%s\n', books[i].pub);

    while (i == numBooks) 
    {return;}
}

}

C语言代码优化:如何让控制台输出格式整齐且占满屏幕?

原文地址: https://www.cveoy.top/t/topic/oSWg 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录