Beginners - October 2018 (Page 4)

Layman explaination please
https://www.spoj.com/problems/AGGRCOW/ Can someone tell in very simple language how to solve this problem with binary search? I understand what is to be do...
Oct 28, 2018 at 5:54am
[no replies]
?
/???
Oct 28, 2018 at 4:23am
[3 replies] Last: #include <iostream> int main( ) { //Declare all Variables Here ... (by JLBorges)
--
Oct 28, 2018 at 3:18am
[3 replies] Last: #include <iostream> #include <string> #include <algorithm> #include <... (by JLBorges)
i get back b7??
When I try to cout ave,I get back B7 when I only need the B. #include "pch.h" #include <iostream> #include <string> #include <iomanip> #include <math.h> int ...
Oct 28, 2018 at 2:00am
[3 replies] Last: You need to use another variable which would be a char and then in the... (by Satan)
understanding viewport opengl
i'm trying to understand the opengl viewport. As i understand viewport is used for the resolution. first question: what i learned is that for windows i nee...
Oct 28, 2018 at 12:53am
[2 replies] Last: If your goal currently is to learn OpenGL, save yourself the headache ... (by Ganado)
I need help with an assignment
Write a program named diceroll.cpp that: *Implements a function named roll()that simulates a single roll of a weighted die, given its number of sides and weight...
Oct 28, 2018 at 12:41am
[3 replies] Last: Hello vmansuria, When I loaded up the program it helped me spot the o... (by Handy Andy)
Error with quote inside quote.
Homework. Creating a new alphabet. if statements to check what certain chars and punctuations are, and reassignment to new values. My backslash method for ...
Oct 27, 2018 at 6:51pm
[7 replies] Last: Would it matter for my function? I checked to make sure the characters... (by jjordan33)
help in code
so i need help . i need to write a cpp code which will be able to count amount of numbers from 1 to 1000 which can be divided by 6 and 7 at the same time bu...
Oct 27, 2018 at 6:06pm
[3 replies] Last: int N = 1000; cout << N / 42; Now, where have I seen that numb... (by lastchance)
library first defined here
Hello. In my library program, I have 3 overloaded book constructors. One is a copy constructor, and the other 2 are normal contructors, which are overloaded. Wh...
Oct 27, 2018 at 4:59pm
[3 replies] Last: It's able to compile now, for some reason. (by TheDomesticUser2)
Uninitialized local variable. Help.
I am writing a program that will find the average of 5 judges score subtracting the highest and lowest score. I am not allowed to use arrays on this assignment....
Oct 27, 2018 at 4:44pm
[2 replies] Last: Thank you this worked! (by trevsatt)
how to get average that is rounded integer
I have to make a grading system and so far I have this. #include "pch.h" #include <iostream> #include <string> #include <iomanip> #include <math.h> ...
Oct 27, 2018 at 2:56pm
[2 replies] Last: good suggestion (by clevertiles)
Ticket Purchasing System
so i need help for my college assignment to make a ticket purchasing system. im a beginner. we just learn sequence, selection and loop. ticket purchasing Sys...
Oct 27, 2018 at 2:53pm
[4 replies] Last: Please use coding tags in the future, it helps the reader a lot (http:... (by Satan)
Why so many error in function main ()?
So,i'm new and i'm wondering why i have so much errors about this code.I think that maybe i'm not using the right library or something. #include <iostream> #...
Oct 27, 2018 at 12:48pm
[5 replies] Last: Hello goshko2, Here is a tip for you. Comment out most of the code a... (by Handy Andy)
Layman explaination of segmented sieve
Can someone explain in very simple language how segmented sieve is carried out for finding prime numbers in a given range?
Oct 27, 2018 at 12:20pm
[2 replies] Last: Another good explanation from a SPOJ problem. https://medium.com/@agil... (by Thomas1965)
I had a doubt regarding call by address!!!
Question: 1.how to code an armstrong number using call by address in c++ program?
Oct 27, 2018 at 11:28am
[1 reply] : Suppose if you have int armstrong(int num) then change to void ar... (by Satan)
Struggling with comparing arrays
So, here is my program (C++). In it, I have created the first array (winningValues) to be assigned 5 random numbers between 0 and 1. The second array consists o...
Oct 27, 2018 at 2:45am
[3 replies] Last: Try this (run it several times): #include<iostream> #include<ctime> ... (by JLBorges)
Array element passing to function parameter
Have a question on array elements passing to function argument. I read the book and I don't get the fact on how it says the array element is passed by value. So...
Oct 27, 2018 at 1:20am
[2 replies] Last: Thank you, that helped! (by Bayan Khorshidi Berkeley)
Vertical bar graph
Write a program that accepts a list of up to 40 non-negative integers and displays a vertical bar graph of those values. Number of values to graph: 5 8 4 6 3 7...
Oct 26, 2018 at 11:49pm
[1 reply] : count down from the largest value. #include <iostream> #include <i... (by closed account SECMoG1T)
If statement for additional column
Hello I have a problem with the following code It is supposed to create something like a chessboard using symbols for n symbols as side of a square and n squa...
Oct 26, 2018 at 9:34pm
[3 replies] Last: #include <iostream> using namespace std; int main() { const char ... (by lastchance)
by LudBee
Error building project
g++ gives me an error when I try to build this project and I could not menage to find out what the problem. It's a lot code but it is a linking problem so I don...
Oct 26, 2018 at 9:08pm
[5 replies] Last: Ganado is right. Really thank you, this thing with template is pretty ... (by LudBee)
October 2018 Pages: 123456... 28
  Archived months: [sep2018] [nov2018]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.