Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
57% Quality Score
Upvotes Received
4
Posts with Upvotes
4
Upvoting Members
4
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
3
4 Commented Posts
0 Endorsements
Ranked #3K
~11.9K People Reached
Favorite Tags
c++ x 41
c x 6
Member Avatar for may4life

Hi guys, I'm quite new to C++, I have just recently gone through 3/4 of SAMS teach yourself C++ in 21 days and I am hoping to start programming my first object-oriented game. I have created a few games in the past (you can check them out on my site …

Member Avatar for Serapth
0
2K
Member Avatar for confused!

Hello. I am trying to write a program where a human can play rock, paper, scissors with the computer. I'm stuck on the "determine computers choice" part......Here's my code so far... [code=cpp] #include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main () { // initialize the computer's random …

Member Avatar for wizzard_tzie
0
627
Member Avatar for newbie2c++

Hi all! THis is the program I am supposed to write: Modify the program so it displays a menu allowing the user to select an addition, subtraction, multiplication, or division problem. The final selection on the menu should let the user quit the program. After the user has finished the …

Member Avatar for vmanes
0
888
Member Avatar for dmmckelv

I am new to C++. This is a homework problem. So if anyone gives up their time to help me it is greatly appreciated. I have perfect number program, I can get it to run if all my code is in the main. The assignment requests that I use a …

Member Avatar for Nick Evan
0
1K
Member Avatar for myboo11009

I am trying to write a math tutoring program for students. A very basic outlay of ceretain components. This program should have the user select addition, subtraction, multiplication or division. user should also have the capeability to exit the program and quit it. I tried writing some code for this, …

Member Avatar for ithelp
0
1K
Member Avatar for may4life

Hi, can anyone tell me how to configure DirectX (December 2006) in MS visual C++ 6.0 please, or at least where or what to read to finally do it? I’m having a real hard time figuring this out thanks

Member Avatar for may4life
-1
65
Member Avatar for 80s

Hi All :mrgreen: , was mucking about with a small programme I have which makes a triangle pattern when entering in a number. It uses nested For loops. I now want to create the same thing using functions as im only just beginning to learn the C language. I have …

Member Avatar for Aia
0
476
Member Avatar for Boldgamer

[COLOR=#000000]Hello everyone. I am interested in learning C++ and am looking for a good book to start out with. I read the topic in the sticky in this forum and have narrowed my choice of beginner books down to either [/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]A) [/COLOR][COLOR=#000000]C++ How to Program by [COLOR=black]Harvey …

Member Avatar for may4life
0
156
Member Avatar for jessiegirl

Hi everyone and thanks for looking to help me. I am working with a program involving arrays. I needed to write one that involves the use to have the program take about 10 numbers, list the minimum, the maximum, and the average. Now the program that I have below runs …

Member Avatar for WaltP
0
151
Member Avatar for may4life

[I]<< This thread is split off from a discussion that originated here: [thread]62976[/thread] >>[/I] Here;s something you can work on. It may not be exactly what you need but its a basis at least. Also, why do you need to check if the second number of the division is zero, …

Member Avatar for jbennet
0
138
Member Avatar for jcflore3

Hi, you guys helped me on a program about a month ago and it really helped me get through the program. Therefore I really appreciate what you all do and thank you for the help last time I am having trouble finishing this program on classes the assignment is this: …

Member Avatar for may4life
0
220
Member Avatar for sunny123

ive created this currency conversion program which converts the currency then adds commission, but its got a error saying undefined symbol true in function main can someone help me ive only got the one error with it. [code]#include <iostream.h> int choice; double pounds; double USdollar; double Euro; double interest; int …

Member Avatar for John A
0
90
Member Avatar for Francis Waldron

Here is another shot at it. It all most complier but falls short . still I know it doesn't mean its right. thanks for the help so far.

Member Avatar for iamthwee
0
157
Member Avatar for joelw

ok, i need help writing a program that stores data about a basketball player in a structue. I need to create a structure for players name, players number, and by points the player scored. I need to keep an array of 5 of these structures. Which each element is for …

Member Avatar for may4life
0
187
Member Avatar for joelw

im getting an error cannot convert 'int' to 'double' for argument '1' to 'double sort Array(double'.int)' while trying to debug code what does that mean here is another copy of my code now. [code] #include <iostream> #include <iomanip> using namespace std; // Function prototypes double sumArray(double[], int); double getHighest(double[], int); …

Member Avatar for joelw
0
118
Member Avatar for gemacjr

Unable to correct this [code] void main() { char string[20]; char *aString=string; function (aString); } void function(char *name) { cout<< "enter name"; cin >> *name; cout << name; } [/code]

Member Avatar for may4life
0
76
Member Avatar for Luckychap

