Forum: C++ Apr 29th, 2009 |
| Replies: 19 Views: 597 Cool thanks for coming in offering no valuable input of your own just destructive criticism. If choosing 9999 is a problem he could use a different sent value it's just a suggestion.
Moron. |
Forum: C++ Apr 29th, 2009 |
| Replies: 19 Views: 597 I would do something different and use a sentinel value to terminate input. Loop until users stops the loop.
int value, count=0, sum=0, total;
for(;;) // out forever loop
{
... |
Forum: Python Apr 29th, 2009 |
| Replies: 2 Views: 525 Hello i'm rather new to Python and I was wondering how I could do a menu to prompt the user to choose a number and execute a certain part of code based on his choice.
For example:
please... |
Forum: Python Apr 26th, 2009 |
| Replies: 5 Views: 624 got it thanks for the help |
Forum: Python Apr 26th, 2009 |
| Replies: 5 Views: 624 did that still not printing out even or odd |
Forum: Python Apr 26th, 2009 |
| Replies: 5 Views: 624 hi, im trying to learn python and this is giving me
>>> x=input("Enter a value: ")
if x % 2 ==0:
print ("even")
else:
print ("odd")
then when i execute: |
Forum: C++ Dec 13th, 2008 |
| Replies: 2 Views: 383 Make sure you have the Ming compiler, and put the Dev c++ executable and the .cpp file into the same folder.
Then try execute --> rebuild all.
then if still nothing, uninstall and reinstall. |
Forum: C++ Dec 13th, 2008 |
| Replies: 3 Views: 444 header
class DeckOfCards
{
public:
DeckOfCards(); |
Forum: C++ Dec 7th, 2008 |
| Replies: 5 Views: 382 //6.12
#include <iostream>
#include <iomanip>
using namespace std;
double CalculateCharges (double car1=1.5,double car2=2.0,double car3=24.0);
int main () |
Forum: C++ Dec 5th, 2008 |
| Replies: 5 Views: 382 //6.12
#include <iostream>
#include <iomanip>
using namespace std;
double CalculateCharges (double car1=1.5,double car2=2.0,double car3=24.0);
int main () |
Forum: C++ Dec 2nd, 2008 |
| Replies: 3 Views: 334 You're absolutely right... |
Forum: C++ Dec 2nd, 2008 |
| Replies: 3 Views: 334 Hello, I have a program that's 95% written. I am getting weird results though, so I will need you to fix it and EXPLAIN why that worked.
This should take an experienced programmer less then 30... |
Forum: C++ Nov 26th, 2008 |
| Replies: 2 Views: 359 Ok i fixed that but now when i run main i get..
#include<iostream>
#include "bj.h"
//------------------------------------------------------------------- |
Forum: C++ Nov 26th, 2008 |
| Replies: 2 Views: 359 HEADER..
#include <string>
using std::string;
class Blackjack
{
public:
Blackjack(string);
void Shuffle();
void Intro(string); |
Forum: C++ Nov 26th, 2008 |
| Replies: 6 Views: 581 Hey thanks you've been a giant help. 2 more questions while you are here =P
What do i sent the PrintCard from main it is asking for an int value?
and my next function will be to assign value to... |
Forum: C++ Nov 26th, 2008 |
| Replies: 6 Views: 581 quick problem i get like this:
no match for 'std::operator<< [with _Traits = std::char_traits<char>](((std::basic_ostream<char, std::char_traits<char> >&)(&std::cout)), ((const char*)"human has... |
Forum: C++ Nov 26th, 2008 |
| Replies: 6 Views: 581 Ok so now the problem becomes that i need to send to printcard whatever value the shuffler comes up with each time it shuffles the deck, how do i do this? |
Forum: C++ Nov 26th, 2008 |
| Replies: 6 Views: 581 HEADER FILE:
#include <string>
using std::string;
class Blackjack
{
public:
Blackjack(string);
void Shuffle(); |
Forum: C++ Nov 25th, 2008 |
| Replies: 7 Views: 1,252 Hey stu appreciate the input, but you're code is a little bit over my head. I'm just getting into pointers so i will use it as a reference :)
BTW on my current blackjack program im having trouble... |
Forum: C++ Nov 24th, 2008 |
| Replies: 7 Views: 1,252 yea... i'm so stupid.. Thanks for that one vmanes.
BTW could you suggest how i should deal out the cards, i need 2 cards for human 2 for computer to start. So should i do a function call to my... |
Forum: C++ Nov 24th, 2008 |
| Replies: 7 Views: 1,252 I'm trying to make a shuffler for a blackjack program it's supposed to give me back a random number from a deck of cards each time i call it. But it's also supposed to keep track of cards out of the... |
Forum: C++ Nov 15th, 2008 |
| Replies: 3 Views: 475 you are absolutely right, thanks :) |
Forum: C++ Nov 15th, 2008 |
| Replies: 3 Views: 475 #include <iostream>
#include <cmath>
using namespace std;
int main()
{//begin main
double hypot(double,double);
double base;
double height; |