Search:

Type: Posts; User: autopilot

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    2,152

    Somethink like: makefile:65: warning:...

    Somethink like:


    makefile:65: warning: overriding commands for target `.C'
    /home/roliveira/NormFet_src/makefile:65: warning: ignoring old commands for target `.C'
    O2 main.C
    make: O2: Command...
  2. Replies
    4
    Views
    2,152

    problem compiling 3rd party code

    i am having some problems compiling this code. There is a makefile, but using it to compile gives me errors. Also tried compile the .C files one at a time but errors out too. Even with CGAL...
  3. Replies
    26
    Views
    3,377

    Again, if i run my program like this...

    Again, if i run my program like this "tnormfet.exe 5.xyz" it calls norfet.exe and it works great and outputs the file(5.xyznw)
    How would i change it to scan the files on a dir and automatically loop...
  4. Replies
    26
    Views
    3,377

    21 C:\3d\teste.c too few arguments to function...

    21 C:\3d\teste.c too few arguments to function `CreateProcessA'
  5. Replies
    26
    Views
    3,377

    Tried out your solution, it just opens the files...

    Tried out your solution, it just opens the files (xyz) in notepad :confused:
    I tried my last solution again, it does not error out: the output of the program is normal and the prefix of the input...
  6. Replies
    26
    Views
    3,377

    I wrote the following: #include ...

    I wrote the following:
    #include <stdio.h>
    #include <string.h>

    int main(int argc, char *argv[])
    {
    char child1[] = "normfet.exe";
    char child2[BUFSIZ];
    char child3[BUFSIZ];
  7. Replies
    26
    Views
    3,377

    Usage: Normfet.exe ...

    Usage: Normfet.exe <infile> <outfile_prefix> [-nml | -bbr ...]
  8. Replies
    30
    Views
    6,429

    The units on the files are millimeters so 3...

    The units on the files are millimeters so 3 decimal places is plenty.
    Thanks very much for the tips matsp & Salem
  9. Replies
    26
    Views
    3,377

    Yes i tried changing the order but it errors out....

    Yes i tried changing the order but it errors out. What i think is strange is the fact that i can see that the "normfet.exe" is working but still nothing is written.
  10. Replies
    26
    Views
    3,377

    the program is not mine (normfet.exe), i am using...

    the program is not mine (normfet.exe), i am using the executable only.
    "-nml" is one instruction to the program. I run a similar batch script with other programs, it only fails with this one.
  11. Replies
    26
    Views
    3,377

    Found another problem... FOR %%c in (C:\*.pc)...

    Found another problem...

    FOR &#37;%c in (C:\*.pc) DO normfet.exe %%c %%c.txt -nml
    Won`t write anything to %%c.txt(i need the prefix of the original file on the output file). It works if the syntaxe...
  12. Replies
    30
    Views
    6,429

    Well, sometimes it is best to start over....

    Well, sometimes it is best to start over. Followed the instructions of the faq
    Thanks for all the replys. The second version is working now, constant "factor"


    #include <stdio.h>
    #include...
  13. Replies
    30
    Views
    6,429

    I tried this out but i am doing something wrong....

    I tried this out but i am doing something wrong. It reads the file, deletes the input and produces an empty output file.

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

    int...
  14. Replies
    30
    Views
    6,429

    I cleaned up as sugested(thanks matsp), but i...

    I cleaned up as sugested(thanks matsp), but i still have one last question: how can i change the code to accept: an argument such as "./fescala infile outfile" supposing that i would specify the...
  15. Replies
    26
    Views
    3,377

    Cool! Problem solved, thank you QuantumPete!

    Cool! Problem solved, thank you QuantumPete!
  16. Replies
    26
    Views
    3,377

    It`s a windows machine:(

    It`s a windows machine:(
  17. Replies
    26
    Views
    3,377

    open several files and execute?

    I have an external .exe that will process a single file at a time. The problem is i have several hundreds of files to process, so i wanted to implement some code that allows me to loop an instruction...
  18. Replies
    30
    Views
    6,429

    Now i just wanted to make the program read all...

    Now i just wanted to make the program read all the files in a directory and compute all of them.
    Also any sugestions to improve the code?


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

    double x; ...
  19. Replies
    30
    Views
    6,429

    I know it was just for testing... i am planning...

    I know it was just for testing... i am planning to ask for the multiplication factor!
  20. Replies
    30
    Views
    6,429

    OF course! Thanks a lot, all done know I Love...

    OF course! Thanks a lot, all done know
    I Love this board. It helps a lot by pointing out the ways where we should go.

    Peace
  21. Replies
    30
    Views
    6,429

    I have seen that link thanks. But using the...

    I have seen that link thanks. But using the sugestion the first line of the file is not computed or at least won`t go to the output file.

    while (fgets(line, sizeof(line), in) != NULL) { ...
  22. Replies
    30
    Views
    6,429

    almost there

    i am almost done, thanks a lot for the help friends.

    i tried
    //while (!feof(in)) {
    fgets(line, sizeof(line),in);
    sscanf(line, "&#37;f,%f,%f", &x, &y, &z);
    fprintf(out, "%f,%f,%f\n", x*2, y*2,...
  23. Replies
    30
    Views
    6,429

    Thanks changed to fgets(line,...

    Thanks
    changed to
    fgets(line, sizeof(line),in);
    now the result is
    -9124.320312,1483.947998,-7104.620117

    But it only reads one line..What do i need to change to make the
    fgets(line,...
  24. Replies
    30
    Views
    6,429

    I wrote a few lines but the result is not what i...

    I wrote a few lines but the result is not what i would expect. Here is how it is atm

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

    float x;
    float y;
    float z;
    char line[200];
  25. Replies
    30
    Views
    6,429

    open file with numbers and multiply them

    i have large ascii files that i need to open and multiply each number on it by a factor

    how will i be able to implement this?
    will i have to store the numbers in a variable and then multiply it?...
Results 1 to 25 of 29
Page 1 of 2 1 2