i'm trying not to use linked lists...i don't understand it!
Type: Posts; User: joeymaharaj
i'm trying not to use linked lists...i don't understand it!
i know...but its destroying the fundamentals of the program! the basic input and output isnt working now!
i tried it. the thing is...i dont want to set a definite amount of locations in the array...and without that my program crashes!
i did, but it was giving errors when i tried to output from the file...so i tried something different! but i may have to revert :/
i understand sorting...in my case i dont have an array but im reading the entire file!
Ok so i basically want to sort by, as you said, age, but im not usings any arrays throughout my program! so i cant use arrays to sort!
#include <stdio.h>
#include <stdlib.h>
struct...
yes its a struct! but for input and output i used no arrays
struct database{
char fname[50];
char lname[50];
int age;
char gender[50];
int...
Hi, i'm trying to sort a structure but its not set to any specific amount. However i'm trying to apply a bubble sort but the struct is not have an array! Is there any way to sort without an array??
Thanks alot for all the help guys
well that was my plan fro the beginning! but i have no idea how to start a linked list! help!!
hey thanks for the info but im still not sure how to use it :/ would the fgetc allow me to search the file and sort it ??
Hi, is there anyway to read an entire file and print in on screen? file consists of strings and integers!
i have tried a different approach to the program. im using the stuct method rather than typdef struct! this way i'm not using an array to enter information. And it seems to be writing to the file...
hey i did as you asked and it seems to be working!...btw what type of compiler do you recommend jweoblewski44?
#include <stdio.h>
typedef struct{
char name[50];
int age;
...
if i put more it crashes just like it did before!
im using Dev C++ on win7 i did the program before and it worked with static arrays! i trying it again and show you! maybe you can help me from there?
ok i put the function prototypes outside! and it seem to be running properly for 2 sets of data ONLY :/ not more!
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct
{...
yes i realized :/ thanks but i rushed to put the code online so i didnt check it over properly :/
the menu function i am using works fine..ok its like this. When i enter 2 sets of info (input function) the outputs works fine show the 2 sets of info! however if and add another set of info (now 3...
i just put the input output and files functions
Its basically a database for a sports day! I start with a menu to either, as mentioned before, input, output, sort and searching. I have just started and i only know the basics! So i tried to put...
hi
Im trying to create a program that would be able to carry out a certain number of tasks any number of times undefined by the user! I was told to use linked list or dynamic arrays but i dont know...