Beginners - June 2018 (Page 6)

SpellChecker: Thesaurus files 'D:\CodeBlocks\share\codeblocks\SpellChecker\th_en_US.idx' not found!
 
How can i get rid of this alert, SpellChecker: Thesaurus files 'D:\CodeBlocks\share\codeblocks\SpellChecker\th_en_US.idx' not found! I searched on the web fo...
[no replies]
Help me with solving this problem of InterviewBit
 
Hey everyone, need your tips/hint to solve the below problem. Length of Longest Subsequence Original problem link - Link - https://www.interviewbit.com/pr...
[2 replies] Last: I guess by this definition, [1, 2] is a subsequence of [1, 11, 2, 10, ... (by helios)
problem with implementing this question of HackerRank
 
// Can anyone help how to implement the below problem. You are given a directed graph with 'n' nodes numbered 'i' from to 'n-1'. For every 'i' from '1' to '...
[3 replies] Last: PM me your code.i can debug it. @zyan1zyan . (by closed account 1TD80pDG)
Removing all duplicated numbers
 
Hello, could you help me fix my RemoveDuplicates method, its sopose to remove all numbers that were duplicated and not leave one. this is my incorrect out pu...
[1 reply] : @line 90,91 you take the last item from the list and use it to overwri... (by Jaybob66)
push.back
 
Dear all I am trying to give a vector as an input for a function and get it back as an out put. I normally send the address of first element in the vector. a...
[5 replies] Last: Thanks for response, Yes my code is pretty large one, I have some 3-D... (by anateghi)
Use of <complex> and function matching
 
Hi all, can you help me figure out why this code doesn't work. The function call to exp() should call the function defined in the complex library. But I have to...
[4 replies] Last: I thought I did that already, but I guess I missed it. Thank you! Add... (by mainecat)
background color
 
can i know what is the code for background? Please, don't use system("color"). This works more or less the same, using windows.h: 1 2 3 4 5 6 7 8 9 void SetCol...
[no replies]
Minute to Win It
 
here is the problem statement link https://www.hackerrank.com/contests/w38/challenges/minute-to-win-it and my code is n, k = return map(int, raw_input()...
[2 replies] Last: 1) Your link doesn't work. 2) Please use code tags when posting cod... (by MikeyBoy)
binary search not returning value
 
I am writing a code to find a user input value in a randomly generated array. I am not getting any values to be found. As far as i can tell the rest of my code ...
[3 replies] Last: Hi everyone,I go through all the iteration that you have been mentione... (by RobertGreene)
unexpected float result
 
I am trying to add two float variables, but gives me incorrect result: float a = -1.5031407940568897e-07; float b = 1.7952352979704175e-15; std::cout << a ...
[2 replies] Last: Yeah that was the problem I tought "e-x" means something like repeat, ... (by warchief)
Calculating Head/Tails and winning totals
 
So I am writing a program to randomly flip a coin and count until I get a "Head" for a total of 10 rounds. I also need to make a function for winnings which ...
[6 replies] Last: Just as an added (non-C++) extra, from probability theory what is the ... (by lastchance)
File Handling :Weird Text being written onto the file
 
I tried to make a program which takes a class BANK and stores information such as name,balance,phone etc... but when i write that information onto the file usin...
[3 replies] Last: If you write an object like on line 44 you write the internal data of ... (by coder777)
Looping for user attempts
 
I'm making a password program for my class an I'm almost done but I cannot figure out how to give the user only three failed tries. After 3 failed attempts I...
[4 replies] Last: One way to do it. #include <iostream> #include <string> using names... (by Thomas1965)
array of doubles from file
 
I am working on a program that takes a horizontal list of doubles and displays them on the screen, however it doesn't work. I've tried the same thing but with i...
[2 replies] Last: "It doesn't work" is not a very helpful statement, is it? Think about ... (by lastchance)
by ria1
code the below problem please
 
// please can anyone provide a Code of this problem. Janet is in an Uber on her way to an interview. The driver promises to take her to the venue as soon as ...
[14 replies] Last: #include<bits/stdc++.h> using namespace std; #define ll long long #def... (by jabbar1701)
Guessing Game
 
The user is required to guess a computer-generated number between 1 and 100 inclusive. User will be told to give a higher or a lower number until the correct n...
[2 replies] Last: @Flaze07 for the case should i use and with the conditions? somethin... (by DesmondLee)
Matching Game
 
The user has to guess 6 numbers before they are generated. Your program will then tell the user what are the matched numbers. If the user chooses any number le...
[2 replies] Last: @Enoizat thanks for the replies. should I use array for num? (by DesmondLee)
Where i can find the weighted Graph representations using list ?
 
I want to learn the weighted Graph representations using list. can anyone provide me the source code for this? How can I delete the node and add the node in th...
[no replies]
by mim97
Loop fail
 
//Write a c++ program that will input double numbers for the user in a loop // until the average of the numbers is less than 10. When the loop ends // display t...
[1 reply] : Break it into parts that will input double numbers if you mean to ... (by icy1)
by mim97
Cant figure simple calculation formulas
 
//Cost of one book is 50 dirhams. if you buy 2 books then the third book will be free. //Write a C++ program that will input the number of the books and output...
[2 replies] Last: thankyou (by mim97)
June 2018 Pages: 1... 45678... 19
  Archived months: [may2018] [jul2018]

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