Beginners - October 2018 (Page 16)

Code Needs Some Guidance
 
Hello, I need some help with my code. I know it's all over the place but I am wondering why it is no...
[8 replies] Last: Your code also seems to have a lot of code duplication, you may want t... (by jlb)
by EP3
What does "!" mean in syntax like this?
 
I'm normally used to seeing things like x != y, but we started using trees in my class recently, and...
[6 replies] Last: > if (!node) return; There are certain contexts in C++ where an... (by JLBorges)
I am having issues with figuring out this code.
 
Hello I this program that I am trying to get the information from a text to run in a function but I ...
[2 replies] Last: Hello princekid, To start with let me make some observations, hints a... (by Handy Andy)
Help me to understand this question (1,2)
 
You are given positive integers N and D. You may perform operations of the following two types: 1...
[21 replies] Last: can anybody give detailed algorithm for this problem? Something like a... (by plzcode)
How to make container vector won't complain compile error as there is no include of vector lib
 
How to make vector<Object*> objects won't be compile error as i can't include vector? I think i ge...
[5 replies] Last: Thank alot problem solve (by noobcplusplusprogrammer)
Basic Lottery Question
 
Hello, i was asked to do a lottery program. So far i only learnt IF/ELSE , Switch Case , For/Whil...
[8 replies] Last: You could create individual variables like num1, num2,...,star1, star2... (by Thomas1965)
by Satan
Should I use scanf and printf instead of cin and cout?
 
I have always been using cin and cout statements. But also I see a lot of people using scanf and pri...
[16 replies] Last: @FurryGuy this question was killing me and my computer is having some ... (by Satan)
Big Integer Problem in C++
 
Input a number from user having more than 10 digits and less than 45 Store 9 digit number at ever...
[5 replies] Last: The boost libraries offer this functionality Chapter 1. Boost.Multipre... (by shivkumar12)
by Nassah
How to do the output in most simplest way for a beginner?
 
Two students, A and B, in csc 102 compared their grades (0 <= <= 5_ in the first 3 quizzes . G...
[2 replies] Last: [quote=Nassah]what is the simplest way to do this? int TotalA = ( a1... (by lastchance)
Need to print list normally
 
This code was provided by my instructor and the loadList function is printed in reverse. Just wanted...
[1 reply] : Actually are you aware that tha function loadList(...) is not relate... (by coder777)
Is There anything wrong with this code?
 
I have two derived classes from a parent class and I'm trying to do an array of both and inputting a...
[1 reply] : Since you set k=0 and b=0 at the start of each loop, you will never se... (by lastchance)
by gjur99
HELP with looping
 
hello! can someone tell me how can i make this loop individual for every test case and at the end ma...
[1 reply] : It is not that wrong. You may do following step to get what you want: ... (by coder777)
Can someone tell me what I'm doing wrong?
 
My gcc compiler is screaming at me when I run this code, what am I doing wrong here? There is also a...
[2 replies] Last: The if clause on line 35 in removeTwo(...) is certainly wrong. i... (by coder777)
if/else, switch, looping basics
 
Hello, this is my first post so I apologize if I mess up at all. I have an assignment that needs me ...
[1 reply] : Hi, I have a suggestion. Remember coding is only here to make thi... (by EVERYSINGLETIMEITRY)
I need help with my program
 
I want my program to retain the remaining stock when I buy again. How should i do it? The only th...
[2 replies] Last: I am a college student so, this was my program for the finals of first... (by kramsuiluj)
Returning from function to certain vector
 
This is only part of my code but I need help returning the values from the function to the specific ...
[3 replies] Last: You can't pass a vector-of-doubles as a double. You need to do it like... (by tpb)
Need help with assignment
 
I have an assignment that wants me to do the following Write a program that prompts the user to ...
[4 replies] Last: The last thing I need is to be able to still output the multiples if ... (by Ganado)
Trouble with nested while loop
 
Sorry if this is bad formatting first time on the website. But I'm trying to make a sample bookstore...
[2 replies] Last: Ok changed a bit again this time moving the salesTotal = bookCostTotal... (by gimmley)
by Tduck
Integer not increasing when told to increase
 
Basically I have an array which in heindsight I somewhat regret using, and it determines a player's ...
[4 replies] Last: Also, to answer your question why those x's and y's were incrementing ... (by Tduck)
C++ binary search tree array implementation
 
Hello, i'm writing a project for a class. I need a step in the right direction as my professor is a ...
[no replies]
October 2018 Pages: 1... 1415161718... 28
  Archived months: [sep2018] [nov2018]

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