Тема: Помилки. Як вводити дані з клавіатури ?
перевірне на помилки! і як зробити так щоб дані можна було вводити з клавіатури?
#include <iostream>
#include <stdio.h>
#include <conio.h>
#include <string.h>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
    setlocale(LC_ALL, "rus");
    char ch,sl[200];
    char bin[]="ФИО: ********** \n Дата рождения: ******** \n Место жительства: ******* и так далее"
        FILE *pr,*pf;
    pf=fopen("new1.bin","wb+");
    cin.sync();
    cin.clear();
    fprintf(pf,"%s \n",bin);
    fclose(pf);
    pf=fopen("new1.bin","rb+");
    pr=fopen("new2.bin","wb+");
    while(!(feof(pf))
    {
        ch=getc(pf);
        putc(ch,pr);
    }
    fclose(pr);
    rewind(pf);
    fgets(sl,200,pf);
    pr=fopen("new2.bin","rb+");
    while(!(feof(pr))
    {
        ch=getc(pr);
        putchar(ch);
    }
    fclose(pf);
    fclose(pr);
    getch();
    return 0;
}