Search:

Type: Posts; User: Striph

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. g++ makefile acting weird with objects in a folder...

    I have a pretty simple makefile setup, I'm using mingw32 on a windows box.



    CXX = g++ $(CFLAGS)

    all: adventure.exe

    debug: CFLAGS = -g
    debug: adventure.exe
  2. Replies
    2
    Views
    1,554

    Good bitshifting tutorial or examples?

    I need to take an array of characters (8 total) and output each character as its binary number using bit shifting. The idea is to print out an 8x8 grid using a single character for each row. I read...
  3. Incrementing a hex value for a function parameter in a loop instead of hardcoding it?

    I have a constructor that takes 9 arguments, instead of harcoding each value in an array equal to each argument I was hoping I could run through a loop and set each value of the array column/row...
  4. Passing an array to a function, preferred way?

    Is there a preferred or standard method for passing an array to a function as a parameter? First day of Advanced C++ today at college and we're working on some homework and the teacher wasn't much...
  5. Yeah thats what this project is building towards,...

    Yeah thats what this project is building towards, eventually it'll be classes for all sorts of card stuff. So far we've written the PlayingCard class, and a BlackJackHand class, I'm pretty sure the...
  6. Yeah thats exactly what I'm doing ooga, few snips...

    Yeah thats exactly what I'm doing ooga, few snips of what I'm doing:



    BlackJackHand::BlackJackHand()
    {
    // Set each of the cards, 0-4 to NULL
    for (int i = 0; i < MAX_CARDS_PER_HAND;...
  7. Now that I think about it, when my clearHand()...

    Now that I think about it, when my clearHand() function runs and deletes all the card pointers, I don't set them to NULL before the addCard() function tries to create a new card. I thought that when...
  8. Situation where deleting a pointer doesn't work, but setting it to NULL does?

    I was working on a project for school where we had to generate a blackjack hand and do some tests. I've setup an array of pointers thats created for each card in the hand, to a max of 5. I have it...
  9. Thanks Elysia, I've been meaning to load up...

    Thanks Elysia, I've been meaning to load up Codeblocks on my system. Is there a "name" for what the ": RomanNums({...." after the RomanNumerals() constructor is called? Going to spend the weekend...
  10. Good to know, I kind of got that to work through...

    Good to know, I kind of got that to work through trial and error (I'm all self taught from a few books atm, and they never really showed how to use strings the real way), and figured it was "cleaner"...
  11. How to initialize a string array in a default class constructor?

    Pulling my hair out on this one, book doesn't show any examples and my GoogleFu is weak.



    #ifndef ROMANNUMERALS_H_INCLUDED
    #define ROMANNUMERALS_H_INCLUDED
    #include <string>

    using...
  12. Interesting, I haven't learned the const after...

    Interesting, I haven't learned the const after the function method yet. I noticed that it does compile without the const, and also with the const on the end of the member function when I put it in...
  13. Any way to simplify this string return in my member function?

    This is my member function to take the value and suit of a card and return a single string for both variables. (first year of college, go easy on me!) Is there a simpler way to do this? I tried to...
  14. Replies
    5
    Views
    4,940

    Thanks for the ideas, I'll look into Linq and...

    Thanks for the ideas, I'll look into Linq and Xpath, haven't had a chance to use either of those methods yet. Guess its time. :)
  15. Replies
    5
    Views
    4,940

    XML Loop through attribute help

    I have a simple form that connects to the WOW Armory, pulls down the xml stream and is parsing through some values, I have almost everything working except for each of the items. I can pull the first...
  16. Replies
    3
    Views
    6,944

    XML string to dataset/datagrid?

    I currently have a C# app that makes a socket connection to a system, sends an XML stream, then the target system responds back with an XML stream which I have read into a string. I currently have it...
  17. Thanks for the link, yeah the boolean thing came...

    Thanks for the link, yeah the boolean thing came to mind after i started posting, the post was initially on how to read just the wow3264node key but i branched out a bit. :)
  18. I found the problem, my project was setup to...

    I found the problem, my project was setup to compile for "Any CPU" which meant the program was being compiled as a 64 bit program which meant there was no registry reflection occuring. Once i changed...
  19. c# OpenSubKey problem on 64 bit windows vs 32 bit.

    I currently have a C# form app that reads a registry setting to find the location of a path, and then once it finds that it does its thing. I designed everything on a 32-bit OS and it worked...
  20. Replies
    1
    Views
    4,721

    C# Form image "distortion"

    I have a C# form application with a picturebox that has a company logo. I have the program compiled and running on a WinXP machine and Win2k3 and the image in the picture box is crystal clear.

    I...
  21. Replies
    2
    Views
    1,518

    Thanks! Thats been driving me insane trying to...

    Thanks! Thats been driving me insane trying to remember what it was called. :)
  22. Replies
    2
    Views
    1,518

    Name for this procedure/routine?

    I'm going back through some old code and found a few lines that I understand how it works, but I can't for the life of me remember the correct name for it:

    (a == 1) ? cprintf("One") : ((a == 2) ?...
  23. Replies
    4
    Views
    1,919

    Спасибо :)

    Спасибо :)
  24. Replies
    4
    Views
    1,919

    Just enough to jumpstart my brain. Thanks!...

    Just enough to jumpstart my brain. Thanks! Basically i have a 24x80 map that a person can move around. I wanted to be able to find their position on the screen, and if that position was equal to a T,...
  25. Replies
    4
    Views
    1,919

    Easy String position question...

    Been out of the programming loop for awhile, and trying to ease myself back in. My first self appointed project has me stumped so thought I'd fire off a quick easy question for all the pros here on...
Results 1 to 25 of 37
Page 1 of 2 1 2