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

Married, two kids, two step-kids, house-owner, non-smoker, GSOH. Will write code for food.

Interests
Life, death, the usual stuff.
Favorite Tags
Member Avatar for nathaliecolemadrigal.lopez
Member Avatar for samaru

Is everyone familiar with this game? Just reply with the first word that comes to your mind when you think of the last word posted. You can't respond to the post with a comment, just the word that comes to your mind. It can only be a word or a …

Member Avatar for Dani
1
52K
Member Avatar for Bob

[B]Intro[/B] This tutorial provides a brief introduction to the random number functions that come as part of the C++ standard library, namely rand() and srand(). [b]rand() and RAND_MAX [/b] The C++ standard library includes a pseudo random number generator for generating random numbers. In order to use it we need …

Member Avatar for JamesCherrill
3
52K
Member Avatar for Bob

In C++ we provide names for the entities we create, the variables, functions and types in our programs. These names, or identifiers, are required to conform to some simple rules. [b]Valid Characters [/b] An identifier must start with a letter and is comprised of a sequence of letters and digits. …

Member Avatar for JamesCherrill
0
1K
Member Avatar for thinkerman

Hello. I'm having trouble with creating a program based on Prim's algorithm. This is the program and got the following error: #include<iostream> #include<stdio.h> #include<conio.h> using namespace std; int weight[20][20],visited[20],d[20],p[20]; int v,e; void creategraph() { int i,j,a,b,w; cout<<"\nEnter number of vertices"; cin>>v; cout<<"\nEnter number of edges"; cin>>e; for(i=1;i<=v;i++) for(j=1;j<=v;j++) weight[i][j]=0; for(i=1;i<=v;i++) …

Member Avatar for Aiman_1
0
1K
Member Avatar for Mr Gates

I'm really new to programming, and I really only know web scripting. But I want to excel in programming. Anyway, what languages would be used to create something like adobe photoshop? I've created about 2 programs using c++, but they're like those tutorial things where they run in DOS, and …

Member Avatar for melissad
0
18K
Member Avatar for J&#9788;E

i need help for an engineering class is this the correct syntax for this type of program to add two numbers together i need help at the line that says here this is for a c++ source file [CODE]// program #iomanip #iostream include namespace std; void main() { int number1,number2; …

Member Avatar for NANDHINI G
-1
709
Member Avatar for markwiering

**Hello everybody!** My program which is able to calculate your age, has been **updated!** See http://www.daniweb.com/software-development/cpp/threads/432997/age-calculator for the old version. The programs asks your **birthdate** and the **current date**. With that information, the program is able to calculate your age. It calculates the years, months and days. This program is …

Member Avatar for innocentmeshi
0
466
Member Avatar for jerlisacoleman

Need help with this and my professor is teaching way too fast. You are going to convert feet and inches or pounds in this program. You will give the user the choice of converting feet and inches to centimeters *OR* pounds to kilograms. With the correct answer you will also …

Member Avatar for NathanOliver
0
347
Member Avatar for markwiering

**Hello everybody!** I made a program which is able to calculate your age. You can find the source code below this text. There is already posted an article like this on http://www.daniweb.com/software-development/cpp/code/331349/c-code-for-simple-age-calculator But, my program is: **- Without mistakes**, it doesn't give your computer wrong instructions. **- More accurate**, because …

Member Avatar for markwiering
0
1K
Member Avatar for RonKevin

Grocery Point of sale system... -advises only, thanks! So here it is: 1. The system should have an ability to store up to 100 records. 2. Provide the following POS Application: a. Scan Buyer's Items-i'm not really sure about this one..is this where i'l input the barcodes of the //items …

Member Avatar for RonKevin
0
345
Member Avatar for on93

Write a simple program to prompt the user to key in x and n value to calculate the result for the following formula: Result = 1+2!/((x-2))-3!/((x-3))+4!/((x-4) )- … n!/((x-n)) ------------------------------------------------------------------------------------------------------------- Note: x value must be greater than n value. i need help for C++ programming class work thanks a lot

Member Avatar for np complete
0
160
Member Avatar for orar

#include<iostream> using namespace std; float input() { float inches; float feet; cin>>inches; cin>>feet; }; float calculate(float inches, float feet) { float cm; float meters; cm=2.54*inches; meters=feet*.3048; }; float output(float meters,float cm) { cout<<"The feet to meters="<<meters<<endl; cout<<"The inches to cm="<<cm<<endl; }; void main() { float input(); float calulate(); float output(); …

Member Avatar for np complete
0
200
Member Avatar for ShEeRMiLiTaNt

Hello, I need to write a program that takes a string and reverses it via pointers. I have a function called Reverse and what it does is take to pointers (*front and rear*) and intializes them to the front and back of the char array respectively. Then what it does …

Member Avatar for ShEeRMiLiTaNt
0
195
Member Avatar for nathan_drake

