Beginners - November 2016 (Page 9)

I have a question...
 
Alright I have a question that I'm not really understanding and my book does not go over it, and I have yet to really find anything helpful on the internet. ...
[2 replies] Last: Thank you Tenma! (by Unisaurus)
Does declaration of array require a fixed size?
 
Dear all, As I know in C++, when we declare an array, we need a constant size as: int arr ; or #define SIZE 4; int arr . This is likely due to the fa...
[4 replies] Last: Is it a new update of C++ (even with compile C++98 it works) or I mis... (by Chervil)
by hnnh
send help
 
There is something wrong in my program especially on the receipt part. #include <iostream> using namespace std; int main() { int top, ctr, order...
[1 reply] : Please elaborate: What is your program supposed to do and where do you... (by coder777)
Problems regarding passed on value and passed on reference
 
Hello guys, I'm asking for you assistance of my code. My program aims to display user entered temperature in Kelvin into Celsius and Fahrenheit. So far, my prof...
[1 reply] : Where are your references? Read: http://www.cplusplus.com/doc/tutorial... (by keskiverto)
Create 3 month calendar with (For Loop)
 
Hi. i want to create a 3 month calendar use c++ based on input start of month-day from user input with for loop; so i wrote this codes : #include <iostrea...
[8 replies] Last: thanks,anyway i don't know how to use your code to complete my code,i'... (by mboveiri2)
Removing Duplicates (1,2)
 
The vector contains 1,4,9,16,9,7,4,9,11 im trying to remove the duplicates so that the vector only has 1,4,9,16,7,11. This is what i have so far. vector...
[23 replies] Last: Short, simple and very fast (and preserves the original order): amort... (by JLBorges)
I need help understanding Polymorphism
 
What's the difference between polymorphsm and inheritance?
[3 replies] Last: Thanks for pointing that out. I need to work on my example! (by Bdanielz)
For/Loop Question
 
I'm currently trying to learn on how to work with For/Loops, but I have a problem at the moment. I'm trying to figure out how to add in a list of combinations t...
[2 replies] Last: Oh, thank you. I appreciate it. (by maddlne)
variance & std deviation
 
I've come across two methods for calculating variance & std deviation. When applying a single method to a set of test figures specific to each, neither comes ou...
[2 replies] Last: yes, you are correct. I've just re-verified the figures using https://... (by bluefrog)
Pasing values by parameters
 
I want to set values by using a void. For example int M = 5; void blah(int p) { p = 0; } blah(M); In my example I want to make...
[1 reply] : Three ways, one is bad: 1. Make M a global, which you have, and usua... (by koothkeeper)
by josej
Functions and Array Help!
 
So i'm honetly having trouble doing this program, I feel like it's simple, but I'm not sure how to even do the display part of the assignment. the assignment...
[1 reply] : So i'm honetly having trouble doing this program, I feel like it's si... (by Golden Lizard)
need help.
 
it compiles but when i run it i get a segmentation fault. im using unix. #include <iostream> #include <string> using namespace std; class bag { ...
[1 reply] : [quote=My compiler] // Line 9 // warning: statement has no effect arra... (by Peter87)
calling element in a list
 
Hi I have a list with N elements. How can call the element (N-1)? Anyone can help me plz. Write your question here.
[9 replies] Last: Thanks a lot. I dit it. (by ajlahmed)
accumulate
 
Am attempting to sum the squares of a series of integers? #include <iostream> #include <functional> #include <algorithm> int sq(int d) {return d*d...
[6 replies] Last: You're welcome. Note that in C++14 the lambda can also be generalized ... (by gunnerfunner)
Fibonacci numbers
 
I have to right a program that tests the nth fibonacci number and then test for primeness. It must output the first five prime numbers in the fibonacci seeque...
[1 reply] : You use a counter that stops after you calculate the first 5 prime Fib... (by Golden Lizard)
Variables
 
Hi, I was trying to do a small program in which you have to insert two numbers and the operation you want to do and it gives you the result. i got to a point ...
[4 replies] Last: Thanks a lot Golden Lizard, now it's working! (by Master3008)
by WhatIf
Cross-platform Unicode string
 
Hi, What is a good cross-platform Unicode string to use? I want to use a Unicode string that can be saved to disk and sent over a network between Windows and...
[4 replies] Last: UTF-8 should work. (by helios)
I'm on online contest
 
Please help me with this problem The new DotA game is coming out soon. All the fans around the world are waiting to try the new version of DotA: ”DotB”....
[2 replies] Last: If you do resort to "this ain't homework, this is contest", then give... (by BlueOctopus)
by Jt1218
program ideas
 
I'm taking C++ we have only completed chapter 6 and started chapter 7. This is a homework assignment, but I"m not asking for answers only suggestions for a prog...
[2 replies] Last: How about a program which takes the numbers of user input into an arra... (by boost lexical cast)
write program with two nested for loops that produces the following.
 
D3 D4 D5 D6 D7 E3 E4 E5 E6 E7 F3 F4 F5 F6 F7 G3 G4 G5 G6 G7
[5 replies] Last: #include<iostream> using namespace std; int main() { char letter; i... (by DesmondLee)
November 2016 Pages: 1... 7891011... 44
  Archived months: [oct2016] [dec2016]

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