Search Results

Showing results 1 to 8 of 8
Search took 0.01 seconds.
Search: Posts Made By: cog_bn
Forum: C++ Jul 27th, 2009
Replies: 6
Views: 325
Posted By cog_bn
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
Posted By cog_bn
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
Posted By cog_bn
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
Posted By cog_bn
-1
_msize
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
Posted By cog_bn
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
Posted By cog_bn
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
Posted By cog_bn
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
Posted By cog_bn
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...
Showing results 1 to 8 of 8

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC