Search:

Type: Posts; User: John5

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    844

    Question about fscanf

    Hi everyone i have question how to use use fscanf when some words are separated with - or . or any other symbol.

    Example:
    I-have-Money
    I.dont.have.money

    I want to get this...
  2. Replies
    6
    Views
    854

    Don't tell me about career, if you can help help...

    Don't tell me about career, if you can help help me or leave this post.
  3. Replies
    6
    Views
    854

    There is only 39 lines of code and you can't...

    There is only 39 lines of code and you can't understand ?!
  4. Replies
    6
    Views
    854

    Spliting one array in two arrays

    Hi everyone i made program for spliting one array but it doesn't work


    #include <stdio.h>
    void split();
    {
    int a[50], b[50], c[100],n;
    }
    main()
    {
  5. Replies
    13
    Views
    647

    I try this but it doesn't work nt...

    I try this but it doesn't work

    nt delete_picture(struct picture S[],int n){
    int i=0,j=0;
    int z=0;
    for(i=0; i<n-1; i++)
    {
    if(S[i].size<20)
    {
    for(j=i;j<n; j++)
  6. Replies
    13
    Views
    647

    Can you show me how to make that inner loop for...

    Can you show me how to make that inner loop for shifting ?
  7. Replies
    13
    Views
    647

    I want to delete array element that have picture...

    I want to delete array element that have picture size smaller than 20.

    struct picture {
    char name[50];
    char extension[10];
    float size;
    char location[50];
    int position;
    };
  8. Replies
    13
    Views
    647

    I try that but it doesn't delete struct data for...

    I try that but it doesn't delete struct data for that element.
  9. Replies
    13
    Views
    647

    I made this but it doesn't delete them int...

    I made this but it doesn't delete them

    int delete_picture(struct picture S[],int n)
    {
    int i=0;
    int z=0;
    for(i=0; i<n-1; i++)
    {
    if(S[i].size<20)
    {
  10. Replies
    13
    Views
    647

    Yes i mean deleting element of array, can you...

    Yes i mean deleting element of array, can you give me some example how to delete element
  11. Replies
    13
    Views
    647

    Delete data from struct

    Hi everyone i have question how to delete data from struct. I made program for storing picture info and now i want to delete data for pictures that are smaller than 20byte.

    struct picture {
    ...
  12. Thread: Struct compare

    by John5
    Replies
    7
    Views
    732

    Yes i talk about array overrun how to fix that,...

    Yes i talk about array overrun how to fix that, it's work normaly for 1-2-3-4 elements but when i type 5 elements my program close.
  13. Thread: Struct compare

    by John5
    Replies
    7
    Views
    732

    Now i see problem with get out of array, can you...

    Now i see problem with get out of array, can you help me to fix this.

    int Compatible(struct Fruit S[],int n){
    int i;
    for(i=0; i<n; i++)
    {
    if(strcmp(S[i].color,S[i+1].color)==0)...
  14. Thread: Struct compare

    by John5
    Replies
    7
    Views
    732

    Ohh i forgot that strings I need to compare with...

    Ohh i forgot that strings I need to compare with strcmp function thanks for help, and that warnings and errors are from that i forgot to translate that parts to English.
    Anyway thanks for help...
  15. Thread: Struct compare

    by John5
    Replies
    7
    Views
    732

    Struct compare

    Hi everyone i have question how to compare some object of struct i have this code but it doesn't work.
    I compare color of fruits if some fruits have same color it needs to print them.

    #include...
  16. Replies
    15
    Views
    847

    I need this program for school i know that just...

    I need this program for school i know that just with loops is more practial but tell that to old school teaching program.
  17. Replies
    15
    Views
    847

    I don't know what anything to explain, from code...

    I don't know what anything to explain, from code above you can see that i work with matrix, not just with loops.
  18. Replies
    15
    Views
    847

    I need to make this program with matrix not just...

    I need to make this program with matrix not just with loops.
  19. Replies
    15
    Views
    847

    You can only enter marks from 1-10 in every row...

    You can only enter marks from 1-10 in every row you have 5 marks and there is 5 movies
  20. Replies
    15
    Views
    847

    I just need average mark for every movie and...

    I just need average mark for every movie and biggest average mark and what movie has biggest average mark.
  21. Replies
    15
    Views
    847

    Every row is marks just for one movie, i enter 5...

    Every row is marks just for one movie, i enter 5 marks for every movie
  22. Replies
    15
    Views
    847

    I change array in float but again is not giving...

    I change array in float but again is not giving me real result
  23. Replies
    15
    Views
    847

    Problem with calculating

    Hi all i make program for rating movies with matrix, I use 5 movies but calculating marks in not good it's give me some other numbers than real

    #include <stdio.h>int main()
    {
    int...
  24. Replies
    7
    Views
    647

    while(fscanf(fp, "%*d %31s %*d %ld", itemDesc,...

    while(fscanf(fp, "%*d %31s %*d %ld", itemDesc, &price)== 2)
    I don't understand what ==2 mean can you explain that part ?

    EDIT!!!
    J try this but didn't working and give me one...
  25. Replies
    7
    Views
    647

    I make this but just working for one items, how...

    I make this but just working for one items, how to fix it to work for all items ?

    #include <stdio.h>int main()
    {
    char st[3],nam[15],nmb[4],pr[5];
    int asd,i;
    char ch;
    int l=0;
    int c=0;...
Results 1 to 25 of 29
Page 1 of 2 1 2