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
Ranked #3K
~10K People Reached
Favorite Forums
Favorite Tags
c++ x 34
Member Avatar for beau_nerdathen

I have a project about making pascal triangle using recursive function. This is the example output: 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 Hint:(x+y) n=>exponent. *Give me an idea about this project. Thanks!

Member Avatar for mike_2000_17
0
5K
Member Avatar for poncho4all

Ok i have a calculator program, but it can only do positive numbers, can anyone point me in the direction to make it get negative numbers also? [code]#include <iostream> #include <iomanip> using namespace std; struct Node{ float number; Node *next; }; Node* push(Node *stack, float data){ Node *utility; utility = …

Member Avatar for Salem
0
114
Member Avatar for the great

Hello! I have made a program that prints a diamond shape. But my program should read an odd number in the range 1 to 19 to specify the number of rows in the diamond, then it should display a diamond of the appropriate side in which it is at present. …

Member Avatar for Sky Diploma
0
167
Member Avatar for alexa12345

For Input 4 15.01 15 3 3.01 The value of 'avg' is becoming 9.00. I don't understand why this should be 9.01. Please help. [CODE] #include<stdio.h> #include<math.h> double round(double x) { return floor(x * pow(10.0,2.0) + 0.5)/pow(10.0,2.0); } int main() { //freopen("10137.txt","r",stdin); //freopen("out1.txt","w",stdout); long i,n; double sum,avg,sum1,a[1005]; while(scanf("%ld",&n) == 1 …

Member Avatar for mvmalderen
0
129
Member Avatar for jake43

Can anyone help me to program standard deviation? Here is the instructions for this program: Write a program that takes as input five integers and outputs the mean and standard deviation of the numbers. If the numbers are val1, val2, val3, val4 and val5, the mean = (val1 + val2 …

Member Avatar for Tom Gunn
0
616
Member Avatar for jake43

I need help to sort this numbers, but the problem is it won't like i want it to be with the decimals. I tried changing the int to double but then the program will not run. Here is the code, please provide feedback. [code=cplusplus]#include<iostream> using namespace std; // function prototypes …

Member Avatar for mrnutty
0
203
Member Avatar for beau_nerdathen

[TEX]Please help me about my project "Array Alphabet"[/TEX] this is the example output: a b c b c d e d c d e f g f e d e f g h i h g f e * I don't know how to start the program. Give me ideas. …

Member Avatar for mrnutty
0
91
Member Avatar for bishop101

Hi guys, I'm just starting out and I'm having a little problem. When I run an application, it closes by itself right away. A few days ago I went to the Local Library and picked out "Sam's Teach Yourself C++ in 24hrs - I know it's a lie" It came …

Member Avatar for Dave Sinkula
0
94
Member Avatar for jake43
Re: c++

I need help to write this program. Create a data file that contains 15 integers, some positive and some negative. You may create the file in Notepad or any other text editor software. Save the file to the same folder your program will be in. Write a program that reads …

Member Avatar for poncho4all
0
84
Member Avatar for jko2326

Please help, this is for an assignment I need to turn in and I'm STUCK! I have no idea how to do this I've done programs but none like this calling differnt functions. this is what is in the data file. 100 Hammer 10 20 10 200 Saw 24 00 …

Member Avatar for poncho4all
0
419
Member Avatar for poncho4all

Well basicly the problem is that i have to call the function push while the char that is asked for is not '0' then i have to send the modified "*top" and "*temp" into the function POP so that i can show the values and do the deleting of the …

Member Avatar for poncho4all
0
98
Member Avatar for gretty

Hello I am reading a text file & I want to make a for loop, loop repeatedly until the end of the file. Is my code below correct, in terms of syntax? Is this possible to do. [CODE=cplusplus] #include <cstdlib> #include <iostream> #include <fstream> #include <string> using namespace std; // …

Member Avatar for gretty
0
2K
Member Avatar for D.JOHN

I am still new with fstream topic and I have some enquiries about using it. Based on the tutorial shown, I managed to understand a little about it but when I copy the first few lines, #include <fstream.h> void main { ofstream file; file.open("file.txt"); //open a file file<<"Hello file\n"<<75; //write …

Member Avatar for D.JOHN
0
137
Member Avatar for Nathan Campos

Hello, I want to know how i can build a program that reads what is in a parenthesis and print it using cout, but remember that i have to use this inserted a if method. Here is a sample of syntax: [code]test (test of output)[/code] Remember that this syntax is …

Member Avatar for poncho4all
0
79
Member Avatar for Smoking Bros

Hello guys! I'm new at C++ (started yesterday) but I'm a fast learner and I think I got pretty far with this noob project! The only thing I need to do is to make C++ open my .txt file and the beta version of this application is done! By the …

Member Avatar for AssaultM16
0
221
Member Avatar for poncho4all

Ok well i need help with my code, the idea is to make something like a DOS Console, the trick is we are not alowed to use dos functions. Well this is what i have so far [code] #include <stdio.h> #include <iostream.h> #include <conio.h> #include <string.h> #include <dir.h> #include <dos.h> …

Member Avatar for iamthwee
0
178
Member Avatar for kentigens

Hi, Im currently implimenting a nested for loop, but there seems to have some known bugs and i dont know whats causing it , how to fix it, etc. Heres part of my code: //using some of vector<structs> below: [code=c++] void Profile() { int wire = 1; int face = …

Member Avatar for VernonDozier
1
176
Member Avatar for poncho4all

Well I have a doubt about where can I find some examples about this funcion, I need to use it on a program. Any ideas are welcome xD

Member Avatar for poncho4all
0
115
Member Avatar for poncho4all

Im new on this forum, i don`t really know if this should go hear or somewhere else. If i messed up well sry. Here is the problem im working for the first time in Turbo C, i have this proyect its a simple one but i still need help. The …

Member Avatar for poncho4all
0
105