Beginners - October 2014 (Page 54)

What's Wrong With My Functions?
 
This code should be pretty straightforward, readData reads the width and length, area calculates the area and stores it in double Rav, and then printOutput prin...
[9 replies] Last: #include <iostream> void readData(double &w, double &l); double area(... (by aclayton96)
"Craps" Dice Roll Program issue
 
First I'll begin by stating the objective of the program. Write a program to simulate the casino game "craps". It should execute 100000000 times so that yo...
[4 replies] Last: I would be interested in seeing how your final version came out, if yo... (by PCrumley48)
Using Srand
 
Hello guys, i need some help using srand, the reference page is not very clear how to work it out specifically as how i want to, specifically, i just want to ge...
[5 replies] Last: oh man ... Thanks very much for your time :) (by Dexterr)
help in creating power function
 
hello,I am trying to build a power function that works like <cmath> pow(); and also is done with recursion. 2 power n works as long as n is a real number. what...
[1 reply] : anyone?sorry for bumping,nobody is replying and it will go to page 2 (by DAoliHVAR)
Random Sentence Generator
 
So, I've successfully made a program that prompts the user to enter 10 nouns and 10 verbs and randomly selects two nouns and one verb to display a sentence. But...
[3 replies] Last: just some beginners input on the idea here, isnt it possible to perfor... (by Dexterr)
How can I change the code below to accept all equations?
 
Dear Friends, The code below is to calculate the dy/dx = y - x differential equation by second order runge-kutta methods. How can I change it to get an equation...
[no replies]
What is wrong with my code1?
 
Dear Friends, Would you please tell me why in the output of my code instead of t=0, it starts with t=69.09? I want to get the acc function values between t=0 an...
[2 replies] Last: Thanks a lot dear friend. (by spring2014)
Problem using tgamma() function
 
tgamma() function shows different result for same logic. Code are given below.. #include <iostream> #include <cstdio> #include <cmath> using namespac...
[1 reply] : tgamma returns a double so the first one casts it to an int, the seco... (by mik2718)
help with #define
 
I want to redefine some function but I get problems when I do it. I want to define "neq a" to be "char a " #define neq a char a //error: 'a' undeclared (...
[4 replies] Last: FWIW, what you are trying to do is a horrible abomination of code and ... (by Disch)
access class member from different class
 
I want to manipulate a class member from several other classes. class A class A //"classA.h" { public: void sum(); //sum the elements vector v...
[1 reply] : Make it a member of class instead of local variable inside of class me... (by MiiNiPaa)
Simple Dice Game Problem
 
Hello everyone. The program I've written's purpose is to roll a dice 6000 times, and then output the number of times that the dice landed on three. However, the...
[3 replies] Last: It happens. Good luck! (by hyperfine)
Simple linked list program won't work in visual studio
 
This program works in the C++ shell but not in Visual Studio. I was hoping you guys could shed some light on why. #include <iostream> using namespace std; s...
[1 reply] : Try again, program is completely legal (though you should fix lines 97... (by MiiNiPaa)
BST pointer problem root pointer
 
Hi everyone I'm new to c++ programming, I have a problem in the following Binary search tree code . when I initialize (root = NULL) , the code compiles ,b...
[4 replies] Last: yeah , I forget to use temp pointer ... It finally worked , thank yo... (by Aboulkomsan)
Need help with this code!
 
I need some help with this code, its a random sum generator that does subtraction. I want it to only generate sums that equal a positive number and not ones tha...
[13 replies] Last: Ah, Thanks so much, it works perfectly! (by untamedlemon)
by Reiv63
Array for getting a word in C Language
 
I desperately need help right now, I'm stuck for days in C language where you need to type the words that will appear, its a memory game, i don't know how toput...
[6 replies] Last: im using visual studio here, still dont know there is a c++ codes ther... (by Reiv63)
Help with an input statement.
 
If I had a statement in my C++ program to enter your name like this. Please enter your last name. What would I use to statement would I use to enter your last ...
[no replies]
The induction argument, writing out on the screen, structure and base
 
Welcome. I firmly beginners every one can see;) I wrote a few selected programs in ANSI C and would like to find out how I can improve these programs, they ma...
[1 reply] : > I wrote a few selected programs in ANSI C Prefer adherence to a mor... (by JLBorges)
Number guessing game
 
I am trying to make a number guessing game, which tells the user whether their number is too high or too low. It works for the first guess, but keeps repeating ...
[7 replies] Last: So instead of infinitely asking them to guess again (y/n)? it should ... (by shadowCODE)
Sorting a linked list
 
Today I started reading about linked lists and I decided to make a program that asks the user how many random numbers wishes to create; then it shows all those ...
[13 replies] Last: It would be freed when your program finishes. But you still need to le... (by MiiNiPaa)
Any Ideas on how to do this?
 
1) A T flip-flop has a single clock input and outputs Q and . Its Q output toggles (changes state) each time it is clocked.The T flip-flop behaves exactly lik...
[2 replies] Last: U dont have to do it for me.. just give me idea on how to start this.. (by whoovian11)
October 2014 Pages: 1... 5253545556... 70
  Archived months: [sep2014] [nov2014]

This is an archived page. To post a new message, go to the current page.