Beginners - August 2012 (Page 37)

Magic the gathering
 
Hi everyone, Have been a fan of Magic the Gathering for some time and thought I would create a simple program to make a deck, display some basic information...
[no replies]
Msg to Lauren Buecker, Can't reply to your thread
 
Hi Lauren, For some reason I cannot reply to your thread, CPP was down for me earlier, maybe it was something to do with that. It's a bit awkward, but I w...
[6 replies] Last: Apparently, Ctrl-Shift-R reloads the page, bypassing the cache. Learnt... (by TheIdeasMan)
Difficulty with if statements
 
So, I haven't used C++ in a while and I want to get back into it and learn more. I wrote a simple program to set up the balance of a bank account, and then wit...
[3 replies] Last: Thank you all, Fixed the issue :D (by Makerxy)
by kgoose
tolower
 
This is my code to take an input and determine if it is a palindrome or not. In my strConvert function I use putchar, but it takes the uppercase letters and low...
[1 reply] : You really made this much more difficult than it has to be. Simplified... (by Volatile Pulse)
by Hart88
Black Jack
 
My home work is to write a blackjack program the part i am having trouble with is drawing a random card out of the set my professor is having us use. #include ...
[17 replies] Last: i enabled pm if you want to send it, man this was a crazy problem (by Hart88)
pointer_array_sort() problems
 
I have to make a decision on how I want to call pointer_array_sort(). I think I can call it either as: float netpay ; pointer_array_sort(netpay, 5); ...
[2 replies] Last: Figured it out but thanks for the feedback guys (by LaC0saNostra)
Create new file with cstdio::tmpnam() help!
 
I am making a simple program that creates a file with a random name with cstdio::tmpnam() in order not to overwrite previously created files. #include <iostr...
[1 reply] : I realized that the tmpnam() function returns a name that starts with ... (by Zerpent)
Cards Dealt in Wrong Order
 
Everything is done one this except that when a player or dealer chooses to hit the cards are dealt in the wrong order for example they are dealt a 5 then a 2 in...
[1 reply] : Did you ever solve this issue? (by Hart88)
Crash/fill harddrive with simple program?
 
I am currently learning C++. Today I took a break and thought of what I had learnt so far. The last days I have learnt to create files and to send arguments to ...
[3 replies] Last: Ok thanks, I will probably try it out :). (by Zerpent)
Mouse/Keyboard Emulator
 
does anyone got a simple example of a mouse and keyboard emulator i couldnt find one...
[4 replies] Last: I have no experience with QT bit it should support Mouse and keyboard ... (by stoffe1100)
Should I include common routines members in one "include header" or use separate header for each class?
 
I have a big project with many classes in diferent files including their methods in diferent files also. I have some RAF manipulation routines functions which ...
[4 replies] Last: I'm glad I could help! :) (by closed account j2NvC542)
Easy Problem to Fix
 
Fixed by Peter87. :D
[2 replies] Last: You forgot return os from operator<<. (by Peter87)
by dancks
Collision detection kills the shooter?
 
Here's the snippet: collisionhandler: unsigned long* collisionhandler::checkpellethit(int good, int *n) { int z=0; unsigned long *dead = new unsigned lo...
[no replies]
Help with the Z function (factorial)
 
Hey, I have been programming for a while now and have made a simple program to find the Z function of a number, which counts the number of zeros obtained at the...
[3 replies] Last: i believe Z should be Z=floor(whichnum/5.0); sinze you only add an ... (by gelatine)
Output being skipped
 
My if statement on line 253 is being skipped and I don't know why. Any help would be appreciated. Also, the initial cards being dealt are correct but then after...
[6 replies] Last: Yeah, I just added another line of code that fixed the problem. That p... (by BroncoAG)
How Would One Initialise Members of an Unknown Type?
 
Consider this: struct Base { Base( ); struct { int A; } Members; }; Since the structure in Base isn't a type, how would one init...
[12 replies] Last: yeah, but regardless of that fact I didn't notice the compiler warned ... (by Zephilinox)
TERM environment variable not set
 
Hello everyone !! I wrote a C++ console program, in the compilers in Linux (g++, qt creator). I used the function #include <cstdlib> // bla... bla ........
[4 replies] Last: Thanks friends for your advices !! (by ThomasMylonas)
Lowercase output except for first letter help
 
I have this code 99% done. The only thing I have left to do is to convert the output for the name of the cards from the void print_card function on line 21 from...
[1 reply] : nevermind, i got it. (by BroncoAG)
Help with Guess my Number!
 
Here's the deal, I'm trying to create a guess my number game where the computer tries to guess the Number that the user inputs. But I want to make it so that th...
[4 replies] Last: Yeah, I made the same thing a few weeks after I started, but I did it ... (by Zephilinox)
What to use when memory is limited?
 
Microcrontollers have limited memory, so what should I use when programming them, C or C++?
[4 replies] Last: On a binary level, C++ & C are more or less identical. However, some o... (by closed account zb0S216C)
August 2012 Pages: 1... 3536373839... 45
  Archived months: [jul2012] [sep2012]

This is an archived page. To post a new message, go to the current page.