Search:

Type: Posts; User: nevrax

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Thread: bubble sort

    by nevrax
    Replies
    1
    Views
    1,251

    bubble sort

    Hi,

    In one hour, it's my final exam. To be ready, I would greatly appreciate if someone could show me an example of the bubble sort to sort an array that contain a structure. If for example, I...
  2. Replies
    13
    Views
    2,081

    Ok, thanks for the info. Unfortunatly, I don't...

    Ok, thanks for the info. Unfortunatly, I don't really know what's non-stantard (except what you're telling me)since my teacher know nothing of C and she dosn't care at all about standard program. I...
  3. Replies
    13
    Views
    2,081

    you're right, I've posted to fast. With ...

    you're right, I've posted to fast. With


    fputs(TabEmployee[i],pFichier);

    I got the following message


    539 H:\420-2pf\Projet.cpp cannot convert ` AjouterEmploye()::EMPLOYE' to `const char*'...
  4. Replies
    13
    Views
    2,081

    this void AjouterEmploye(void)...

    this


    void AjouterEmploye(void)
    /*----------------------------------------------------------------------------*/
    {
    clrscr();
    gotoxy(20,23);

    int iNoEmploye;
  5. Replies
    13
    Views
    2,081

    This is what i'm trying to do but unfortunatly,...

    This is what i'm trying to do but unfortunatly, with a structure, I am not able to do something right. I would help me if I could have an example please.
  6. Replies
    13
    Views
    2,081

    Thanks, now I want to print a structure in a file...

    Thanks, now I want to print a structure in a file without overwriting it (because it's information about different person and I want them all in the file.)


    typedef struct {
    int iNo;
    ...
  7. Replies
    13
    Views
    2,081

    problem with struct

    Hi,

    I would like to know how to do something like that:


    scanf ("%d",iNoEmploye);
    &TabEmploye[iNoEmploye].iNo = iNoEmploye;

    Thanks
  8. Replies
    12
    Views
    3,155

    If you'd been good I belive I said many time...

    If you'd been good

    I belive I said many time that I wasn't good.
    Thanks for your help
  9. Replies
    12
    Views
    3,155

    Thanks for that lesson, I shall remember the...

    Thanks for that lesson, I shall remember the importance of identation. By the way, here is what the file mesage should look like.


    Produit 10 non trouve --> transaction IGNOREE
    Produit 12 non...
  10. Replies
    12
    Views
    3,155

    I added the braces but now, the output is repeted...

    I added the braces but now, the output is repeted more than once and th result is still wrong. I am currently desperatly trying to correct this logic mistake, as well as the other one concerning the...
  11. Replies
    12
    Views
    3,155

    I belive that the program ignore the if/else for...

    I belive that the program ignore the if/else for some reasons. I tried to give adress (&) to some values but this did not change anything. Since I'm far from being an expert, could someone please...
  12. Replies
    12
    Views
    3,155

    Ok, with those stupid mistake corrected, I'm...

    Ok, with those stupid mistake corrected, I'm starting to see the light at the end of the tunnel. Now, remember when I was saying that I was putting the missing numbers in a message file. Well, he...
  13. Replies
    12
    Views
    3,155

    I did the modification concerning the pointers,...

    I did the modification concerning the pointers, unfortunatly, my program still crash before writing anything in a file.


    More over u need to check for the files which u have opened for writing, i...
  14. Replies
    12
    Views
    3,155

    Problem with file

    Hi,

    I have some problem concerning files. I have a first one (PRODUIT.DAT) containing this.


    11 MEMOREXCD 29.99 20.75 100
    15 CARTOUCHENOIR 27.99 22.25 150
    18 CARTOUCHECOULEUR 49.99 38.50 20...
  15. Replies
    2
    Views
    1,895

    structure in array

    Hi,

    I'm pretty new with the notion of structure and I need some help. I would like to put, for example, the first name, last name, age and the phone number of a person in a structure like:

    ...
  16. Replies
    4
    Views
    1,342

    Forget that, everything work fine, you were right...

    Forget that, everything work fine, you were right about storage in too small arrays, I tough the mistake was elsewere because it was working with char (when we are tired, these are stupid deduction...
  17. Replies
    4
    Views
    1,342

    You're right, I totally agree that I shouldn't...

    You're right, I totally agree that I shouldn't put them in character array ( and my goal is to put them in arrays that match their variable type). But when I put


    int sLimitInfStocke[7][5]; ...
  18. Replies
    4
    Views
    1,342

    Simple array problem

    Hi,

    I have a file that look like this (for example)


    1111 6666 0.12 1234
    2222 7777 0.13 2345
    3333 8888 0.14 3456
    4444 9999 1.15 4567
    5555 1010 0.16 5678
  19. Replies
    19
    Views
    3,135

    By the way, when I read the numbers in my float,...

    By the way, when I read the numbers in my float, I would like that my sscanf dosn't ad 0 like he does (when I display my float, he show me 40.000000 instead of 40.0000) or (850.50000 instead of...
  20. Replies
    19
    Views
    3,135

    Thanks for your help in all this dwks. For my...

    Thanks for your help in all this dwks. For my personal culture I'll post a new thread and if no one know, I'll take your idea.
  21. Replies
    19
    Views
    3,135

    If you're speaking about sscanf...

    If you're speaking about


    sscanf (ligne, "%s %f %s %[^ ]",sIdentif,&fRegle,sType,sDescript);
    printf ("%s %f %s %s",sIdentif,fRegle,sType,sDescript);

    it dosen't work, he...
  22. Replies
    19
    Views
    3,135

    It doesn't really work. I tried with [^s]" which...

    It doesn't really work. I tried with [^s]" which work with qqq qqq qqq, but it dosn't work with sentences like "I'm playing rubic cube", he only show stuff like the 2 or 3 first word or the 2 first...
  23. Replies
    19
    Views
    3,135

    Ok, I get it (I had remove the 2 &)now everything...

    Ok, I get it (I had remove the 2 &)now everything work except that he stop reading the qqq qqq qqq after the space, so he only display qqq ( as expected), how can I fix this.
  24. Replies
    19
    Views
    3,135

    Ok, I did what you told me, here are the...

    Ok, I did what you told me, here are the modifications


    sscanf (ligne, "%s %f %s %s",sIdentif,&fRegle,sType,sDescript);
    printf ("%s %f %s %s",sIdentif,&fRegle,sType,sDescript);...
  25. Replies
    19
    Views
    3,135

    I can send you my complete program if you want,...

    I can send you my complete program if you want, but as I said, my string line already have TXSYN 0.0078 CIE qqq qqq qqq, I want to extract this content into 4 var.
Results 1 to 25 of 44
Page 1 of 2 1 2