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 not working. Please help me as soon as you can thank you. ...
[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 I'm not sure what it means in syntax like this. ...
[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 cant seem to figure out how to do so also my professor wante...
[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- add D to N, i.e. change N to N+D 2- change N to digitsum(...
[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 get troll by the this assignment and have problem at this assi...
[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/While/Do While and now Random . Since this is on the Random pa...
[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 printf statements and I've heard it's faster. (okay well faster...
[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 every index of int arr I have problem on how to take input f...
[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 . Grades for A: a1, a2, a3 Grades for B: b1, b2, b3 If a1>...
[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 to know how to print the linked list normally, not in rever...
[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 file with information of each bankAccount. Could anyone see...
[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 make it combined. int days_of_rain = 0; int rain_per...
[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 supplied.o file for the other functions. arr.h file: #i...
[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 to enter a positive integer and find every prime number that...
[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 thing working there is the Candies & Snowbear, because im not ...
[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 vectors. How would I phrase it in my main function so that t...
[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 enter two integers. The program outputs how many numbers a...
[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 for an assignment, but for some reason on the second loop m...
[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 position on my text adventure game's map. Below is a demo...
[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 little slow replying back to me. I'm still trying to learn c...
[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.