Answers for "file"

0

FILE*

File* ptr
Posted by: Guest on June-12-2020
0

file

$ git help 
$ git help <command>
$ git reset --<file> /** remove ADD*/
$ git reset --soft/hard <commit> /** reset COMMIT: preserve changes/ dischard changes */	
$ git checkout --<file> /** DISCARD changes */
$ git checkout <commit> /** Jump between commits */
$ git checkout <commit> -- <file> /** Revert file to previous commit */
$ git merge --abort /** cancel MERGE */
$ git reset --hard HEAD^ /** Git reset to choosedcommit **/
Posted by: Guest on April-22-2021
0

file

#include<stdio.h>
#include<conio.h>
void main(){
	FILE * fp;
	char ch;
	char name[100];
	fp = fopen("a.txt","a");
	printf("y/n");
	scanf("%c", &ch);
	printf("%c", ch);
	while(ch == 'y'){
		printf("Enter name");
		scanf("%s", name);
		printf("%s", name);
		if(name[0] == 'a')
		fprintf(fp,"%s\n", name);
		printf("add y/n");
		ch = getche();
		
	}
	fclose(fp);
	getch();
}
Posted by: Guest on July-26-2021

Browse Popular Code Answers by Language