oooo yea I see that now. that randmax function was given to me. I'll check on that. Thanks for the help.
Type: Posts; User: fsufan22
oooo yea I see that now. that randmax function was given to me. I'll check on that. Thanks for the help.
randmax is returning a value of 1 for some reason now. heres what I've done to it since that first post
#include <iostream>
#include <cstdlib>
using namespace std;
int randmax (int);
gotcha, it compiles with no warnings now, but nothing is returning from the randmax function. I stepped through it with the debugger, and it returns a value of 1 for some reason I can't figure out....
ooooo ok thanks. any ideas why its giving me a warning about the %?
"warning C4552: '%' : operator has no effect; expected operator with side-effect"
I thought I was sending the variable into the randmax function to get some random value that I would then modulus into the card. I didn't think it needed to have a value before being sent to the...
Trying to code a blackjack simulator. just kinda practicing with this code to get a handle on what Im going to have to do, but i keep getting errors about the "%" operand and an uninitialized varible...
i got it to reprint it. thanks a lot for the help
yea that was stupid of me. thanks. but how do I get it to read and print the content again?
I was trying to reprint the file there, I can't figure out how to do it so I just took what made it print the first time and copied and pasted.
Hey everyone I'm very new to c++ and need some help. I'm trying to write a program that opens a text file, prints it, then prints it again with every 5th word replaced by blanks. I can get the file...