I could but I also thought it would be an interesting programming project aside from that.
Type: Posts; User: axlton
I could but I also thought it would be an interesting programming project aside from that.
Well thank's for all the suggestions... I had an idea though, in windows 98 it was possible to limit the amount of physical memory used through the msconfig applet. Does anyone know if there's a...
Yeah, I know how to do the dynamic memory allocation thing...
I've got a 512mb ddr dimm with bad adresses around the 196-197mb range and the 442-443mb range.
I was hoping there was some easy...
Grumble.... I've got failing ram. I was thinking that as a stop gap solution (until I can afford a new dimm) would be to write a program that sits in the background eating up the bad portions of my...
thanks, although i've acutally found a much easier solution using an array of structs rather than vectors i plan to play around with this some more just so i can understand vectors better.
No, i just put in srand(5) as a quick test. The problem is that duplicate cards end up in the deck.
thanks i'll try it out. btw, wich header contains the random suffle method?
but i'd...
i'm trying to build a class that represents a shuffled deck of cards.
i start by creating and ordered deck but when i try to randomize it things start to go wrong and i cant figure why.
...
My personal favorite, open a windows command prompt and type edit . :) it's da coooolest.
you need to look into while loops.
http://www.cprogramming.com/tutorial/lesson3.html
the || operator will come in handy for this as well
Here's a slighly different version that lets you choose at runtime the number of responses to enter, and validates user input.
#include <iostream>
using namespace std;
int main()
{
grrrr, accidently double posted
cout<<"Ox"<<(int *)letter; //will output hex such as 0x000000FF
cout<<int(letter); //will output decimal
or,
#include <iostream>
#include <iomanip>
using namespace std;
hey, thanks for the help
grrr, gotta start looking over my code more carefully before i post though :)
exFile.open("file.c_str()", ios::binary | ios::ate);
for a minute there i was...
success!!! but i'm at a loss as to explain why.
so here's my revised code if anyone cares to take a crack at
telling me why one works and not the other i'd really aprieciate it.
new code
...
still the same, after single steping some more and shuffling some code around i've found that the problem is partialy realated to
FStruct[i].data_len1
as in
ifAllPkr.read((char *)&buffer,...
k, i'm gonna paste a bunch of code in here cause i'm not sure what is causing this to generate errors. my problem apears to be in
void pkrEdit::export(string file)
if i compile and run exfile...
Well i figured it out... turned out it was a misplaced new statment elsewhere in the code. thanks for trying though.
my problems a bit more complicated than that.
just thought i was missing something easy.
hopefuly these snipets will help you to see my problem.
what i'm tring to do is pass a pointer to an...
seems like there should be a simple way to do this but i can't seem to figure it out.
thanks again. I'd been wandering about that one for some time now because I've seen both exaples in books, but never an explainaion as to why one would be prefered over the other.
hey, thanks for the help. I'm kickng myself for not realizing what was wrong.
one thing i'm curious about is the lines of code you changed:
#include <fstream>
#include <iostream>
using...
ok, i've got a simple program thats supposed to join a bunch of files together into one big dat file.
#include <fstream.h>
#include <iostream.h>
#include "vars.h"
void main(void)
{...