ఒకవేళ గది తీసుకునేట్లైతే.. అది గ్రంథాలయం దగ్గర ఐతే బాగుంటుంది. పద్యనాటకాలు శాస్త్రీయ సంగీతం హరికథ వంటి సాంస్కృతిక కార్యక్రమాలు జరిగే ప్రాంతానికి దగ్గర్లో ఉంటే ఇంకా మంచిది. రైల్వే స్టేషన్ కి కూడా దగ్గర ఐతే ఇంకా అద్భుతం. గది బయట/ ఇంటిపైన చదువుకోవటానికి కాస్త ఖాళీ స్థలం ఉంటే మేలు.. తప్పనిసరి కాదు. ఇంటి ఇరుగు పొరుగు కళాభిరుచి కలవారైతే .. ఆ గది అనువైనదన్నట్టు. సాధారణ గది చాలు. మీరు ఇరుకుగా కాకుండా కాస్త విశాలంగా(16-49 చ.మీ) శుభ్రంగా కాంతివంతంగా సహజ గాలి వెలుతురుకు లోటు లేకుండా ఉండాలి. పురుగులు/పాకేవి/ఎగిరేవి వంటి వాటి సమస్య ఉండరాదు.
100% C prog to write only పెద్ద అక్షరాలు (uppercase letters) into file and subsequently print the content
/*dedicated to student who asked genuine doubt and made me think*/ /*this program will create a file where only uppercase (A-Z) letters get written into the file. the content is later read and displayed on to the screen */ #include<stdio.h> #include<conio.h> void main() { char ch; FILE *fptr; fptr=fopen("nayA1601.txt","w"); printf("\n start entering the data: \n "); ch=getchar(); while(ch!='z') { if((ch>=65 &&ch<=92)) //only uppercase letters get written into file fputc(ch,fptr);// only this line is inside the if condition ch=getchar(); } fclose(fptr); printf("\n writing is over. lets read now:\n"); fptr=fopen("nayA1601.txt","r"); printf("\n\n start reading the data from the file: \n "); while(!feof(fptr)) { ch=fgetc(fptr); putchar(ch); } fclose(fptr); getch(); }
కామెంట్లు
కామెంట్ను పోస్ట్ చేయండి
దయచేసి మీ సలహాలను సూచనలను స్పష్టంగా పేర్కొనగలరు. plz see that ur comments are 'acceptable' in a value based society.