Nothing bothers Bob more than when taller people stand up in front and block his view at sporting events. It bothers him so much, that he has developed a measure for the displeasure that a crowd feels because of this phenomenon. Most days, he calls his measure the Index of …

Member Avatar for SoreComet
0
234
Member Avatar for Bumpehh

so i was bored and decided to make a dice simulator, and i ran into a error. heres the code #include <iostream> #include <ctime> #include <cstdlib> using namespace std; int total[12]; int dice1; int dice2; int aitotal[12]; int aidice1; int aidice2; void Roll(){ srand(time(0)); dice1 = 1+ (rand() %6); dice2 …

Member Avatar for Bob
0
159
Member Avatar for addicted
Member Avatar for akashi

Problem Statement - Case Study : Simulation of a Parking System Consider a Parking System with a machine, handling parking process and payment process. This machine has a card slot-in and slot-out, a customer console (keypad and display) for interaction, a cash collector and a cash dispenser. The machine will …

Member Avatar for WaltP
0
319
Member Avatar for orar

#include<iostream> using namespace std; #include<iostream> using namespace std; void main() { int a ,b,c; cout<< "Enter three integers"<<endl; cin>>a,b,c; if (a<b && a<c) cout<<"a is less"<<endl; if (b<c && b<a) cout<<("b is less"); if (c<a && c<b) cout<<"c is less"<<endl; else cout<<"all numbers are the same"<<endl; }; I GET A …

Member Avatar for np complete
0
276
Member Avatar for kshahnazari

Have a question , if we can compare two arrays for equality like this #include <iostream> using namespace std; int main() { int a[5],b[5]; for (int i=0;i<5;i++) { cin>>a[i]; cin>>b[i]; } if (a==b) cout<<"they are equal"; } as you see isnt there a way like this or a function to …

Member Avatar for L7Sqr
0
139
Member Avatar for Sasquadge

Hey guys I'm having a minor issue here, I'm having an issue with my sterling.cpp in the add functions sterling add(sterling s1, sterling s2) my question is how do I get it to realize when my shillings is > 20 to goto pounds and when my pence is > 12 …

Member Avatar for Sasquadge
0
1K
Member Avatar for nitin1

**Because it is a compile-time operator that, in order to calculate the size of an object, requires type information that is only available at compile-time. This doesn't hold for C++.** i have read this statement roght now when implementing one library function. why it doesn't hold for C++? secondly, i …

Member Avatar for myk45
0
264
Member Avatar for Binary1010

Write a function, swapSubtrees, that swaps all of the left and right subtrees of a binary tree. Add this function to the class binaryTreeType and create a program to test this function. This was my assignment this week and I am just at a loss I don't even know where …

Member Avatar for Binary1010
0
880
Member Avatar for Yusuke00

Determinate,if it's possible,p numbers of n binary digits,so any 2 of this numbers to match in exactly m positions.There must no be positions same digit to appear in all the p numbers. Restrictions 1 <= p <= 25 1 <= n <= 25 1 <= m <= n a number …

Member Avatar for Bob
0
227
Member Avatar for jdadkn

Write a program to input a sentence until user presses esc or enter key. Calculate the number of spaces, small letters, capital letters and vowels. It should also print the length of the sentence. If user enter a character other than space or alphabet, it should not be displayed on …

Member Avatar for nitin1
0
99
Member Avatar for XerX

Hello! Can someone please give me some advice where to begin this program from and how. Thanks in advance. [quote]Given set of points in the plane, you have to write a program in C++ that computes the following values: 1. The minimum distance between two points. 2. The maximum distance …

Member Avatar for Bob
0
633
Member Avatar for nitin1

hi, actually I am learning C from past 1 year now and have learnt alot in C. I have read many many books and have solved alot problems in C. now, i am thinking so as to do some kind of project in C/C++. can anyone suggest me some kind …

Member Avatar for Bob
0
168
Member Avatar for haqua

**Hello C++/C Programmers there,** Please help with my program in C++, my program is always have 2 errors every time I compile and run it. My program is about string permutation which has main menu first. Here is my codes: #include<iostream.h> #include<conio.h> #include<stdio.h> int count=0; void permut(char stra1[],char append[]) { …

Member Avatar for WaltP
0
3K
Member Avatar for anumiqbal

kindly help me n tell me in 2 dimension array wen we r taking words as input then cin would be used or getch..???plz replay.me waiting

Member Avatar for WaltP
0
129
Member Avatar for tspga

i have tried hard but dont know wy im getting this error , error comes in line 8 class CPop { CBSVector<CTour> pop; CBSVector<double> probability; int popsize; double TotalFitness; CTour Elite; **CTspGAParams GAParameters;** } error C2059: syntax error : 'constant' error C2238: unexpected token(s) preceding ';' [POP]// Pop.h: interface for …

Member Avatar for tspga
0
161