Beginners (Page 70)

Choose one if-statement
 
What I want the program to do is to only choose one of the three if/else statement. If the user i...
[7 replies] Last: @ awkward - sorry, didn't realise, anyway Smac89's post will solve it... (by Softrix)
Largest Sum of Four Adjacent Numbers (2D Array)
 
Hey guys, I have been assigned to write a function (or functions) which displays four adjacent numbe...
[4 replies] Last: "adjacent"? Do you mean "four in a row, four in a column, or four alo... (by keskiverto)
Find square root of given floating point number
 
Hi. I'm obviously new to C++. I thank you in advance for your help. I know this is a very simple ...
[15 replies] Last: oh yeah...I forgot to paste those. haha. It took a bit but it finall... (by WishonTD)
by sidei
need help about c++ add two different size arrays
 
I cant get the output that i want,please help me. i want the program can show the number it choose.a...
[4 replies] Last: Is this a: Select x from set A and y from set B so that x+y==sum. P... (by keskiverto)
by Jhub
Find a letter in a given word
 
Hello everyone, I need to Write a program that takes a single word string from the user. After acqu...
[9 replies] Last: if I am reading this correctly variant 1 and 2 are two different ways ... (by Jhub)
superstring question
 
Write your question here. this is my code about search substring in a file. but i need to change i...
[1 reply] : if ( s.find(t) != std::string::npos ) { std::cout << s << "\nis a... (by MiiNiPaa)
What does the cin.get() do?
 
What does the following line of code do? cin.get(); From my understanding it stores any char...
[1 reply] : Reference is your friend here: http://en.cppreference.com/w/cpp/io/ba... (by MiiNiPaa)
Call to a function
 
Helle, i need a function printsresults, not a member function, to print out final couts. I don't und...
[4 replies] Last: so you need a function that takes in the object as a parameter? voi... (by novellof)
by davez
the Ternary operator
 
Can someone teach me how ternary operator works i really cant understand it. Thanks
[3 replies] Last: Whoops, typo. Thanks for noticing. Fixing it. (by MiiNiPaa)
help!!!
 
how do i go about getting ride of the "-" in the numbers? 1) Write a program prompts a user fo...
[3 replies] Last: How did you solve the problem? Did my post help you? Please let me kno... (by novellof)
by swivel
Comparing elements in the same array
 
How do I write a function that will compare the elements in the array? Example: my array is 1, 2, 3,...
[2 replies] Last: Your question is so vague. Why would you compare if 1 = 2? (by DeathLeap)
Implement Arrays
 
Hello, im trying to implement an array into this program. Could you give me an example using the nam...
[1 reply] : const int NUM_NAMES = 5; string names = {"name1","name2","name3","n... (by novellof)
Help!!!
 
I'm trying to figure out what I did wrong with this while loop. I want the program to run until the...
[3 replies] Last: What is wrong with your loop? What is your issue because it works for ... (by novellof)
&& with strings
 
So using "&&" gives me an error no operator "&&" matches these operands. Can you not compare strings...
[2 replies] Last: OHHHH. Such a stupid mistake. Thanks (by Extreme112)
Cant create class object
 
I'd like to create an array to accept student' names. Why cant I create the class object Quizdata st...
[1 reply] : In your class you need to name the arguments: class QuizData { ... ... (by hyperfine)
finding a range between period dates in an enum
 
UPDATE: SOLVED. I had problems trying to figure out the correct for loop math, but I figure...
[19 replies] Last: For some reason I thought I needed to make another function for the en... (by tamirat)
Help me
 
i wrote a program that calculates how much someone made in a week. the calculations are almost corre...
[1 reply] : the worker has 2 dependents what formula to use if it has 3 or more de... (by sammweout)
Midi Note Calculator
 
Hey guys, I am new to this forum and love it so far. I am attempting to write a program where the us...
[2 replies] Last: So what is wrong with my math here? n[ i ] = i + i^(1/12) for each st... (by adventureaudio)
How to exclude a number from command 'for'?
 
Good night, everyone.. Just wondering how do I exclude a number from command for 'for'? For an exa...
[3 replies] Last: What are you trying to "make work"? Your code there seems to be a diff... (by Ganado)
Need help
 
I need to write a C++ program that performs a basic arithmetic operations including addition, sub...
[2 replies] Last: When I am unsure how to get a program started, I try to answer the fol... (by squished18)
Pages: 1... 6869707172... 102
  Archived months: [aug2014]

Cannot post in this page. To post a new message, go to the first page.