Beginners - July 2018 (Page 6)

Incorrect Average
I am supposed to get numbers from an input file and display the average. The problem is I keep getting 0 as my average and that's incorrect.
Jul 22, 2018 at 9:20pm
[4 replies] Last: You defined it there. You should read the function tutorial: http:/... (by Ganado)
LINKER ERRORS
How do I get rid of the linker errors. I believe the errors come from lines 17 to 31 of the test program. Here is the output: 1>------ Build started: Project:...
Jul 22, 2018 at 6:33pm
[8 replies] Last: Ganado, Thank you very much. I am beginning to understand what I did... (by phztfte1)
by hellon
Big Multiplication
Hey, Can anyone tell that how can we multiply two very big numbers of length 10^5 with a modulo.
Jul 22, 2018 at 5:55pm
[6 replies] Last: store digits in a string and use sum of digits property (by ghostrideriit)
Inserting node at beggining of a linked list.
The program goes into an infinite loop. I can't really seem to understand why. The logic is simple. My implementation as far as i can see is pretty accurate. An...
Jul 22, 2018 at 9:10am
[2 replies] Last: Oh freaking god thank you so much damn it,silly mistake. Thanks man it... (by akshatmahajan3112)
Code getting WA in 2 test cases although my approach is right
...
Jul 22, 2018 at 9:09am
[2 replies] Last: cool thanks (by closed account 4z86RXSz)
inline functions
I don't really understand inline functions.what inline does is that it replaces the called function with the code inside the function.so why doesn't this work? ...
Jul 22, 2018 at 9:04am
[1 reply] : inline goes on the function declaration , not where you use it. ... (by Repeater)
Output to console while my thread is not finished.
I have a basic is a prime number program and I want to be able to output something to console so it doesn't look stuck. Can you guys give me some resources of t...
Jul 22, 2018 at 4:09am
[3 replies] Last: printing just makes it take that much longer. but if you insist, prin... (by jonnin)
New coder help!
I have some codes I want to get feedback on. I am new to coding and would like to know what improvements could be made to my codes. My codes all work, but I wan...
Jul 22, 2018 at 3:53am
[1 reply] : initialize variables. Your max finder loop won't work on all compiler... (by jonnin)
can you give me hint
My question here. https://www.facebook.com/hackercup/problem/359971574540051/
Jul 22, 2018 at 3:10am
[4 replies] Last: I think if you draw some pictures you'll find that the possibilities a... (by tpb)
Big Multiplication
Given two very large numbers m and n.He asks all the students to find the remainder of product of two numbers m and n when divided by 3. Help us to solve t...
Jul 22, 2018 at 1:54am
[16 replies] Last: Store digits in a string take sum of digits.... Think further (by ghostrideriit)
do while
How can I make this a little bit less code and also use a do while function? #include <iostream> #include <cmath> #include <iomanip> using namespace std; #de...
Jul 21, 2018 at 11:16pm
[2 replies] Last: you can clean up a bit for sure. a function to do error checking tha... (by jonnin)
Files into arrays into tables
Its suppose to make a matrix(table) with the numbers from a file. But I don't know how to store the numbers from a file into a table array. I've tried looking i...
Jul 21, 2018 at 5:42pm
[1 reply] : You access the elements of a 2d array like this: Table table; table ... (by Thomas1965)
Transaction functions uses same username.
In the program, I have entered to 2 usernames. In the program, I entered with the first username with index 0 and the second username with index 1. When I tried...
Jul 21, 2018 at 5:37pm
[1 reply] : the transaction functions thinks only the first username exists You ... (by Enoizat)
simple function problem
Hi there, I am looking for some help with this rather simple function that i wrote. It does work, however i always seems to be 0. How this simple math operation...
Jul 21, 2018 at 5:33pm
[5 replies] Last: Many thanks to you both tbp and jonnin! (by RytisBe)
skill input
Why? How? Please note that this is not a homework site. We won't do your homework for you. The purpose of homework is that you learn by doing. However we are a...
Jul 21, 2018 at 3:38pm
[4 replies] Last: Hi has anyone done this problem (by closed account 3U5X216C)
Linear search not working.
I have put the linear search algorithm with array of structure. In the program, I have entered to 2 usernames. I tried testing the login function with the first...
Jul 21, 2018 at 2:18pm
[1 reply] : You are trying to do too much inside the loop. You probably want to en... (by Peter87)
MATH PROBLEM
Prakhar is fond of solving the mathematical equations,one day his girlfriend asked him a new equation to solve.Equation is as follows: K*(K+1) = 4*A*B + 2*max(...
Jul 21, 2018 at 2:15pm
[2 replies] Last: @iamdad3 thanks your trick worked (by closed account 3U5X216C)
Sum of GP (1,2)
Prakhar has very good knowledge about current affairs.He used to play live games like LOCO,Brainbaazi,etc. There are N questions and K options for each question...
Jul 21, 2018 at 1:31pm
[31 replies] Last: @Repeater, just so you know, it wasn't me who "reported" your post. I ... (by tpb)
error with a string
I know the error is due to string tom but im not sure how to solve it.does union not take strings or I forgot to include something? also there is an output wher...
Jul 21, 2018 at 12:57pm
[1 reply] : From “The C++ Programming Language” - Fourth Edition, chapter 8.3.... (by Enoizat)
problem passing 2-D array to a function
How to pass 2-d array in a function if the size of the 2d array is read from user input #include<iostream> using namespace std; void Takeinput(int N,int *arr...
Jul 21, 2018 at 12:30pm
[3 replies] Last: Thanks a lot sir...it was really helpful... (by amiable143)
July 2018 Pages: 1... 45678... 17
  Archived months: [jun2018] [aug2018]

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