Search:

Type: Posts; User: Ghost_

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    817

    File Read Make multiple copies

    Hello everyone,

    I have made a small code which reads a file and make multiple copies of it. The code compiles fine but when i run it i get a message

    Assertion Failed

    Expression: (stream !=...
  2. Replies
    7
    Views
    1,005

    I guess so..! :wink:

    I guess so..! :wink:
  3. Replies
    7
    Views
    1,005

    Hello guys..! I just restarted my PC and...

    Hello guys..! I just restarted my PC and recompiled the code and now works..!!

    I trully don't know what happened..!!!
  4. Replies
    7
    Views
    1,005

    Forgot to mention that the file is created by the...

    Forgot to mention that the file is created by the function XfoilCall which calls xfoil(an external program) and then xfoil saves some data to the file save.txt.

    After saving the data Xfoil exits....
  5. Replies
    7
    Views
    1,005

    File Delete Problem

    Hello guys,

    I have a function and i want to delete a file when the function is called and starts it's loop i have used this code but unfortunately the file is not deleted can you please specify...
  6. Replies
    6
    Views
    3,328

    Thank you that worked...!!

    Thank you that worked...!!
  7. Replies
    6
    Views
    3,328

    rcglr Thank you a lot for your help..! The...

    rcglr Thank you a lot for your help..!

    The problem i have with the start command is that i want to start in batch mode. So that i want to feed the file airfoil.txt to the xfoil so that it reads...
  8. Replies
    6
    Views
    3,328

    rcgldr thank you for your suggestion..!...

    rcgldr thank you for your suggestion..! Unfortunately as i can understand the commands are executed till line 2 where we call xfoil. Then i don't know why but it doesn't proceed to the ping command...
  9. Replies
    6
    Views
    3,328

    Batch Files Help!

    Hello guys,

    In my code i call a batch file which runs an external program. The batch file open the program successfully but what i want is to close the program after a certain amount of time the...
  10. Salem thank you for your suggestion...! It really...

    Salem thank you for your suggestion...! It really helped me a lot
  11. OK i changed the above while expression with this...

    OK i changed the above while expression with this one


    if ((fd = fopen(filename, "r")) != NULL) {
    fseek(fd, 0, SEEK_SET);
    while(fgets(buff,sizeof(buff),fd) != NULL)
    ...
  12. Guys you were right the file isn't a fixed size...

    Guys you were right the file isn't a fixed size but it has a standard form. So the fseek method to put the pointer at a specific place and then read from this point and below doesn't work very...
  13. OK i finally found how to do it...!!! This is the...

    OK i finally found how to do it...!!! This is the code i use does anyone has any better suggestion...??


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


    #define...
  14. I tried to do something like you've said but i am...

    I tried to do something like you've said but i am getting very strange numbers this is what i came up with


    double FileRead() {



    double n[25],cl[25],cd[25];
    char target[10]={"---"};...
  15. Read specific values from a file store them in arrays

    Hello guys..!

    What i try to do is to write a code which reads some specific values from a file and stores them in an array. My File looks like this


    XFOIL Version 6.96
    Calculated...
  16. Replies
    8
    Views
    1,175

    Salem thank you for your support...!! Since i...

    Salem thank you for your support...!! Since i believe that the problem might lie within the arrays of the rbspline function maybe... I wanted to ask you is there a way to dynamically change the size...
  17. Replies
    8
    Views
    1,175

    Hello Salem..!! I changed my for loops as you...

    Hello Salem..!!

    I changed my for loops as you proposed but now my spline function is calculating nan values..!!

    This is my updated code can you please tell me why is that happenning cause i...
  18. Replies
    8
    Views
    1,175

    Salem Thanks a lot for reviewing my code...! I...

    Salem Thanks a lot for reviewing my code...! I took your comments into consideration and i did this...

    Actually my randval values doesn't produce so random values so i did some changes into the...
  19. Replies
    8
    Views
    1,175

    OK, but Xfoil is used in order to calculate the...

    OK, but Xfoil is used in order to calculate the value of fitness function...!
  20. Replies
    8
    Views
    1,175

    Genetic Algorithm problem

    Hello guys i have coded a GA which optimizes airfoil shapes. The problem i have is that the code runs fine untill generation 50 and then on generation 51 it crashes..! Actually the code is still...
Results 1 to 20 of 20