Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~3K People Reached
Favorite Forums
Favorite Tags
c++ x 80
Member Avatar for balla4eva33

So I'm trying to make a fun and simple little game of Blackjack using C#. I've got a lot of it working how I want it to, except my shuffle routine doesn't seem to be doing anything. What do I need to change in my shuffle routine so that it'll …

Member Avatar for kvprajapati
0
248
Member Avatar for balla4eva33

I've been interested in working with mouse input in Visual Studio using C++. I'm curious what steps need to be taken to do this. I'm assuming some sort of Windows header file needs to be included, but I have never seen any code for such things. Basically I want to …

Member Avatar for Prabakar
0
229
Member Avatar for balla4eva33

Okay, I've got two files: a main and a header to go with it. I'm not too far into it yet, but for some reason I'm having problems with the string. Am I declaring my strings incorrectly? Am I missing a header file from installation of Visual Studio? Am I …

Member Avatar for CoolGamer48
0
150
Member Avatar for balla4eva33

So I've got "m_starts" as a pointer to an int (int * m_starts;). And a const char * of "m_str". m_str = "bad,cold,new". How can I allocate "m_starts" to store the starting index of each word in m_str??? For loop?

Member Avatar for Ancient Dragon
0
107
Member Avatar for balla4eva33

If I have a const char * of "bad,cold,new" how can I count just the number of commas? Do I need to convert it to string? If so, how do I do that? Do I need to convert all the commas to zeros first? How do i do that?

Member Avatar for balla4eva33
0
151
Member Avatar for balla4eva33

Given main: [CODE] #include <iostream> using namespace std; #include <stdlib.h> #include "minivector.h" #include "bubbleSort.h" #include "Fraction.h" int main() { int arr[]={99, 12, 50, 80, 1, 79, 20}; cout << endl << "bubbleSort ints" << endl; bubbleSort(arr, 7); for (int i=0; i < 7; i++) cout << arr[i]<< endl; double arr2[]={99.2, …

Member Avatar for balla4eva33
0
186
Member Avatar for balla4eva33

I'm trying to create a simple little program that will accept arguments of files (i.e. file1 and file2), and look for occurrences of the "match" string in the included arg files. Then I want to print out the whole line where the match is found preceded by the number of …

Member Avatar for balla4eva33
0
210
Member Avatar for balla4eva33

If I have this main: [CODE] { Matrix m1(3,3), m2(3,6), m3; Matrix m4(2,3); m1 = m1 + m2; m1.print(); m3 = m1 * m2; m3.print(); } [/CODE] then how do I need to adjust this implementation file to work with it!?(Right now I'm just trying to get the '+' '=' …

Member Avatar for balla4eva33
0
155
Member Avatar for balla4eva33

I have this code: [code] void ShapeArr::publishStats() { double ap = 0.0; for (int i=0; i < currCount; i++) { Shape *s = arr[i]; ap += s->getAPRatio(); } cout << "Max APRatio = " << [COLOR="Red"][B]???[/B][/COLOR] << " Average APRatio = " << ap/currCount << endl; } [/code] What do …

Member Avatar for balla4eva33
0
114
Member Avatar for balla4eva33

Maybe my other thread was too wordy for everyone, cuz I usually receive help right away, and I see that it was viewed 20+ times and yet no responses...so basically I need help with my homework...We were given a main.cpp file, and PART of a header file. He also gave …

Member Avatar for balla4eva33
0
94
Member Avatar for balla4eva33

I have a new project I'm working on, and I'm stuck. Notice in my code below that I originally had [B]return dayInMonth;[/B], but commented it out as it was returning the year as 27 in the array and the month and dayInMonth both as 1. My year and month should …

Member Avatar for balla4eva33
0
115
Member Avatar for balla4eva33

I'm having trouble with where to begin with an assignment. I'm hoping someone here will have a little more knowledge and be able to explain it to me. Just a point in the right direction please!! Here's the assignment: [B] Create a Class that reads a file completely into a …

Member Avatar for balla4eva33
0
160
Member Avatar for balla4eva33

[b]WHERE DO I START!?[/b] [CODE] Write a mygrep program that accepts arguments: mygrep [-i] [-n] match file1 [file2] [file3] ... [filen] A grep program will look for occurences of the "match" string in the files file1, file2, ... filen. Whenever the "match" string is found, the line where it is …

Member Avatar for vijayan121
0
423
Member Avatar for balla4eva33

I've got this code I need to link together by creating the implementation (.cpp) file for. I've been given main.cpp and a header file. I need help on my Zoo.cpp file, specifically now on the "addAnimaltoZoo" function. Here's what I've got so far... main.cpp: [CODE] #include <iostream> using namespace std; …

Member Avatar for balla4eva33
0
166
Member Avatar for balla4eva33

I'm trying to create some classes that work together via Operator Overloading. I have the main.cpp and the Distance.h files exactly how I want them, and now I just need help properly setting up my Distance.cpp file to link properly and run accurately with them. Here's a look at what …

Member Avatar for balla4eva33
0
97