Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
2 Commented Posts
~7K People Reached
About Me

I have always had a strong interest in computers and how applications work, so I recently took it upon myself to start learning C++, HTML, XML and JavaScript. I am still very much a beginner with programming, but I hope to really strengthen my skills…

PC Specs
ABS Mayhem z2: Windows XP Pro SP3 Intel Yonah 667MHz FSB 2MB L2 Cache, 1.66GHz (T1300) ATI Mobilityâ„¢…
Favorite Tags
Member Avatar for dgr231

Hey everyone, I've been working on learning the Win32 API for C++ so that I can start programming windows programs. I haven't run into any issues until last night when I tried to include a menu in my basic window through resources. I'm using Visual C++ Express 2010 which doesn't …

Member Avatar for mitrmkar
0
244
Member Avatar for Ponomous

Hey, so im trying to make a memory game using 2d arrays. This is my code to randomly generate the rows and columns but its not giving me pairs, could someone tell me why, i really dont know. [CODE] for (int r=0; r<4; r++) { for (int c=0; c<4; c++) …

Member Avatar for vb6exp32
0
223
Member Avatar for dgr231

Hey all, I am currently working on building a small text-based RPG to practice C++. I am working on a function to load a saved game from information saved in a text file. Below is the code for the function: [code=cplusplus]void getSavedGame(playableCharacter& player1) { int stamina, health, mana, level, strength, …

Member Avatar for dgr231
0
240
Member Avatar for jsmarts

my assignment is to make a triangel like so: * ** *** **** ***** I have done so but cannot get my command window to stay open. It pops up and closes right back out. heres my code can anyone help? #include <iostream> int drawBar(int); int main() { std::cout << …

Member Avatar for Shinedevil
0
145
Member Avatar for razo

hello..i have homework and wish that i can find help here.. i needed on sunday to be solved.. plz help as much as u can. consider the definition of the following class: class CC { public : CC (); //line 1 CC (int); //line 2 CC(int, int); //line 3 CC(double, …

Member Avatar for razo
0
128
Member Avatar for kadji.kahn

I was asked "This program asks for a series of five test scores and calculates the average score in a function. The function should receive the total of the five scores as an argument and return the average of the five scores. The program should not accept scores less than …

Member Avatar for cgeier
0
151
Member Avatar for anbuninja

so im trying to practice writing a few programs that might have to do with my upcoming test soon. in this program i wanted the user to enter a test score and it couts the letter grade. doesnt work properly it couts the test score instead of the letter grade. …

Member Avatar for dgr231
0
162
Member Avatar for dgr231

Hello all, I am in the process of teaching myself CSS to go along with my beginner-intermediate knowledge of HTML. I am just starting with CSS and have created a small test file to attempt to create a table with one row and one cell in that row. I then …

Member Avatar for webexpertzhere
0
121
Member Avatar for tomtetlaw

[code] struct{ int health; int armor; char* wep_name; char* name; } test_player = { 100, 10, "master sword", "tom" }; [/code] how to i access the members of test_player ?

Member Avatar for Sky Diploma
0
110
Member Avatar for arelius

Hello all, I am taking a course in C++ and in Ada. Our professor has given us the choice to be tested in language profficiency in either C++ or Ada. The test format will be of simpler programming problems and more geared towards shortanswer concepts. I was wondering if anyone …

Member Avatar for dgr231
0
234
Member Avatar for blahbla

hi i need some help with adding a bunch of random numbers. i dont understand how to add them all. heres the code: [CODE]#include <iostream> #include <cmath> using namespace std; int main () { int i,x; srand (time (NULL)); for (i=1; i<=10; i++){ x=rand()%10+1; cout<<x<<endl; } system ("pause"); return 0; …

Member Avatar for blahbla
1
157
Member Avatar for Supercharger

i need help with this C++ array excercise.... it seem quite simple but im not sure what code i need to put where. help is greatly appreciated... Excerise:: [url]http://www.lhs.logan.k12.ut.us/~rweeks/cp1/array.htm[/url]

Member Avatar for dgr231
0
152
Member Avatar for rajesh.hck

Hey guys, I am new to C++ coding. Can anyone help me and tell me how can I get a C++ Compiler free for study purpose.

Member Avatar for dgr231
0
98
Member Avatar for suutukil

please do help me the program goes like this; #include<iostream.h> void main() { int x; int no[10]; cout<<"input 10 numbers"<<endl; for(x=0;x<=9;x++) cin>>no[x]; for(x=0;x<=9;x++) cout<<no[x]<<endl; } but i have to get the sum 0f the 10 numbers in ascending order this the outtput example: 1+1=2 2+2=4 3+3=6 5+5=10 4+4=8 i have …

Member Avatar for mrnutty
-1
150
Member Avatar for xfreebornx

[CODE]#include <iostream> #include<vector> #include<ctime> #include<algorithm> using namespace std; struct student { int id; char name; char nationality; char gender; student() : id(0) , gender(' ') { } student(int i, char g) :id(i), name(g) { } }; void insert(student array[]); bool sortByID(const student& a, const student& b) { return ( a.id …

Member Avatar for hao001
0
317
Member Avatar for dgr231

Hey guys, I am still pretty new to C++ and am completely self-taught up to this point. I am currently learning about try, throw, and catch statements for exceptions and am trying to incorporate this into my programs. I know that normally when you allocate new dynamic memory, if the …

Member Avatar for gotorightway123
0
1K
Member Avatar for Epi23

Hey everyone, I'm just now learning c++ and was wondering if there was a way to loop this program so that I don't have to copy and paste it. I got it to work, but I was just curious if there was another way to do it. it just does …

Member Avatar for Epi23
0
102
Member Avatar for xfreebornx

i created a delete function to check for similar user id and delete one but it can seems to work, so i need your help please.. [CODE]#include<iostream> #include<algorithm> //for std::sort #include<string> using namespace std; struct student { int id; string name; string nationality; string gender; }; void insert(student array[],const unsigned …

Member Avatar for xfreebornx
-3
439
Member Avatar for usagi713

Task: Write a function called DisplayEmployeeRec() that takes EmployeeRec as a parameter and displays the value using the following format: NAME: ID: PAYRATE: HOURS WORKED: GROSS PAY: This is what I have so far: [code=cplusplus]#include <iostream> #include <iomanip> #include <string> using namespace std; struct EmployeeRec { string name; string empId; …

Member Avatar for dgr231
0
175
Member Avatar for dgr231

Hello All, I am still pretty new to C++ and am just trying to create simple codes to strengthen my skills. I have written the code below that is supposed to allow the user to pick a shape (either circle, square, or rectangle) and then input either the radius or …

Member Avatar for mrnutty
0
152
Member Avatar for macobex

So, I'm really frustrated with this problem. I desperately need some good explanation about this. Why does the calling function does not reflect the change done in the called function? despite the fact that I pass the variable via pointer. Any explanations please. Thanks in advance. [CODE]#include <iostream> using namespace …

Member Avatar for dgr231
0
121
Member Avatar for stevenaseron

Cashier 1.0 is a C++ program that displays on the screen item codes with corresponding item description and price (at least 10 items). It asks the user to enter the code of the item purchased by a customer. Then, its description and price are displayed on the screen too. Also, …

Member Avatar for stevenaseron
0
294
Member Avatar for hollywoood

Hello everyone.... I have gotten this far with my mortgage calculator....the problem is the while loop and the actual calculation isn't working correctly. The while loop really doesnt do what i was hoping for it to do...and being pretty amature at this...i am not sure where to go. i built …

Member Avatar for hollywoood
0
771
Member Avatar for CD-4+

hello , i am a newbie in c++ and desperately wanna learn it. icoded this but i m gettin some error [code]# include<iostream> using namespace std; class cat { public: unsigned short int age; public: void meow () { cout<<"MY AGE IS "<<age<<endl; } [/code] [code]# include"cat.cpp" int main() { …

Member Avatar for dgr231
0
156
Member Avatar for chikool

error C2106: '=' : left operand must be l-value for (int m=0;i<4 && i%2==0; m*m =i) { cout<<"Multiplication of all positive even numbers which are greater than N: "<<i<<endl; }

Member Avatar for dgr231
0
107
Member Avatar for spoinkgeek

hello im doing this assgment.need a solution urgently! Animal Show is organized. There are 2 sessions for the show, which are 2pm-4pm and 8pm-10pm per day. There are only 50 tickets available per session per day. For the show, a ticket for an adult sells for RM10 while for a …

Member Avatar for mypicturefaded
0
366
Member Avatar for sara9111

Hi There.... # include <iostream> using namespace std; int one (int x, int y); double two (int x, double a); int main () { int num, x, y; double dec, a, first; cout<<"please enter two integers numbers: "; cin>>x>>y; cout<<"please enter a double number: "; cin>>a; num = one (x, …

Member Avatar for sara9111
0
170
Member Avatar for basitchk
Member Avatar for Stefano Mtangoo
0
82
Member Avatar for dgr231

Hello all, I am in the process of teaching myself c++. I wrote one program successfully and I'm trying to write my second. I have run into a problem that I can not seem to figure out at all. I understand that this seems trivial, but I really need to …

Member Avatar for dgr231
1
153
Member Avatar for dgr231

Hey all, I know this is a very newbish questions, but I couldn't readily find the answer on this board so I figured I would ask. Consider the following code snippet: [code=cplusplus] for(i=0;i<5;i++) { int number; int counter; cout << "Enter a number less than 10:" << endl; cin >> …

Member Avatar for Salem
0
128