@grumpy
The project specifically states to use time(0) for our random number seed, otherwise I agree that it's not very "random". Other than using a user defined or predefined number for seeding,...
Type: Posts; User: SkylerZio
@grumpy
The project specifically states to use time(0) for our random number seed, otherwise I agree that it's not very "random". Other than using a user defined or predefined number for seeding,...
ok just realized its running my Default Constructor after my Overloaded. anyone know why?
class grid
{
private:
unsigned xSize,
ySize,
gridValues;
string gridFile;
int generateRandom(int);
You guys rock! the careful explanations and timely responses!
I am so hanging out here!
Thank you all
HAHA!
So...IS ther any difference between using .c_str or .data()? to pull the c-string out of a string? (am I using correct terminology?)
LoL! I think he's more C than C++, and from what I understand there's quite a bit of difference, as much as whats similar?
But he works for Lockheed Martin doing internal software programming, He...
THANKS!
but that adds the question
would
outputFile.open(userName.data());
be the same as c_str?
Hi everyone, new here. I have a class in C++ and even my teacher can't figure this one out, so maybe someone here will spot something?
#include<iostream>
#include<string>
#include<fstream>...