我有一個函數getNum(),它從文件中獲取一個數字並返回它。當我回到getNum()時,我已經失去了指針,並從文件再次開始。我想知道如何獲取getc的位置,然後返回到那個地方。我無法在手冊或論壇中找到如何操作。謝謝。 #include <stdio.h>
#include <stdlib.h>
int getNum();
int getLine();
int getMatrix();
我想使用getch函數來獲得一個字符...所以用戶只能輸入Y或N字符..但while循環不工作...我需要幫助!由於 #include <stdio.h>
main(){
char yn = 0;
printf("\n\t\t Save changes? Y or N [ ]\b\b");
yn = getch();
while (yn != 'Y' ||