Beginners - April 2016 (Page 26)

Need help with my function
 
I need to call a function in int main() that is in a switch statement. This function holds a sentence and counts how many a's,b's, c's, etc. are in that sentenc...
[2 replies] Last: Sorry, what I was trying to ask (late nights aren't good for the mind)... (by nirvie603)
Two exercises
 
Hi I just started a course on C++ programming and I am struggling I am stuck on two exercises any help would be appreciated. 1.Enter series of numbers and wh...
[3 replies] Last: im quite new to programming C++ but this 1st assignment is like super... (by Decept1ve)
cin.get() cin.ignore()
 
I'm working on a Tic Tac Toe project for school that's due today and I'm writing notes for a Tic Tac Toe game my friend and I worked on together. Except I don't...
[1 reply] : For ingnore read this: http://www.cplusplus.com/reference/istream/ist... (by coder777)
Rectangle intersection based on diagonal vertices
 
What is the most efficient way to figure out whether two rectangles intersect given their upper left and lower right vertices. I have the x and y coordinate of ...
[1 reply] : http://www.metanetsoftware.com/technique/tutorialA.html#section1 (by xismn)
Assistance with a program.
 
I know it's probably pretty simple and I'm missing something simple, but coding is really not my strong suit and I could use some help to get it running or at l...
[14 replies] Last: holy wow, thank you so much! Just so you know, I am truly grateful thi... (by VeZeXeZe)
Not converting to Roman Numeral Correctly.
 
Basically I'm supposed to write a program that uses class/inheritance to convert an integer to roman numeral to integer and back to roman numeral. However when ...
[4 replies] Last: @plsalinas Sorry, have never used inheritance, in my recollection. Ha... (by whitenite1)
Random Number Generation Being Stored in an Array Help
 
Hello everyone, I am very new here, but have read many forum posts. I've just finished a program, and when I go to generate 10 random numbers between 0 - 1000 a...
[2 replies] Last: Wow, I just changed that little variable and boom, everything is runni... (by costadali)
by daisy8
Simple Menu Program
 
Hi everyone I'm very new to C++ but I am learning ! I have written a program to give the user a menu with choices and interaction, however, I have a probl...
[6 replies] Last: Thanks for that ! (by daisy8)
by dnun99
Function Help
 
I've been trying to figure this out for a few hours now send help pls. Its suppose to be a simple miles to kilometers with functions. double milesToKilometer...
[4 replies] Last: THANK U THIS WORKED!! (by dnun99)
Finding out how many times a string shows up in a file.
 
I am trying to find out how to make a function that can find out the string that appears the most in that certain file. It's an exercise from Tony Gaddis' Start...
[9 replies] Last: > Are you using pointers in your code? Using iterators. The same co... (by JLBorges)
if statement where array contains string
 
Write your question here. Does anyone know how to check if a string array contains a string? can i use an if ststement. Thanks. #include <iostream> #includ...
[2 replies] Last: The most rudimentary way of doing this: #include <iostream> #include... (by xismn)
Prototype build error?
 
I'm having trouble getting this code to work, I believe it has to do with my function prototypes. The error it keeps giving me is 'PlayMove': function does not ...
[3 replies] Last: Change line 13 from this: void PlayMove(); To this: void PlayMov... (by xismn)
loop for entering numbers into array
 
for the part where I'm entering 20 integers into the array that are greater than 0 and less than 100 i had to put i-- to make it so when i entered a number out ...
[1 reply] : You can use the while loop to validate the user's input. For instance... (by chicofeo)
Sentinel Value
 
How would one use a sentinel value to stop this application. I obviously can't leave it as is because the cityName is outside the while loop, I just can't gras...
[2 replies] Last: ****Bueller**** (by Billyin4C)
by idklol
Need some help with this !
 
So this question probably sounds and is stupid , but i just started learning c++ in school. So we're learning about the while command. And i was doing my homewo...
[2 replies] Last: Thanks a lot, really helped me a lot. I made it work this way .. #inc... (by idklol)
Question about Polymorphism
 
Please take a look at the code below. I wonder what happens when the virtual keyword is not in the base class but in the derived class? will the run() function ...
[no replies]
Palindrome C++ Program
 
In my class, I was assigned the problem of using functions to write a program in C++ to find out whether a given number is a palindrome or not. I wrote some mys...
[3 replies] Last: Why does everyone use "std::" when solving problems like these, inste... (by xismn)
help with program
 
I am trying to pull each grade from the void getData() Function but it's only pulling the last grade. I understand that the grades are in a while loop and all b...
[no replies]
mathematical standard fucntion
 
what is that ??????? http://store2.up-00.com/2016-04/146048599749421.jpg
[4 replies] Last: Each of those pages has an example program, doesn't it? Even though y... (by keskiverto)
How do I REALLY process a single keypress without needing ENTER?
 
Really, all I want is to have a menu. A - first option B - second option C - third option A, B, C or Q to quit ? I don't want to have the user need t...
[2 replies] Last: Thank you. I have conio.h for other reasons so this will work splendi... (by astroannie)
April 2016 Pages: 1... 2425262728... 43
  Archived months: [mar2016] [may2016]

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