Thread: I am having trouble with a C programming question.

  1. #1
    Registered User
    Join Date
    Jun 2020
    Posts
    1

    Question I am having trouble with a C programming question.

    Can you send the code that I can run the program.


    1) The names and calorie values of the products sold in a buffet are kept in the calori.txt file.
    Bilgileri With the program you will write, read the information in this file and print it on the screen.
     Then print the information about the order on the order.txt file using a structure.
    Yemek The name of the meal ordered in the structure, how many orders were placed and the calorie value of the meal will be kept.
     How many different products to order will be asked to the user, and dynamic memory will be allocated for the structure array according to the response received.
    Adet The total calorie value of the whole order calculated with the menstrual information and calorie values of the ordered dishes will be displayed on the screen.
    Dolay Indirect area selection operator will be used in the program.
    Landırma Termination commands related to file pointers and memory areas that are out of use will also be written.




    Please use only this librarys if you need it >>
    include<stdio.h> , include<string.h> ,
    include<stdlib>, include<math.h> ,include<ctype.h>

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    27,922
    Please do your own homework. You're free to come here to ask questions if you're stuck, but not to cheat by getting other people to do your homework for you.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. SOcket programming trouble
    By sodja in forum Networking/Device Communication
    Replies: 1
    Last Post: 01-11-2008, 10:20 AM
  2. Programming trouble.
    By francusmag in forum C Programming
    Replies: 10
    Last Post: 11-29-2007, 06:36 AM
  3. im a programming noob, having trouble with arrays
    By gb420 in forum C Programming
    Replies: 2
    Last Post: 04-12-2004, 12:38 PM
  4. im a programming noob, having trouble with arrays
    By scoot in forum C Programming
    Replies: 5
    Last Post: 05-07-2002, 01:27 PM
  5. having trouble programming
    By amma21 in forum C Programming
    Replies: 6
    Last Post: 11-11-2001, 11:21 AM

Tags for this Thread