Beginners - August 2014 (Page 23)

Help with exercise
 
I have this exercise from Brian Overland's book c++ without fear and I cant even start, I mean I really don't know what to do, so please give me some suggestion...
[3 replies] Last: yes that sentence is a bit retarded, even for a total begginer like me... (by Sajko91)
by Aceix
type deduction c++14
 
Hi, I was testing some C++14 features with the latest version of mingw, but it seems the auto println line does not work. auto println= (const auto& out...
[3 replies] Last: I think it is -std=c++1y though I could be wrong. Also, I think clan... (by giblit)
help with multiple save files, then load
 
hello, i want to be able to save info that will be typed, a persons name, address, and age in separate text files(example first text file: Jean smith, 22 mud r...
[3 replies] Last: Well I was just assuming you output them the same as you would input i... (by giblit)
by KRYS
Numberstring
 
I want to have an output which is when I enter ab123 cd456 the output would be 6 15 . . and if ever I Din't enter spaces like this hasd121433463 the output ...
[4 replies] Last: At start, you don't have a word and the sum is 0. Read one character ... (by keskiverto)
by ECE07
Hierarchy of object oriented program execution
 
Hi, I have a very basic question about the execution of object oriented program execution. In any OOP language, I know that the program enters in and begins at...
[1 reply] : OOP is a design paradigm. It does not change the rules of how the lan... (by Disch)
algebra pointers help
 
Write your question here. Hello, i have just to work with pointers and this code is in the example in my book but it crash when i compile it. #inc...
[1 reply] : 'single quotes' are for character literals "double quotes" are for str... (by Disch)
Run Time Type Information? Calculator program
 
Hello, i'm trying to make a calculator program and I have a question: how do I declare the type of a variable based on input? I have tried many things, template...
[6 replies] Last: No they don't, which is why we are saying that you should not do it th... (by Computergeek01)
How to use a input string to name a variable?
 
What I want to do is I want to input a string as: string var_name; cin >> var_name; Then I need to use this string "var_name" as the variable name to c...
[4 replies] Last: 1. You can't. Variable names go away in compiled code. They are just u... (by Duthomhas)
How do i generate a random number but exclude some of them?
 
alright,so i need to generate a random number. its a number between 1-54 this is a bad explanation of the program feel free to skip -------------------------...
[8 replies] Last: @booradley yes,the method you gave me worked,but what you said happene... (by DAoliHVAR)
by danzal
ADDING WHILE LOOP !
 
how do i add a while loop so that after they are done with a function they can choose a function again ? #include <iostream> #include <fstream> #include...
[3 replies] Last: You want a do/while loop around lines 38-85. I would strongly sugge... (by AbstractionAnon)
cout prime numbers
 
I want to write a program that will print out prime numbers in order. My program right now all it does is checking if the number is prime or not, and prints "1...
[13 replies] Last: Your last example there will compute sqrt(n) each time through the loo... (by dhayden)
Issues with rand()
 
Hi all first thank you for taking the time to read this I really appreciate the help. What my question is im trying to make is a little console game (teaching ...
[4 replies] Last: Thanks everyone for their input it was really helpful. Thank you maide... (by Synthetics)
creating a vector .h
 
I have been instructed to make a header file with some criteria: 1. A default constructor that creates an vector with a default capacity of 2 2. A paramete...
[1 reply] : I have solved this one. (by DEnumber50)
HOW cin.get()
 
Hi! I need your help, please. Lets say, I want a code like this. There is subsection after which you decide if you want to continue reading next subsection o...
[3 replies] Last: thank you all for your time and help! One day I become mentor too ;-D ... (by drefekt)
by lekha
Adding correct and incorrect counter code???
 
Below is the Question given to me... and i'm having problem in my coding please help me.. Develop an application that creates a mathematical quiz to the prim...
[2 replies] Last: A doublepost of: http://www.cplusplus.com/forum/general/140496/ Tip: ... (by keskiverto)
by PBYGuk
reading values from sensor at two different times
 
Hello!i need to read a single sensor output at two different times and store the two values for further use throughout the program. how can i do this please? my...
[1 reply] : http://www.cplusplus.com/reference/thread/this_thread/sleep_for/ (by keskiverto)
Adding long numbers,(adding two strings which contain int)
 
I have two strings. For example, "1234567891011" and "11223232323232". I want to add them, so that i get the correct result(mathematically). I can't concatena...
[6 replies] Last: Websearch. Learn it. http://www.boost.org/ (by keskiverto)
One Demensional Array
 
hey guys im new in programming i just need help how to make a program that can calculate sum and average if we input five values...? thanks this is for school ...
[6 replies] Last: our professor said that make it in 1d array :) :) The "simplest" so... (by keskiverto)
by grimi
Providing "thread" inside class method
 
Hello everybody! It's the first time that I write on this forum. I'm still a beginner on C++ world (i'm coming from Java, .NET and C#, this is the first expe...
[5 replies] Last: Thankyou for providing me Boost, I'm sure that's quite complex to unde... (by grimi)
by wolfv
WaitForSingleObject() function
 
The following program loops if the console that it is running on is in focus. But the program stops soon as the console is out of focus. Is there a way to kee...
[no replies]
August 2014 Pages: 1... 2122232425... 40
  Archived months: [jul2014] [sep2014]

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