Forum: C++ Jul 27th, 2009 |
| Replies: 6 Views: 325 Fine, if you insist:
#include <fstream>
#include <iostream>
#include <iomanip>
using namespace std;
void main()
{
char* data=new char[10<<20]; |
Forum: C++ Jul 27th, 2009 |
| Replies: 6 Views: 325 I'm really sorry about this: I have no idea what's going on now. I've ran the same program and it's produced a different result.
Last time, the file that was created didn't even show up until the... |
Forum: C++ Jul 26th, 2009 |
| Replies: 6 Views: 325 Hi,
Some time ago, I wrote a program that used the write() function of an fstream object to write a large file to a 100MB-zip-disk (it was an old computer). When I "End Now"ed the program I found... |
Forum: C++ May 13th, 2009 |
| Replies: 28 Views: 45,681 Basically, see what you make of this:
http://msdn.microsoft.com/en-us/library/aa298504(VS.60).aspx |
Forum: C++ Nov 26th, 2008 |
| Replies: 11 Views: 596 Instead of declaring the functions in the header as "void print(){}", you need "void print();". The same applies to the constructor.
Also, you've declared the constructor to take in a string, but... |
Forum: C++ Nov 26th, 2008 |
| Replies: 9 Views: 678 Thanks! That's solved everything. There's just too much to remember when using iostream, but I'll learn all the potholes... one day.
I know, I know, "it's good practice and you should get into... |
Forum: C++ Nov 25th, 2008 |
| Replies: 9 Views: 678 Thanks for answering, but I really don't understand: to get to the "goto", the program has to go through "cin.ignore(numeric_limits<streamsize>::max(),'\n');", which removes everything up to the '\n'... |
Forum: C++ Nov 25th, 2008 |
| Replies: 9 Views: 678 When I run the code, what's supposed to happen is that when I input three numbers separated by spaces (e.g. "23 4 5 <enter>"), it outputs "no more input\n\nReady\n", when I input four or more numbers... |