Forum: C++ Feb 14th, 2007 |
| Replies: 3 Views: 2,869 I am having troubles getting this program to generate random numbers. Right now i have it set up to only generate 1 and 19. I do not know how to generate random numbers. :confused::?::twisted::eek:
... |
Forum: C++ Dec 11th, 2006 |
| Replies: 26 Views: 4,733 now how would i find the sum of the weights and the scores? |
Forum: C++ Dec 11th, 2006 |
| Replies: 26 Views: 4,733 hahah, that did it. THANKS ALOT MAN!! |
Forum: C++ Dec 11th, 2006 |
| Replies: 26 Views: 4,733 thanks for helping!
what should i change the value to? I'm not sure what to do.
i have not change much, but this is what it looks like now:
bool next=getdata(score,weight);
{
... |
Forum: C++ Dec 11th, 2006 |
| Replies: 26 Views: 4,733 #include <vcl.h>
#pragma hdrstop
#include<iomanip>
#include<iostream>
#include<stdlib>
//#include<conio> //Leave this comment line in
using namespace std;
bool getdata(int &,int &); |
Forum: C++ Dec 11th, 2006 |
| Replies: 26 Views: 4,733 hahaha, 200?
i will just take a zero. I think i can figure it out, its just that it's due tomorrow.
I have got the thing to loop but i cant get it to stop looping and run the rest of the... |
Forum: C++ Dec 11th, 2006 |
| Replies: 26 Views: 4,733 yeah, LOL
sladkjflsadkfj;saldfj crap
cout << "shoot me in the face" << |
Forum: C++ Dec 10th, 2006 |
| Replies: 26 Views: 4,733 this is too hard. Can i pay someone to do this? Through paypal or something. |
Forum: C++ Dec 6th, 2006 |
| Replies: 26 Views: 4,733 Yeah, I have given up on the array idea now. Because i don't know how to do an array. This program is supposed to just randomly output scores, but i can only get it to do that once. Do you know how i... |
Forum: C++ Dec 6th, 2006 |
| Replies: 26 Views: 4,733 i have given up on the array idea |
Forum: C++ Dec 6th, 2006 |
| Replies: 26 Views: 4,733 How do i make this loop and look like this? The program is supposed to retrieve values for 'score and 'weight' from a funtion, getdata.. The function returns a bool data type. If the value returned... |
Forum: C++ Dec 4th, 2006 |
| Replies: 26 Views: 4,733 output should look like this:
Scores:
43 58 100 79 100 100 93 100 82 100 100 46 100 100 75 97 82 85 89 100 61 100 100 86 100
Weights:
5 5 5 10 5 5 5 5 5 10 10 10 5 10 5 5 5 5 10 25
the... |
Forum: C++ Dec 4th, 2006 |
| Replies: 26 Views: 4,733 Thanks for replying and I uh dont know what im doing. This is my first semester in c++. I'm not even sure what an array is. |
Forum: C++ Dec 4th, 2006 |
| Replies: 26 Views: 4,733 I'm having some trouble with this averaging program. This program is supposed to determine the final average by taking the sum of the products of the scores, multiplied by the weights and dividing by... |