I'm trying to make the function countWord but I'm having some problems with it. i put char countWords(string); the function name before the main function and i call it by doing
if(choice == '4')...
Type: Posts; User: arsenalftw067
I'm trying to make the function countWord but I'm having some problems with it. i put char countWords(string); the function name before the main function and i call it by doing
if(choice == '4')...
Hey sorry but I did not understand a word of what you just said. As I said before, I'm a complete noob at this so I literally did not understand a single word of what you just said :p
Would I have to make a do while program? And I still don't know how to make it so whenever I press 7 it prints the new string, I only know how to do it so whenever the user presses whatever number it...
Hey guys, heres the instructions for my homework:
1. The program should start by asking the user to enter a word, a sentence, or a string of numbers. Store whatever the user enters into a C++...
So I would have to have the num1 num2 etc all in floats?
Not the percentage of each rolled number
Sorry for double post, I realized the error was that I was declaring the value for a variable by putting else if ( rolled = 4 ) or something when it should be ==.
the program now shows how many...
Alright so this is what I have so far
// CSIS 135, Spring 2012, Homework#3 /*PSEUDOCODE: Ask user desired amount of times dice rolled
Store data under variable time_roll
Input random number...
I don't get the last part about the nested loops. I thought it would be something like if (times = 0; times >= rolled; rolled++) to keep track of how many times the user wants to roll the dice. You...
I don't even know what an array is.
A nested loop is a loop inside the body of another loop
Pay attention this is what part of HW #3 is about
Example:
for (int row = 1; row <= 3; row++)
{...
if for loops, she told us specifically to use nested loops but no arrays. I have no idea how to do this and its due on saturday
I don't understand what you guys are saying, I'm a beginner at all of this.
So far from what I understand is I need 6 variables, one for times the user wants rolled, one for time starting at 0,...
need some help with my C++ homework. here is the assignment:
PROGRAM #1 - DICE ROLLING SIMULATION This program should simulate the roll of a single die (dice) (1-6) using the C++ random number...
Yeah I don't get how you input the suffixes
How would I put the UL code? Do I just put like (UL) next to the end result? here is the code:
int main()
{
double weight;
double weightNew;
double speed;
double distanceSun;
double...
Hey guys, so I'm a beginner in C++ and I need some help. I'm using a website called hypergrade to turn in my programs, and one of my assignments was to create a program regarding plants, where it...