Beginners (Page 9)

by Meden
int/float validation
I am trying to write a program which asks the user to answer simple arithmetic problems. One of the...
[4 replies] Last: the usual way to force the issue is to read everything you get from th... (by jonnin)
Need help finding an error
Doing a project for a class and neither I nor the teacher can find the problem upon first look. Am I...
[3 replies] Last: 1. I don't need to define the main() function because I'm not trying ... (by jlb)
how do i repeat the whole program (my style)
Write your question here. this is my style to repeat program int repeat; cout << "continue...
[7 replies] Last: While I personally detest using recursion in this way, you could creat... (by AbstractionAnon)
Is there an error in this code?
Hello all! I am studying for my midterm and I went through my profs powerpoint and she asked if ther...
[2 replies] Last: getYear(), getMonth() and getDate() must be declared const if you want... (by Enoizat)
Input Looping Statement
Hello community, I am trying to make a program that can make 1-10 inputs with 70 characters using...
[3 replies] Last: Please, take a glance at the following code for hints: #include <iost... (by Enoizat)
by j rod
How to find multiple modes?
I am writing a program that finds the mode of a vector. I need to figure out how to detect if there ...
[9 replies] Last: Have a look at my earlier code sample - it should translate reasonabl... (by gunnerfunner)
Im having trouble determining what loop to use and how to use it. I have to be able to have a user e...
[5 replies] Last: hello, if you want to get line input, you should use getline() as cin ... (by zntr1)
by rantiv
Menu with error checking
This program uses functions to simulate Plinko. Our menu function should error check but doesnt do i...
[3 replies] Last: Andy's code won't work if you enter an invalid number followed by a wo... (by dhayden)
Questions about '\b' and unary minus
I don't really understand the meaning of unary minues operator and backspace. As my teacher mentione...
[4 replies] Last: I got hhello, which is what I would have expected it to do. But as n... (by jonnin)
how do i print all command line arguments?
i have no idea what command line is all i know is that argc is the number of arguments lets say ...
[6 replies] Last: Minimalism #include <iostream> int main( int argc, char *argv ) { ... (by lastchance)
by zntr1
Correct my Code, please
Hello, I have been learning Perl, C++ and Python for the last 5 months and I think I am learning ve...
[1 reply] : I'm not sure why you have the trapPOS and enemyPos arrays. Why not ju... (by dhayden)
Function help
I need to write a function for the following code that passes two values into it from the following ...
[6 replies] Last: one std::cout << can run through all the ternary operators: #include ... (by gunnerfunner)
Please help, while loop combination to end
How do I make a three integer combination to exit the while. When using the code that I have, as soo...
[3 replies] Last: Thank you! (by esokoletsky)
Sorting an array
So I need help with a sorting function. I have three files: header.h, main.cpp, and functions.cpp. ...
[3 replies] Last: hope you got it but your issue was mismatched parameters, probably a p... (by jonnin)
Trouble using the .find string function
I'm trying to find the word "language" in my text file (after that I'll have to do some further proc...
[3 replies] Last: Actually it can return zero, but only if the "to find string" occurs ... (by Enoizat)
by tit0n
Question about double linked list nodes
What does this line of code do in words? temp-> next-> prev = temp Kinda confused.
[3 replies] Last: and here's an example of temp-> next-> prev = temp being used to ins... (by gunnerfunner)
Undefined Reference Error
I keep getting this error undefined reference to 'Stack<int>::add()' How am I supposed to fix...
[2 replies] Last: Thanks! (by closed account Dz1T7k9E)
by F95
Linked List help! (getting errors)
I need help writing a program for an airline reservation system that inputs and outputs the first na...
[4 replies] Last: who keeps reporting posts to OP asking him/her to desist from multi-po... (by gunnerfunner)
Whats wrong with my code? Time running out.
My goal is to use the functions that will input a person's weight, an estimate for the intensity of ...
[9 replies] Last: Here are two of the functions modified so that they get the informatio... (by JLBorges)
Perfect number program?
I'm writing a program to find all of the perfect numbers between 1 and 650. So I used a couple loops...
[2 replies] Last: Ah! I knew it was a simple problem. Always is. I just initialized x & ... (by johnprovostmusic1)
Pages: 1... 7891011... 64
  Archived months: [jan2017]

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