104 Posted Topics
Re: [QUOTE=klw;1678233]When I am doing in data files and out data files, how do I save my data to those files and have them open when I run my program?[/quote] This link may be easier for you to learn how to read and write files to disk: [URL="http://http://www.daniweb.com/software-development/cpp/threads/6542"]http://www.daniweb.com/software-development/cpp/threads/6542[/URL] | |
Re: Here are two things you should learn: 1) Always use good formatting when writing your code. Here is your code formatted nicely: [CODE=c] #include <iostream> using namespace std; int main() { int number = 1,odd = 0,positive = 0,negative = 0; while (number != 0) { cout << "Please enter … | |
I'm trying to do disk reads and writes when programming in C++ in the win32 console mode. I can create the file on disk using CreateFile(), but I can't figure out how to read or write to that file. I used the ReadFile() and WriteFile() functions but I just get … | |
Re: There are several problems here. First of all, the variable "fix" is not used, so you can just delete that. Second, both of your functions, "cal" and "prompt" return a value, but to where? When those values are returned, they are just dumped into empty space! There is nothing to … |
The End.