Beginners (Page 23)

by nlizzy
Random Word Generator from Multiple Lists
 
Hi. I am VERY new at programming and I want to make a "Guess Who" game. I want to be able to randoml...
[3 replies] Last: #include <iostream> #include <string> #include <cstdlib> #include <ct... (by JLBorges)
Structs
 
This code intends to output a selection of the snack a user chooses along with the price and change ...
[2 replies] Last: I think I see your problem, the problem is you are not breaking out o... (by adam2016)
Reference passed process vs value passed process
 
Can someone kindly explain each object's life cycle in each scenario I created in my code? I can...
[1 reply] : // Scenario 1: A&nothing(A a) Constructor Called! // aa is created Co... (by Peter87)
Assignment
 
I'm currently working on another program which requires me to input a bunch of arrays atm. I need an...
[2 replies] Last: @zephile , post it in the jobs section and someone may immediately do ... (by chicofeo)
How to compare vector digits
 
Hello. I am creating a bool function that returns whether an integer in a vector is greater than the...
[1 reply] : Hello TheDomesticUser2, You have included the "string" header file, b... (by Handy Andy)
c++ food menu loop
 
Write your question here. Hey I cant figure out where and what type of loop I should put in to get ...
[1 reply] : what you are looking for is a while loop 1) print the Menu 2) get inp... (by adam2016)
[Error] for Linked list
 
I am receiving the following error when compiling my code. I am unsure what I am doing wrong. Error...
[2 replies] Last: 'createnode': ... Look at the function createnode must return a v... (by lastchance)
Reading a text file to create a double vector
 
Hi everyone, I'm a beginner in using C++. I would like to read in C++ 2015 a .txt file like this: ...
[4 replies] Last: Hello MakeMeFeel, My bad. I should have made the " std::string junk; ... (by Handy Andy)
std::initializer_list and move semantics.
 
Hello, I am having problems with using initializer_list when I am passing object that only suppor...
[2 replies] Last: Thanks for clarification :) (by Unspoken)
Random Shuffle Error
 
I'm trying to use the random_shuffle but for some reason I'm getting an error and I can't work out w...
[11 replies] Last: So what does that have to do with any of the problems you've asked pre... (by jlb)
Printing into different lines.
 
How do I print out my answer into different lines without writing each line manually? (a=3, b=8, x=...
[3 replies] Last: Your approach doesn't work, since I still have to type everything man... (by MikeyBoy)
by asxxx
Max element in array
 
How to find a max element in array using only pointers?
[11 replies] Last: I would use the suggestion of using the STL algorithm; however, it s... (by chicofeo)
[Error] expected primary-expression before ....
 
Wonder if anyone can tell me what I'm getting wrong on this. I keep getting errors on the last line...
[3 replies] Last: When you declare and define functions, you specify the data type. Wh... (by Repeater)
Programming a data Converter
 
Write your question here. Hello, i Need help with a Project i have! I wanna interact with a da...
[1 reply] : if you know the file's format, you create a structure that holds the f... (by jonnin)
return statement with '?' and ':'
 
Hi guys, can someone explain to me the code below? I have never seen this '?' and ':' like this ...
[7 replies] Last: Note that "ternary operator" means an operator that takes three argume... (by Peter87)
Logging in using a file
 
I'm attempting to make a function that reads a user ID from user input, checks a file for that user ...
[1 reply] : #include <iostream> #include <string> #include <fstream> #include <li... (by JLBorges)
Not displaying anything but zeros as outputs.
 
I'm only getting zeros as output and don't know why. #include<iostream> #include<cmath> using ...
[2 replies] Last: Thank you. Was driving me crazy. All fixed and working good. (by SDstang)
by snew18
Write c++ program: create a stock class
 
Hello, having some trouble with this program. The array in the main function won't work as I keep ge...
[1 reply] : https://stackoverflow.com/help/how-to-ask This isn't sufficient: He... (by TheIdeasMan)
block Access
 
I need to keep track of the available, or free, blocks in the file. Rather than maintaining a separa...
[1 reply] : It will be difficult to answer this question without context about the... (by mbozzi)
by ozicek
Visual Studio different output from Primer book exercise
 
Hi, I'm following the C++ Primer, for the section 1.4.4, when I type the code into Visual Studio it ...
[1 reply] : my guess is that you don't know how to terminate the input. (how to se... (by ne555)
Pages: 1... 2122232425... 34
  Archived months: [nov2018]

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