# Search:

Type: Posts; User: Amrita Ramnauth

Page 1 of 2 1

1. ## Thread: Card Game Logic Problems

by Amrita Ramnauth
Replies
0
Views
4,269

### Card Game Logic Problems

I really need some help with understanding how to do the logic for this card game. It's quite complicated and I've been trying to do it all day and it's due in some hours..It's a lot of code but the...
2. ## Thread: Empty Integer Array

by Amrita Ramnauth
Replies
1
Views
1,516

### Empty Integer Array

I'm trying to check an integer array if it's empty. I stored ROGUE values in the array where should be empty and I'm not getting to check if my array is empty or not. Someone please help

...
3. ## Thread: Text Based Card Game

by Amrita Ramnauth
Replies
1
Views
2,509

### Text Based Card Game

The card game I'm creating is for two players, one user and the other player will be the computer. In general, this is what is suppose to happen:
The player starts off the game then the computer...
4. ## Thread: Searching an array for several of the same values

by Amrita Ramnauth
Replies
10
Views
1,832

### But quick question, how can I clear the contents...

But quick question, how can I clear the contents of an integer array?
Setting it to zero won't be useful in this case because 0 sets the array to a value.
I want to make the array empty well o.o
5. ## Thread: Searching an array for several of the same values

by Amrita Ramnauth
Replies
10
Views
1,832

### It works now. (y) Thanks

It works now. (y) Thanks
6. ## Thread: Searching an array for several of the same values

by Amrita Ramnauth
Replies
10
Views
1,832

### I'm trying to do as you said with running a count...

I'm trying to do as you said with running a count by checking through a second array but I'm running into some problems. Here, a card could have faces in the range 0-12. I'm setting all the values in...
7. ## Thread: Searching an array for several of the same values

by Amrita Ramnauth
Replies
10
Views
1,832

### Thank you Think I got it now. :)

Thank you Think I got it now. :)
8. ## Thread: Searching an array for several of the same values

by Amrita Ramnauth
Replies
10
Views
1,832

### Yes the vaild input is always non-negative in my...

Yes the vaild input is always non-negative in my case. But could you go back to the second array part. I lost you there.
Thank you
9. ## Thread: Searching an array for several of the same values

by Amrita Ramnauth
Replies
10
Views
1,832

### I can loop through the array to see if any value...

I can loop through the array to see if any value is higher than the integer I specify. The part that I'm not getting is how I store all the larger values and how and I wanna keep track of the number...
10. ## Thread: Searching an array for several of the same values

by Amrita Ramnauth
Replies
10
Views
1,832

### Searching an array for several of the same values

I have a project to submit in two days and I can't wrap my mind around something...Kindly help

I have a variable storing a number, say int i=5

I have an array of about 10 numbers stored and I...
11. ## Thread: What is this sorting technique?

by Amrita Ramnauth
Replies
13
Views
3,494

### Yes the program reads the .txt file That's what...

Yes the program reads the .txt file
That's what I meant
12. ## Thread: What is this sorting technique?

by Amrita Ramnauth
Replies
13
Views
3,494

Hmm I see
Thanks
13. ## Thread: What is this sorting technique?

by Amrita Ramnauth
Replies
13
Views
3,494

### I can get to sort up to 100,000

I can get to sort up to 100,000
14. ## Thread: What is this sorting technique?

by Amrita Ramnauth
Replies
13
Views
3,494

### I'm trying to sort 500k random numbers in my...

I'm trying to sort 500k random numbers in my codeblocks compiler which I call from a .txt file. When I run the program it just gives me a blinking pointer to the top and does nothing. Any idea of...
15. ## Thread: What is this sorting technique?

by Amrita Ramnauth
Replies
13
Views
3,494

### Yes it's like the selection sort but it's not as...

Yes it's like the selection sort but it's not as efficient as the selection sort. And the algorithm you posted for it is correct.
I just wanted to know if that sort exists and what's the name of it...
16. ## Thread: What is this sorting technique?

by Amrita Ramnauth
Replies
13
Views
3,494

### What is this sorting technique?

I have an
array[4] = {5, 3, 9, 1}
I compare the first index with the second and if the second index is smaller then I'll swap the first index with the second.
After 1st pass I get:
{3, 5,...
17. ## Thread: Find Highest Card in Hand and swap with Other Hand

by Amrita Ramnauth
Replies
1
Views
1,462

### Find Highest Card in Hand and swap with Other Hand

I'm having some problems with creating a card game known as President. Part of the game requires me to grab the highest card from Hand4 and place it in Hand1 then grab the lowest card in Hand1 and...

by Amrita Ramnauth
Replies
18
Views
9,609

by Amrita Ramnauth
Replies
18
Views
9,609

### I haven't even come across that yet...

I haven't even come across that yet...

by Amrita Ramnauth
Replies
18
Views
9,609

### Shuffling Cards

I've reached to a point where I have my deck of cards and now I'm trying to shuffle the cards right in the deck then share the cards. I have a shuffle function but it's not working as I intend for it...

by Amrita Ramnauth
Replies
18
Views
9,609

### Never understood the difference. I got it now....

Never understood the difference. I got it now. Thanks (y)

by Amrita Ramnauth
Replies
18
Views
9,609

### I understand what's going on now but one...

I understand what's going on now but one question, for line 55, why ++i and not i++?

by Amrita Ramnauth
Replies
18
Views
9,609

### Deck Array Printing Problems

I've created a deck array and I'm running into a problem when I want to print my cards with their suit and face.
Here is the code:

#include<stdio.h>
#include<stdlib.h>
#include<time.h>...

by Amrita Ramnauth
Replies
18
Views
9,609

### I think I'll work with an array of struct. Thanks...

I think I'll work with an array of struct. Thanks for the feedback