omg thank you i knew it would be something stupid
Type: Posts; User: Bobit
omg thank you i knew it would be something stupid
When i compile my program is should compile but instead it comes up with a bunch of errors. I am using Dev-C++ 4.
here is my code:
#include <ctime>
#include <time.h>
#include <iostream>...
I cant figure out how to get a random string from an array, can someone please help me. I put my code below.
thanx
#include <ctime>
#include <cstdlib>
#include <iostream>
#include...
When i compile my program and then run it it picks the same number and letter for all of the randoms. If you know how i can generate different randoms will you please tell me.
Thanx,
...
The program compiles and executes fine but it generates a random number between 1-20 when i want it to generate a letter between c,d,h,and s.
thanx
#include <iostream>
#include <stdlib.h>...
i tried to read what it said to do but that was too confusing for me, can anyone make it any simpler
thanx
my program compiles and executes fine but when i try to run it, it goes through a little bit then errors. here is my code
thanx
#include <iostream>
#include <stdlib.h>
using namespace...
I figured out what the problem is and im an idiot for not finding it before. I forgot to put the & symbol with some of the scanf lines.
scanf(" %f", &scoreone);
When i run my program it runs fine untill the end when its suppose to calculate all the data instead it starts the program all over again. My code is below i also tried fflush(stdout);...
I tried to do several things but sill when i run the program it prints score 1: What did you shoot. Then i type in the score and press enter and it skips the second question its suppose to ask and...
I just stated programming a week ago and am having some problems with this program i am making. I wrote it and then compiled it and executed it and that all worked, but then when i tried to run it...