Search:

Type: Posts; User: axlton

Search: Search took 0.00 seconds.

  1. Replies
    12
    Views
    2,136

    I could but I also thought it would be an...

    I could but I also thought it would be an interesting programming project aside from that.
  2. Replies
    12
    Views
    2,136

    Well thank's for all the suggestions... I had an...

    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...
  3. Replies
    12
    Views
    2,136

    Yeah, I know how to do the dynamic memory...

    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...
  4. Replies
    12
    Views
    2,136

    Intentional memory leak?

    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...
  5. Replies
    6
    Views
    1,215

    thanks, although i've acutally found a much...

    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.
  6. Replies
    6
    Views
    1,215

    No, i just put in srand(5) as a quick test. The...

    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...
  7. Replies
    6
    Views
    1,215

    help with vectors please.

    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.


    ...
  8. My personal favorite, open a windows command...

    My personal favorite, open a windows command prompt and type edit . :) it's da coooolest.
  9. Replies
    3
    Views
    1,117

    you need to look into while loops. ...

    you need to look into while loops.

    http://www.cprogramming.com/tutorial/lesson3.html

    the || operator will come in handy for this as well
  10. Thread: C++ Help

    by axlton
    Replies
    3
    Views
    1,113

    Here's a slighly different version that lets you...

    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()
    {
  11. Thread: C++ Help

    by axlton
    Replies
    3
    Views
    1,113

    grrrr, accidently double posted

    grrrr, accidently double posted
  12. Replies
    8
    Views
    1,943

    cout

    cout<<"Ox"<<(int *)letter; //will output hex such as 0x000000FF
    cout<<int(letter); //will output decimal

    or,



    #include <iostream>
    #include <iomanip>
    using namespace std;
  13. Replies
    5
    Views
    1,465

    hey, thanks for the help grrr, gotta start...

    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...
  14. Replies
    5
    Views
    1,465

    success!!! but i'm at a loss as to explain why....

    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


    ...
  15. Replies
    5
    Views
    1,465

    still the same, after single steping some more...

    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,...
  16. Replies
    5
    Views
    1,465

    gggrrr, unknown problem with

    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...
  17. Well i figured it out... turned out it was a...

    Well i figured it out... turned out it was a misplaced new statment elsewhere in the code. thanks for trying though.
  18. my problems a bit more complicated than that....

    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...
  19. help converting a char array to a string object?

    seems like there should be a simple way to do this but i can't seem to figure it out.
  20. Replies
    4
    Views
    1,527

    thanks again. I'd been wandering about that one...

    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.
  21. Replies
    4
    Views
    1,527

    hey, thanks for the help. I'm kickng myself for...

    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...
  22. Replies
    4
    Views
    1,527

    help setting an array please.

    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)
    {...
Results 1 to 22 of 22