Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #4K
~4K People Reached
Favorite Tags

9 Posted Topics

Member Avatar for redtribal23

I'm not entirely sure I'm understanding what you're trying to do, but my suggestion is that instead of trying to separate into suits and then rank, try setting ranges, where if there are 52 cars, 0-12 is spade, 13-25 is club... So on, and then modulo the number to find …

Member Avatar for David W
0
561
Member Avatar for Hector_2

If by better way you mean you want to continue to use the same variable as before all you would have to do is push number on the stack after it has been input by the user like this: // AUSE LINKED STACKS // cout << "Enter first number 1 …

Member Avatar for Hector_2
0
340
Member Avatar for TexasJr

I thought I was finished with my code until I tried to compile it and came out with an error that I really don't know where it's coming from. Can anyone look over and see if they can find the source of the error? Please and thank you! These are …

Member Avatar for TexasJr
0
2K
Member Avatar for TexasJr

**Note that this code works just fine when name is a regular string instead of a c-string.** I made this test program to figure out what was causing problems with my project. Turns out that the code for name that I put works just fine, but it messes up when …

Member Avatar for NathanOliver
0
260
Member Avatar for TexasJr

I made a test program to mess around with a feature I'm trying to put into my class project but I can't seem to figure out what I'm doing wrong. What I'm trying to do is to line up the numbers right of the decimal. this is my test source …

Member Avatar for TexasJr
0
157
Member Avatar for TexasJr

I'm writing a program for my class that is due tomorrow. I thought I was done, but as I starting using it to get an output file, I ran into a problem, and I can't get past it. I have also gone over my code to see if I made …

Member Avatar for TexasJr
0
180
Member Avatar for TexasJr

I'm writing a program for my C++ class, this is a short clip of it: for(customer = 1; customer <= 5; customer++) { customer_Num[customer][2] = rand() % 999 + 1; // Receipt number cout << "Customer Name:" << endl; getline(cin,customer_Non[customer][1]); cout << "Customer's address:" << endl; getline(cin,customer_Non[customer][2]); cout << "Customer's …

Member Avatar for TexasJr
0
133
Member Avatar for TexasJr

This is the code I have right now : cout << "==============================\n"; cout << setprecision(2) << fixed; cout << "Shelby" << setw(24) << shelby << endl; And this is the output: ============================== Shelby 25.81 But what I'm trying to do is add a "$" sign before the amount while keeping …

Member Avatar for vijayan121
0
195
Member Avatar for TexasJr

Okay, so earlier today, I seem to have contracted some kind of virus. I was on MSN messenger and I recieved one of those stupid messages with those links with these kinds of virus attached to them but for some reason I didnt pay attention and I was careless and …

Member Avatar for crunchie
0
173

The End.