Search:

Type: Posts; User: eleleljubraniii

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    211

    malloc fot int* with struct

    typedef struct serie {
    char serieName[20];
    int code;
    int rank;
    int* watchingDetails;
    int watchingnumber;
    }serie;

    void main()
    {
  2. Replies
    5
    Views
    314

    serie** getUnifyDatabaseDetails() { serie* a;...

    serie** getUnifyDatabaseDetails()
    {
    serie* a;
    serie **series_list;
    FILE* f3, *f;
    int fur = 3, i;
    char name[20];
    int linesnum=0;
    int* forcode, *foramount;
    a = (serie*)malloc(1000);
  3. Replies
    5
    Views
    314

    yeah i canot change the function signature and...

    yeah i canot change the function signature and return type, sreees was changed to series_list ;) thank you, i will try to done this.
  4. Replies
    5
    Views
    314

    i cant change my function :/

    i cant change my function :/
  5. Replies
    5
    Views
    314

    read file data:-

    When an option is selected, the program will read the series.txt file data
    The data will be stored in memory into an array of pointers.
    In addition, the watch.txt file into which the watch data...
  6. Replies
    15
    Views
    508

    and the output file need to look like this: The...

    and the output file need to look like this:
    The Crown,2,3
    Stranger Things,7,2
    Money Heist,8,4
    Black Mirror,10,2
    House of Cards,22,6
    Euphoria,35,5
    The Boys,36,5
    Chernobyl,40,2
    Killing Eve,99,1
  7. Replies
    15
    Views
    508

    first file: The Crown,2,3,Y Stranger...

    first file:

    The Crown,2,3,Y
    Stranger Things,7,3,N
    Black Mirror,10,2,Y
    Friends,12,25,N
    House of Cards,22,2,Y
    Euphoria,35,5,Y
    The Boys,36,2,N
    Bodyguard,67,12,N
  8. Replies
    15
    Views
    508

    int unifyDatabase(FILE* f1, FILE* f2) { FILE*...

    int unifyDatabase(FILE* f1, FILE* f2)
    {
    FILE* f3;
    char sname1[22], sid1;
    int i, snum1, sstatus1, fur1=4, fur2 = 4;
    char sname2[22], sid2;
    int snum2, sstatus2;


    f3 =...
  9. Replies
    15
    Views
    508

    how i can do this part withou printing the same...

    how i can do this part withou printing the same line twice or not printing some lines ?


    fur1 = fscanf(f1, " %21[^,] ,%d ,%d , %c", name1, &sum1, &status1, &sid1);
    fur2 = fscanf(f2, " %21[^,]...
  10. Replies
    15
    Views
    508

    i just have done the scan int...

    i just have done the scan


    int unifyDatabase(FILE* f1, FILE* f2)
    {
    FILE* f3;
    char name[22], sid;
    int i, num, status, fur1, fur2;
  11. Replies
    15
    Views
    508

    i have the #include

    i have the #include <stdio.h>
  12. Replies
    15
    Views
    508

    printfbothfiles(FILE * f1,FILE* f2) { char...

    printfbothfiles(FILE * f1,FILE* f2)
    {
    char sname[22], sid;
    int snum, sstatus;


    f1 = fopen("s.txt", "r");
    f2 = fopen("n.txt", "r");
    printf("%d---%d", f1, f2);
  13. Replies
    15
    Views
    508

    c programing file scanning

    how do i scan a name,number,number,status from a file thats look like this:
    Big Little Lies,355,7,Y
    Riverdale,401,1,N
    The X-Files,402,3,Y
    Dark,444,2,Y

    how do i ingore all the "," without...
  14. Replies
    6
    Views
    303

    void print_all_Stanga_options(int printfirst, int...

    void print_all_Stanga_options(int printfirst, int printsocend, int firstteam, int socendteam)
    {
    if (firstteam == printfirst && socendteam == printsocend)
    {
    printf("%d:%d ", printfirst,...
  15. Replies
    6
    Views
    303

    im okay with that code, those are for making sure...

    im okay with that code, those are for making sure i get numbers just betwen 1-15,,
    my problem is with "void print_all_Stanga_options(int printfirst, int printsocend, int firstteam, int socendteam)"...
  16. Replies
    6
    Views
    303

    the pictures i added is what i want to get.

    the pictures i added is what i want to get.
  17. Replies
    6
    Views
    303

    void Stanga() { int firstteam, socendteam;...

    void Stanga()
    {
    int firstteam, socendteam;
    firstteam = first_team_score();
    socendteam = socend_team_score();
    print_all_Stanga_options(0, 0, firstteam, socendteam);
    }


    int...
  18. Replies
    6
    Views
    303

    c programing recursion homework.

    so i have a homework in recursion , i have to write a function that gets 2 scores of players, and print all the options to get the last score, every player can get 1 point or 2 points per single...
Results 1 to 18 of 18