I have just started C++, i have problem in understanding virtual functions. can anybody tells me what are v.f. and most important what is there importance in C++. Thanks

Member Avatar for Ancient Dragon
0
134
Member Avatar for teddy13

Hi everyone, av been trying to come up witha program that will tell if a string is a plindrome.This wat i did and i can't realise the error; [code] #include<iostream> #include<string> using namespace std; int main(){ string s; string s2; getline(cin,s); s2=s; string::iterator pos; string::iterator pos2; bool check;check=true; for(pos=s.begin(),pos2=s.end()-1,pos!=s.end(),pos2!=s.begin()-1,pos++;pos2--;){ if(*pos!=*pos2){ …

Member Avatar for may4life
0
105
Member Avatar for jessiegirl

In need some homework help again. Please I am new at this and PLEASE PLEASE do not post YELLING post at me for wrapping the code because I don't know what that is. If you would like to explain it to me in plain english I am willing to learn. …

Member Avatar for ~s.o.s~
0
94
Member Avatar for teddy13

[code]//This progam accepts marks of 4 different subjects by 5 students. //Then calculates the average score of each subject and displays the result. #include<iostream> using namespace std; //This functions, get the average of each subject. int avrgProg(int PDenis,int PTriza,int PWinnie,int PTeddy,int PJoy); avrgProg= avrgp; avrgp=(PDenis+PTriza+PWinnie+PTeddy+PJoy)/5; return avrgp; int avrgSD(int SDDenis,int …

Member Avatar for may4life
0
82
Member Avatar for AnG'

Once I completed the following code, compiled.....this is what displayed: Number of 'mild' jars sold. (That's it). Is there something wrong with my C-prompt? Did I miss something? the code is sappose to: [COLOR=#000000]Prompt the user to enter the number of [/COLOR][COLOR=#000000]jars sold for each type. Once this sales data …

Member Avatar for manutd
0
111
Member Avatar for astrojith

Well, first of all, I'm astrojith. I'm new here at Daniweb. So, hello all of you :cheesy: !! . Now, to my question. In school, I'm being taught programs which all use "void main()". But, I've seen a lot of code using int main(). I asked my teacher about this …

Member Avatar for chunkmartinez
0
492
Member Avatar for newbie2c++

Hi everyone! So I can't seen to get this program to compile and run. THis is exactly what I'm shooting to do: This program should calculate which division in a company had the greatest sales for a quarter. It should use the following functions: [LIST=1] [*]A function should ask the …

Member Avatar for John A
0
188
Member Avatar for bokim
Member Avatar for WaltP
0
128
Member Avatar for dev.cplusplus

Hi, to all, I'm having the following problem: I'm trying to convert a CString to long(or number), but the number that is in the Cstring is too big and I loose data of the number. I was thinking in using instead of long use the variable ULONGLONG, but the problem …

Member Avatar for dev.cplusplus
0
117
Member Avatar for Francis Waldron

ask Using two integers num1 and mun2 divide the first by the second print out guotient and remainder both ints output looks like this First number entered second number entered Quotient Remainder

Member Avatar for Francis Waldron
0
307
Member Avatar for aznballerlee

My task for this function is to find the index of the <= string in the array. If more than one string, then retrun the smallest index of such string. Retunr -1 if no elements in array. I came out with a rough code. I hope what I did was …

Member Avatar for aznballerlee
0
112
Member Avatar for mattyd

(** This post was inspired by a recent post I read where a reply suggested the indenting of all code.) I am guilty of this, I'll be honest. I know it is important to indent and indent properly, it is industry standard, and it is simply utilitarian. I always think: …

Member Avatar for vegaseat
0
316
Member Avatar for jimbobint

I'm really having trouble understanding how to initialize multidimensional arrays. The way it is explained in the book I'm reading is: You assign the list of values to array elements in order, with the last array subscript changing and each of the former ones holding steady. Therefore, if u have …

Member Avatar for ~s.o.s~
0
145
Member Avatar for jcflore3

Five sets of 3 double numbers stored in a 5x3 array in C++, How do i do this, I have this so far [COLOR=#0000ff]include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]<iostream> [/COLOR][COLOR=#0000ff]# include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]<iomanip> [/COLOR][COLOR=#0000ff]# include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]<cstring> [/COLOR][COLOR=#0000ff]# include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]<cstdlib> [/COLOR][COLOR=#0000ff]using[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]namespace[/COLOR][COLOR=#000000] std;[/COLOR] [COLOR=#0000ff]int[/COLOR][COLOR=#000000] main ()[/COLOR] { [COLOR=#0000ff]const[/COLOR] [COLOR=#0000ff]int[/COLOR] NUMROWS = 5; [COLOR=#0000ff]const[/COLOR] [COLOR=#0000ff]int[/COLOR] NUMCOLS = …

Member Avatar for may4life
0
192