Thanks for all the help Salem. It turned out that I needed to call the file "datafile.txt" instead of "datafile". This will really help lots of my applications--Best
Type: Posts; User: sdchem
Thanks for all the help Salem. It turned out that I needed to call the file "datafile.txt" instead of "datafile". This will really help lots of my applications--Best
getcwd() statement says cwd is file where program executable sits. "datafile" is in same folder but I still get "no such file or directory" when I try to get the data. I did find a forum for...
Sorry, yes. "No such file or directory".THX
>At the moment, I guess its trying to find the file in the same directory as the executable.
Got that, but "datafile" is saved in the same folder as my program executable and it can't find it.
>Follow that with the following call
perror( "Reason for fault" );
This gives me back an error at compiling of "implicit declaration of function `int perror(...)'
Hi. I want to be able to get data from a file into my program so that the program can do work on the data set. I am using devc++4. This program should get data from file "datafile" and print it...
What compiler do you use? The backslash didn't work but thanks.
Don't know. Do you think that I need an additional #include<> statement?
The "path" in my environmental variables is
c:\BORLAND\BCC55\BIN
but when I type say bcc32 hello.cpp at the command prompt I get
"bcc32 is not an internal/external command or operable program...
Do you know how to get bcc32 to run from th command line?
I put the data file in the same folder where the program file is saved, but it just returns (1) with the "Can' open data file." function that is built into the program.
When I pasted the new path into the environment variables, I did paste over the old path. Any ideas what it could have been so that I could replace it by adding with a semicolon?
What I'd really like to be able to do is import data from text files into my programs. I am able to do this on Sun terminals at school, but not with Dev-Bloodshed at home. This is an example of a...
Hi. I'm trying to run the Borland c++ compiler from my DOS command line, but I keep getting the statement that bcc32 is not recognized as internal/external command or operable program or batch file. ...
I was able to get the sorting to work after rewriting the program from scratch. I think it helped to organize it on paper first. Thanks...
Like I said, the program is able to open up a text file that contains numerical data and print it as it is in the text file. But the program should then sort the data by value and reprint it. It...
It reads in these data and prints them out. It then should sort the data by value and then reprint it out sorted. Thanks for sticking to helping me...
file4.dat is a text file that has numbers like
2002 2006 2001 2005 2009 2010 2015 2103...
if that helps.
Hi. I have written a program to import a data file and print out the data set. The program should then sort the data by value, reprint it and find mean, stdev and create a histogram. The problem...
Thanks, that did it. Now I will look through the program next time I get that error.
Hi. I have written a bit of code to sum the components of vectors F=ai+bj+ck and compiled the code with Devc++4. The compiler keeps giving me parse error at the end of input. It's not the first...
Hi. I am trying to program a short algebra routine to give me the answers to a quadratic function. The compiler says there are "parse errors before 'else'" on lines 35, 41 and 45. Somebody...