Beginners - January 2017

Break From Void Function
 
So, in my function if a certain condition is true, I want to break the code. #include<iostream...
[1 reply] : Never mind, I just forgot about return. Lol (by closed account 3vX4LyTq)
by jeg19
string.replace help
 
I'm having trouble with this problem Modify secondVerse to play "The Name Game" (a.k.a. "The Bana...
[1 reply] : Not clear under what conditions you want to add !!!. The following co... (by AbstractionAnon)
GetOperator() and GetOperand() functions
 
My question is how can i implement code into this that uses a GetOperator() and a GetOperand() funct...
[1 reply] : Line 8: operat is an uninitialized variable. Line 14: You're compar... (by AbstractionAnon)
by rantiv
Text decoder
 
The purpose of this program is to find the abbreviations in a text and to print the meaning of the a...
[5 replies] Last: Got it! thanks! (by rantiv)
Code not outputting calculations
 
I'm having a problem with my code. It is getting the input from the text file but it is not doing t...
[2 replies] Last: Hello fufusus, Your program works, but with knowing what the "data fi... (by Handy Andy)
Creating & Compiling Larger Applications With MSVC/GCC/G++
 
Hi, I am having trouble finding information on what processes one should take when creating a projec...
[2 replies] Last: 1) What ever compiler you like. I prefer MSVC. 2) If you're using ... (by AbstractionAnon)
Help! right triangle
 
This code is supposed to determine whether the sum of the squares is a right triangle or not, and i ...
[2 replies] Last: Thanks so much! (by MichaelMorcos)
makefile question
 
I'm trying to create a makefile to make executables for flist2c.cpp and mlist2c.cpp what else do I n...
[no replies]
by Potion
(Beginner) string variables not equaling in if statement
 
I'm new to learning C++ and following a book. I can't seem to figure out why I keep receiving the c...
[3 replies] Last: Thank-you both very much! I took out cin >> my_pass; and it worke... (by Potion)
by pumzye
For Loop not Working
 
Hello My for loop seems not to be working. I am meant to get the first 8 characters of a name exc...
[9 replies] Last: Hello pumzye, The problem I figured out is the name before "B Nichola... (by Handy Andy)
Reading from a text file
 
I'm working on a school project where I need to read data from a file. Each item in the file is sepa...
[4 replies] Last: Mantorr22 , I wonder why someone reported our responses? Bobbyjy , ... (by dhayden)
How to Add spaces to variable outputs?
 
Hello, I would like to know how to have console space the result Variable in the output. For exa...
[2 replies] Last: change line 17 to: cout << " Here is the result: " << result << endl... (by SIK)
Passing an array of pointers to a function
 
I have this code, which passes an array of pointers to a function. My question is the comment at the...
[3 replies] Last: > How an I make my example work with pointers? Why do you want to wor... (by JLBorges)
by play4u
Recursive backtracking maze solver
 
Hello! I'm trying to write a program which finds if there is a path in a maze which is determinated ...
[3 replies] Last: Uhm.. I leave it marked # on purpose, so my recursion knows it should... (by cire)
comparing std::vector<string> to std::char
 
let's say I have a vector of strings. vector<string> words; and I want to compare each character...
[1 reply] : // http://www.stroustrup.com/C++11FAQ.html#for for( const std::stri... (by JLBorges)
C++ beginner help
 
For some reason the code is giving me an output for the discountpercentAwarded is 432120. Im trying ...
[1 reply] : #include <iostream> #include <iomanip> int main() { // use doubl... (by JLBorges)
New to c++
 
Hi guys, I'm new to c++ and wanted to know if there was any good reference websites and website whe...
[3 replies] Last: Thank you (by paul5473)
by Bizzy
Gregorian Date Checker
 
Hi, so I'm trying to write a bool function that determines whether a date is a Gregorian date or not...
[3 replies] Last: I really appreciate it, man! I'll see how it works with my project. (by Bizzy)
Hard to understand loop in user defined function.
 
Hey everyone, I'm new to c++. I'm good at all others except user defined functions. Can you please ...
[1 reply] : I presume you have read these? http://www.cplusplus.com/doc/tutorial/f... (by keskiverto)
Save the file in an array of values
 
There is a class for creating an array and class that stores the values of this array in the file. I...
[no replies]
January 2017 Pages: 123... 24
  Archived months: [dec2016] [feb2017]

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