Beginners - October 2016 (Page 48)

How does this program work?
 
A natural number is called cool if the sum of the digits which are in odd positions (starting to cou...
[5 replies] Last: Okay I understand now, thanks (by Oriol Serrabassa)
Problems with templates
 
Hello I don't understand templates. If i want to create for instance very simple function which a...
[5 replies] Last: Thank you! Now everything works very well. (by beginner12345)
Trying to do Simple tic tac toe game without functions
 
Is it possible to put the code below into a do while sort of loop that will stop the code if it meet...
[2 replies] Last: Thanks :) (by Jpp Mitch)
by lnp657
Help with pointers!
 
Hi, I am writing a program for my class where I pass the pointer to an array of scores for separate ...
[2 replies] Last: I assume testScores is a local variable? In that case, yes, it's bec... (by TwilightSpectre)
How can I apply loop precondition i am a bit confused
 
I am a beginner so please bare with me.. This is my code I have to get unlimited inputs but when the...
[5 replies] Last: Thanks @JLBroges.. (by Abhijeet010)
Best way to make mutually recursive functions iterative?
 
What is the best approach to make a mutually recursive function iterative?
[5 replies] Last: Here is the most stupid and trivial example I can think of: bool is_... (by mbozzi)
by Hengry
Help with push_front
 
My push_front function is suppose to push data into the front of the array bool UniqueVecto...
[3 replies] Last: The only obvious thing I see wrong is lines 5-7 in your at snippet w... (by cire)
How to exit an infinite loop at your desired time
 
Good day! i am having quite a trouble for searching on how to ask this on google so here is my dele...
[3 replies] Last: Wow, it's new for me knox41234 multithreading, i'll try to explore it... (by Annom)
by ncaver
Car
 
We had to implement a code that talk about your dream car. I did the code but I got errors. this...
[1 reply] : What is the scope of the program? What do you want the program to do? ... (by closed account 49iURXSz)
How do I reverse digits of an integer?
 
Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 ...
[15 replies] Last: These are the exact steps to find reverse of a number: 1: Use a loop t... (by kamal choudhary)
Error Putting String into Stream
 
For this project I need to parse a string using spaces as a delimiter. Since stringstreams do this b...
[3 replies] Last: Line 2 is not calling a constructor. It is attempting to call a functi... (by Duthomhas)
Random numbers always giving 0
 
I'm having an issue trying to generate two random numbers. I've looked up tutorials and everything s...
[4 replies] Last: Using srand() and rand(): http://www.cplusplus.com/faq/beginners/rando... (by Duthomhas)
Conditional, Relational, or Boolean Operators
 
Hey! I'm a beginner doing a Lab for class. I'm working with ASCII values to get certain outputs. But...
[9 replies] Last: I see what you mean. That makes sense. But what I have below works now... (by jaketheguy)
Counting number of digits in a number
 
Hi everyone. So for my c++ class I have to write a program that converts a decimal number and turns ...
[1 reply] : So for my c++ class I have to write a program that converts a decimal... (by SakurasouBusters)
Data Stored in ADT Bag
 
I have a concept question. I am attempting to store a data item in an ADT Bag. If I have the user in...
[3 replies] Last: I am not sure if it a compiler issue then, but when I remove line 27, ... (by neverStopLearning)
Implementing a Program Version Data Type
 
Background: I'm writing some simple programs to re-learn some skills I lost by writing a simple p...
[2 replies] Last: I'm still manually changing the version number in the source file, but... (by closed account 49iURXSz)
Unhelpful Professor, help me complete this code?
 
Part 1: Write a program that uses a while loop to read in test scores until the user enters a neg...
[2 replies] Last: Which of the requirements do you want to start on? Break them down int... (by closed account 49iURXSz)
by jeg19
Switch Statements, and do, while loops
 
I have to do this assignment: Write a menu driven program (that means Switch statements) that disp...
[3 replies] Last: Glad it helped! (by joe864864)
by HotWax
How to output a string from an int?
 
Hello! I was finishing up an assignment for my computer science class but I've run into a small prob...
[2 replies] Last: Thank you very much! (by HotWax)
Defining Variables plus decimals.
 
Hello, I need help defining variables. I can't seem to get my code to output the variables in additi...
[1 reply] : ...get my code to output the variables in addition to the end-result ... (by closed account 49iURXSz)
October 2016 Pages: 1... 464748495051
  Archived months: [sep2016] [nov2016]

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