تذكرني !
تابعنا على
Bleach منتديات العاشق
أرشيف قسم البرامج هذا القسم خاص لجميع المواضيع القديمة والمنتهية من جميع الاقسام، وبالإضافة للمواضيع المخالفة للقوانين العامة والخاصة .

  #1  
قديم 10-30-2010, 08:14 PM
الصورة الرمزية abdowin  
رقـم العضويــة: 73316
تاريخ التسجيل: Oct 2010
الجنس:
العـــــــــــمــر: 33
المشـــاركـات: 6
نقـــاط الخبـرة: 10
برنامج صغير ب س++ لحفظ المعلومات

dimanche 24 octobre 2010

les fichiers d'enregistrements.cpp


donload:les fichiers d'enregistrements.exe
#include <stdio.h>
#include <conio.h>
#include<stdlib.h>

FILE *index;
char rep;
struct stagiaire
{
char nom[20];
char prenom[20];
int mtr;
int dn;
};
stagiaire stg;
void creation()
{
index = fopen("C:\\Documents and Settings\\test.txt","w");

printf("tapez le nom ");
scanf("%s",&stg.nom);
printf("tapez le prenom ");
scanf("%s",&stg.prenom);
printf("tapez le mtr ");
scanf("%d",&stg.mtr);
printf("tapez le dn ");
scanf("%d",&stg.dn);

fprintf(index,"%s\n%s\n%d\n%d",& stg.nom,& stg.prenom,& stg.mtr,& stg.dn);

fclose(index);

}


void ajout(){
index = fopen("C:\\Documents and Settings\\test.txt","a");

{ printf("tapez le nom ");
scanf("%s",&stg.nom);
printf("tapez le prenom ");
scanf("%s",&stg.prenom);
printf("tapez le mtr ");
scanf("%d",&stg.mtr);
printf("tapez le dn ");
scanf("%d",&stg.dn);

fprintf(index,"%s\n%s\n%d\n%d",stg.nom,stg.prenom, stg.mtr,stg.dn);}
fclose(index);}
void consultation()
{ fscanf(index,"%s\n%s\n%d\n%d",stg.nom, stg.prenom,stg.mtr,stg.dn);
printf(" nom %s",stg.nom);
printf("prenom %s",stg.prenom);
printf("mtr %d ",stg.mtr);
printf("dn %d ",stg.dn);
fclose(index);
}
main()
{ int ch;
while(ch!=4)
{
system("cls");
printf("taper**************1-creation\n");
printf("taper**************2-ajout\n");
printf("taper**************3-consultation\n");
printf("taper**************4-quitter\n");

printf("entrer votre choix:");
scanf("%d",&ch);
if(ch==1)

creation();
if (ch==2)
ajout();
if (ch==3)
consultation();

}
getch();
}
source de allprogramation
 


الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1)
 
أدوات الموضوع
انواع عرض الموضوع

تعليمات المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code is متاحة
كود [IMG] متاحة
كود HTML معطلة

الانتقال السريع

المواضيع المتشابهه للموضوع برنامج صغير ب س++ لحفظ المعلومات:
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
برنامج IP Locator 1.0 برنامج لمعرفة مكان الاى بى وبعض المعلومات عنه moamen0010 أرشيف قسم البرامج 0 07-27-2010 08:31 AM
برنامج يعطيك جميع المعلومات حول cpu المعالج ali007amer أرشيف قسم البرامج 1 03-19-2010 02:35 AM
برنامج كنز المعلومات الثقافية جد رائع العاشق 2005 أرشيف قسم البرامج 0 05-11-2009 05:50 PM
برنامج كنز المعلومات الثقافية جد رائع العاشق 2005 أرشيف قسم البرامج 0 05-11-2009 05:50 PM
cpu-z1.49.2 برنامج وحدة المعالجة المركزيةلجمع أهم المعلومات عن جهازك العاشق 2005 أرشيف قسم البرامج 0 02-09-2009 04:20 AM

الساعة الآن 01:05 PM.


Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.

كُل ما يُكتب أو يُنشر في منتديات العاشق يُمثل وجهة نظر الكاتب والناشر فحسب، ولا يمثل وجهه نظر الإدارة

rel="nofollow" maxseven simplicity and clarity