Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  graph.c
Language: C/C++
Code:
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>
#include<math.h>
#include<stdbool.h>
#include <windows.h>
#include <conio.h>
#include"add.h"
#include"menu.h"
#include"utilities.h"
#include"linked.h"

void function_add(){
  node1 *head = create1();
  printf("Hope you don't have to this for a long time.......nn");

  char country[50], countryName[50];
  strcpy(countryName, country_name);
  strcpy(country, strcat(countryName, ".txt"));

  //function for input in the linked list and file handling
  FileHandle1(head, country);
  printf("Data for the last 3 days were: n");
  //printing the last 3 days
  displayLast_3(head);
  deleteList(head);
  //write call
  write(head, country);
  printf("Thank You for adding to the database..n");
  printf("Stay Home, Stay Safen");
  delay(8);
  exit(-1);
}


void main(){
  clrscr();
  display_welcome_menu();
}





          
Comments: