Search:

Type: Posts; User: amohammed63

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    4,206

    First of all, thank you for helping. I'm working...

    First of all, thank you for helping. I'm working on a university course project and we don't take memory fragmentation in consideration.

    What I did that when I do insertion I check if count == 0.8...
  2. Replies
    2
    Views
    4,206

    Resizing hash table

    Hi,

    As the title, my questions is about hash table. I implemented all functions to be used in open addressing - quadratic probing. I created the hash table with initial size entered by me, and...
  3. Replies
    7
    Views
    8,857

    -5579207423999930400.0000 this is the value of...

    -5579207423999930400.0000 this is the value of multiplying 16 equations and substitute x = 5. So that why I'm looking for long double.
  4. Replies
    7
    Views
    8,857

    I'm using GNU GCC compiler on Windows 10, running...

    I'm using GNU GCC compiler on Windows 10, running the same code you wrote in my computer gives 0.0000.
  5. Replies
    7
    Views
    8,857

    Printing long double gives zero

    Hello,

    I have a project which is performing addition, multiplication and subtraction on a file of equations. Adding or subtracting a big number of equations and substituting a value of x in the...
  6. Replies
    27
    Views
    24,314

    Thank you @Salem and @laserlight for helping, I...

    Thank you @Salem and @laserlight for helping, I solved the problem but editing the find function, it works on copying the data of the original linked list and performs all operation on the copy and...
  7. Replies
    27
    Views
    24,314

    Sorry for that, I posted my full code following...

    Sorry for that, I posted my full code following your instructions.
  8. Replies
    27
    Views
    24,314

    Here's my code #include ...

    Here's my code



    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <ctype.h>
    #include <math.h>
  9. Replies
    27
    Views
    24,314

    AAAAH, I'm really tired. In my project I have a...

    AAAAH, I'm really tired. In my project I have a menu and the user choices is unlimited so that deep copying does not work since that the copy of the linked list is also affected, if the user chooses...
  10. Replies
    27
    Views
    24,314

    #include#include typedef...

    #include<stdio.h>#include<stdlib.h>

    typedef struct number
    {
    int value;
    } number;

    number *add(number *x, number *y);
    number *multiply(number *x, number *y);
    int main() {
  11. Replies
    27
    Views
    24,314

    I'm a beginner, I was searching for videos to...

    I'm a beginner, I was searching for videos to show what I'm looking for and I didn't found anything. I have two simple implementations of single linked list but both do the same behavior. I came here...
  12. Replies
    27
    Views
    24,314

    typedef struct number { int value; } number;...

    typedef struct number { int value;
    } number;

    number *add(number *x, number *y);

    number *multiply(number *x, number *y);

    int main() {
    number x, y;
    x.value = 50;
  13. Replies
    27
    Views
    24,314

    First of all, thank you for helping and guiding....

    First of all, thank you for helping and guiding. I'll change all variables and lists with proper name. My aim was only to run the code firstly.




    The code is well arranged but when I copied it...
  14. Replies
    27
    Views
    24,314

    typedef struct node { double coefficient,...

    typedef struct node { double coefficient, power;
    struct node *Previous, *Next;
    } *equationList;

    typedef equationList node;
    typedef equationList resultList;



    void...
  15. Replies
    27
    Views
    24,314

    Can I show you few parts of my code and decide...

    Can I show you few parts of my code and decide with me if I can change something in it or go to copying function?
  16. Replies
    27
    Views
    24,314

    I have three functions calls, is not hard to copy...

    I have three functions calls, is not hard to copy the linked list three times?
  17. Replies
    27
    Views
    24,314

    I have tried this, but also it changes the list...

    I have tried this, but also it changes the list in created in the main.



    I know that but I really don't know how to deal with it since my data are lost during the pass between functions. I'm...
  18. Replies
    27
    Views
    24,314

    Firstly, I'm doing my best to skip deep copying....

    Firstly, I'm doing my best to skip deep copying. In my code, I have an array of linked lists that is passed to the addition function for example, I tried many ways to send it by value it and I...
  19. Replies
    27
    Views
    24,314

    Passing linked list by value.

    Hi,

    I have created a code that adds/multiplies/subtracts a file of polynomials. I have used doubly linked list (as required in the project), it works correctly as well as all functions. I'm facing...
  20. Never mind, I solved everything. Thank you for...

    Never mind, I solved everything.
    Thank you for helping.
  21. Yeah it's known that the line contains 8 IDs....

    Yeah it's known that the line contains 8 IDs.
    This code keeps reading the first ID

    fgets(buffer, BUFSIZ, in); for (i=0; i<8; i++){
    sscanf(buffer, "%d", &AR[i].e_num);
    }

    or...
  22. How can I use sscanf for the first line which is...

    How can I use sscanf for the first line which is a integer data? Also, I really don't know how to read line by line by using fgets.
    If you could give me few hints about buffer since I don't know it.
  23. Help in reading from file using fgets with array struct.

    Hello my dears,
    I have a problem regarding to reading from a file.
    The problem is that I have 4 lines in the text file, the first is the IDs of employees, and the second line is their names, so I...
  24. Replies
    11
    Views
    7,158

    Thank you very much for your time, sir. It works...

    Thank you very much for your time, sir.
    It works now after this change:

    for (n=0; n<3; n++){ b=x[j][n];
    x[j][n]=x[i][n];
    x[i][n]=b;
    ...
  25. Replies
    11
    Views
    7,158

    The matrix before swapping: 5 2 3 6 5 8 9 2 7...

    The matrix before swapping:
    5 2 3
    6 5 8
    9 2 7
    8 9 8
    When I run the code I provided above the result is:
    6 5 8 25
    8 9 8 19
    5 2 3 18
    9 2 7 10
Results 1 to 25 of 30
Page 1 of 2 1 2