No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
2 Posted Topics
*EDIT: Problem solved* I'm having trouble with the rand() function. Here's a fragment of my code (from Tortoise.cpp). I call this function from main(): #include <iostream> #include <cstdlib> #include <ctime> #include <string> #include "Tortoise.h" int Tortoise::generateMovement() { srand(time(0)); int current; current = (rand()%10)+1; cout << current; // ... more code …
I'm trying to write a simple linked list program. The header files are compiling successfully, but when I try to compile my driver program to test the program, I'm getting an error. Here's my driver program: #include <iostream> #include "Node.h" #include "List.h" using namespace std; template <typename T> void fill(List …
The End.
laura90