Search:

Type: Posts; User: abmoh

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    447

    Why is my program not working

    i want to write a simple country code program. the program will ask the user to enter a country code. if the country code number matches to the struct then it gives out a result
    if the user enters a...
  2. Replies
    3
    Views
    595

    Thank you for your reply. the solved the first...

    Thank you for your reply. the solved the first issue by initializing my array to zero a[i]=0
    but about the second point. i might have been unclear with my explanation but what i want my program to...
  3. Replies
    3
    Views
    595

    issues with arrays

    So the problem that i have with my code is the following:

    1. when i run the program and enter view (v) the array is suppose to be empty but instead i get this [21696 1 ]. after i reset the array...
  4. Replies
    3
    Views
    671

    find the largest element

    So first of my program is written in a foreign language, sorry about that.
    What i'm trying to program is a calculator that sums upp numbers. And the program will terminate when the user writes a...
  5. Thread: Delete an array

    by abmoh
    Replies
    4
    Views
    580

    okay but what happens to an array when it is...

    okay but what happens to an array when it is deleted

    for example

    [10, 20, 30, 40 , 50]

    how does it work when we delete index position nr 2 = [30]
  6. Thread: Delete an array

    by abmoh
    Replies
    4
    Views
    580

    Delete an array

    Can someone explain to me the process of the array deletion.
    steg by step so that i understand the whole process thank you. please dont forget to explain what happens in every loop and what happens...
  7. Replies
    22
    Views
    2,159

    I did not try to run the code since i did not...

    I did not try to run the code since i did not understand it. i have a deadline that soon expires and my teacher wants me to fix the issue.
    Everything seems to work except for the fact that i cant...
  8. Replies
    22
    Views
    2,159

    i have looked at both codes. but unfortunately...

    i have looked at both codes. but unfortunately its a little bit too complicated for a beginner like me


    i was wondering is there any possibility with my current code at hand that there is a ...
  9. Replies
    22
    Views
    2,159

    i just tried to remove these three lines but...

    i just tried to remove these three lines but still nothing :(
  10. Replies
    22
    Views
    2,159

    I was able to change so that my savetofile...

    I was able to change so that my savetofile inserts antal_varor
    so that when it comes around to readfromfile it already contains the the right nr of antal_varor

    but the new issue is that my output...
  11. Replies
    22
    Views
    2,159

    I will as good as possible try to explain the...

    I will as good as possible try to explain the issue that i have with my program. in my int main () i have declared that int antal_varor=0.
    so when my readfromfile function is called upon



    void...
  12. Replies
    22
    Views
    2,159

    What should i insert into my while loop to insure...

    What should i insert into my while loop to insure that it does not loop more than required?




    void readFromFile(char file[], int *antal_varor, struct storagemanipulation *inventory)
    {
    ...
  13. Replies
    22
    Views
    2,159

    Thank you for helping. this is my current code. ...

    Thank you for helping. this is my current code.
    it is still not working and i am stuck. Dont know what to do to fix this problem



    void readFromFile(char file[], int *antal_varor, struct...
  14. Replies
    22
    Views
    2,159

    John i declared the array as you said in the two...

    John i declared the array as you said in the two functions. and i got rid of my file parameter but i still cant read back my saved inputs.

    do you mind posting an example using my program?

    Thanks
  15. Replies
    22
    Views
    2,159

    My C Programming Files I/O are not working

    I am new to c programming language so bare with me.
    I have written a database that stores products using a struct. This database inserts new products (product number, product name and product...
  16. Replies
    2
    Views
    553

    Thaaaank u soooo much man. U dont understand how...

    Thaaaank u soooo much man. U dont understand how much i have put into fixing that issue.
    Dude u are awesome.
  17. Replies
    2
    Views
    553

    how to delete in c

    I have written a simple database program that stores products. this database has a few functions one of them is a delete function. this delete function's job is to delete a certain product.
    ...
Results 1 to 17 of 17