Search Results

Showing results 1 to 23 of 23
Search took 0.01 seconds.
Search: Posts Made By: Undermine
Forum: C++ Apr 29th, 2009
Replies: 19
Views: 597
Posted By Undermine
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
Posted By Undermine
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
Posted By Undermine
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
Solved: print error
Views: 624
Posted By Undermine
got it thanks for the help
Forum: Python Apr 26th, 2009
Replies: 5
Solved: print error
Views: 624
Posted By Undermine
did that still not printing out even or odd
Forum: Python Apr 26th, 2009
Replies: 5
Solved: print error
Views: 624
Posted By Undermine
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
Solved: Dev C++
Views: 383
Posted By Undermine
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
Posted By Undermine
header




class DeckOfCards
{

public:
DeckOfCards();
Forum: C++ Dec 7th, 2008
Replies: 5
Views: 382
Posted By Undermine
//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
Posted By Undermine
//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
Posted By Undermine
You're absolutely right...
Forum: C++ Dec 2nd, 2008
Replies: 3
Views: 334
Posted By Undermine
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
Posted By Undermine
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
Posted By Undermine
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
Posted By Undermine
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
Posted By Undermine
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
Posted By Undermine
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
Posted By Undermine
HEADER FILE:

#include <string>
using std::string;
class Blackjack
{
public:

Blackjack(string);
void Shuffle();
Forum: C++ Nov 25th, 2008
Replies: 7
Views: 1,252
Posted By Undermine
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
Posted By Undermine
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
Posted By Undermine
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
Posted By Undermine
you are absolutely right, thanks :)
Forum: C++ Nov 15th, 2008
Replies: 3
Views: 475
Posted By Undermine
#include <iostream>
#include <cmath>

using namespace std;

int main()
{//begin main
double hypot(double,double);
double base;
double height;
Showing results 1 to 23 of 23

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC