Oh edit, I actually solved it by putting & on the ints in the void function as well as adding the date(), ty.
#include <iostream>
#include <iomanip>
using namespace std;
Type: Posts; User: Sephyx
Oh edit, I actually solved it by putting & on the ints in the void function as well as adding the date(), ty.
#include <iostream>
#include <iomanip>
using namespace std;
The program is pretty much done. It's a program to split an input such as 20110102 into 01/02/2011. I already have the loop in place, but for some reason when I output the program it gives me huge...
Wow, yeah, by putting 'num' into char it fixed a lot of things it works for the most part, only one last thing.
Edit: When I put 'num' into char it was able to fix the k,j,q values, but now it's...
Umm I tried Valaris' suggestion to use the switch/case and exchange it with the if/else if statement that I had to convert j,k,q into 10, but my program is still giving me off values when I try it :|...
I tried to exchange this with the if / else if, but it had the same effect, I'm still getting weird values ;(
Oh that's right, value is nothing, I edited and replaced it with num, but I still get weird values. When I type in 2 for 'cards' for the loop to repeat twice, I get 10 for k j and q, but after I type...
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
int cards, num, count;