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...
Type: Posts; User: autopilot
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...
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...
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...
21 C:\3d\teste.c too few arguments to function `CreateProcessA'
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...
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];
Usage: Normfet.exe <infile> <outfile_prefix> [-nml | -bbr ...]
The units on the files are millimeters so 3 decimal places is plenty.
Thanks very much for the tips matsp & Salem
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.
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.
Found another problem...
FOR %%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...
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...
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...
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...
Cool! Problem solved, thank you QuantumPete!
It`s a windows machine:(
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...
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; ...
I know it was just for testing... i am planning to ask for the multiplication factor!
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
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) { ...
i am almost done, thanks a lot for the help friends.
i tried
//while (!feof(in)) {
fgets(line, sizeof(line),in);
sscanf(line, "%f,%f,%f", &x, &y, &z);
fprintf(out, "%f,%f,%f\n", x*2, y*2,...
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,...
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];
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?...