Beginners - July 2018 (Page 14)

TicTacToe Game with classes.
Hello fellow coders, I'm working on a project in which I'm utilizing classes to code a tictactoe game. Everything runs smoothly up until the moment i check f...
Jul 9, 2018 at 1:46pm
[6 replies] Last: You have leftover junk in your buffer that the getline is grabbing. Yo... (by Manga)
by Kejone
Random Guesser
I'm doing that guessing program where you need to guess a number between 1-100, but it seems I can't get it to compare the inputted guess against the random num...
Jul 9, 2018 at 8:52am
[3 replies] Last: Here is what it should look like: #include <iostream> #include <cstdl... (by H00G0)
Code Blocks
When I try to open an existing program, it opens it in notepad instead of the actual app. How can I fix this?
Jul 9, 2018 at 7:31am
[1 reply] : On Windows right click on the file => Properties => Opens with (by Thomas1965)
Pointers
What is the best and most efficient way to learn pointers? Watching videos? Looking at good examples? Or reading from a textbook?
Jul 9, 2018 at 6:37am
[5 replies] Last: Hello 1.Pointer is a variable which stores the address of another vari... (by certvalue143)
Can not identify error
What can I do if I want to solve these errors after compiling this code without defining new constructor for any class .The given constructor for each class mus...
Jul 9, 2018 at 6:28am
[1 reply] : By default the derived class constructors will call the default base c... (by Peter87)
Unexpected output
Desired output: hi hi samir 11 hi samir samir But I am getting output: hi hi samir 11 hi Why is this happening,what should I do to overcome this problem ...
Jul 9, 2018 at 5:08am
[3 replies] Last: Actually, the deletes should be the array kind, e.g., delete c... (by tpb)
by ICU2
I need help, whats wrong with this
Ok so it works everywhere but MY coding platform. So how do I fix that?? cpp.sh/2ipex Enter the trifecta Enter a number 69 enter another number 666 one mor...
Jul 9, 2018 at 4:04am
[8 replies] Last: Hmm ok ill edit it now and try again but i think my codeblocks is bugg... (by ICU2)
How to submit problems answer in facebook hackercup qulification round ?
what is source file and what is output file. ? i downloaded the input file. what is the use of input file? problem link (https://www.facebook.com/hackercup/pro...
Jul 9, 2018 at 3:11am
[1 reply] : okay, i get it. Last valid submission details Close Time 9 July 2018 a... (by closed account 1TD80pDG)
no instance of overloaded function
i keep getting this message no instance of overloaded function on my createdefaultsubobject .cpp #include "AI_Controller.h" #include "BehaviorTree/Behavi...
Jul 9, 2018 at 2:33am
[2 replies] Last: thanks sorry if i forgot to say i was using ue4 for my project and whe... (by jflyer215)
thread safe about shared_ptr of copy and assign.
Is the code below thread safe? According to my understand, It should be. But In Windows and Bash on Ubuntu on Windows, The code below eventually run into Seg...
Jul 9, 2018 at 1:45am
[4 replies] Last: I hope I understand it correctly. (by Weiqi Chen)
Program to simulate lottery help!
Hello! I am extremely new to programming and have a question about some code I've been working on. For my homework, I need to simulate a lottery draw of five nu...
Jul 9, 2018 at 1:11am
[10 replies] Last: https://xkcd.com/979/ (by Ganado)
Factorial loop that multiplies by previous factorials
The code works, it compiles and works, at least for the first factorial. Then, since I have it in a loop it repeats, but the factorial that is outputted is mult...
Jul 9, 2018 at 12:19am
[2 replies] Last: Thank you so much!! (by BGA6444)
by mrdos
2D Array HistoryTable storing and Updating Predictions.
I'm asked to implement this method: You must use a 2D array to store the moves history table. Definition of what moves are stored: Enter 1 or 0, trying...
Jul 8, 2018 at 10:32pm
[2 replies] Last: Sorry for the unclear original goal, All i was attempting to do was to... (by mrdos)
How to fill the array using the RAND () and WHILE function?
Hello everybody! I need to create an array that is populated randomly, considering an element with a value of 1 that can traverse positions in the array. Start...
Jul 8, 2018 at 8:40pm
[1 reply] : I can't understand your description or your code. One thing you're do... (by tpb)
No output
Expected output: Hi Hi samir But the program gives no output .Please explain me why is this happening? #include <iostream> #include<string.h> using nam...
Jul 8, 2018 at 8:38pm
[3 replies] Last: Also note that your operator+ needs to allocate extra space to concate... (by tpb)
by mim97
Correct program but wrong output
i cant seem to figure out the correct way to show the same output below #include <iostream> using namespace std; int main() { int list = {1,2,9,...
Jul 8, 2018 at 5:02pm
[2 replies] Last: thankyou for the help (by mim97)
by zetef
How to translate the origin points to another position in SDL
So I was trying to do a 3d starfield program in c++ and sdl and I thought what if I change the origin points to the middle of the screen so when I change the de...
Jul 8, 2018 at 1:28pm
[2 replies] Last: Sorry for being so late, I actually fixed the problem and also posted ... (by zetef)
Binary Search NO errors still not working
This code does not produces any error but it's like not running properly it returns -16464564651 something,Please check #include<iostream> using namespac...
Jul 8, 2018 at 1:03pm
[1 reply] : AH Shit Resolved It Guys,Line 27 last = mid -1; was wrong last =... (by thenewnubkid)
How to create such site?
I want to create something like this online anagram solver https://anagramsolver.pro How to do it?
Jul 8, 2018 at 12:51pm
[1 reply] : Get a dictionary of words. Use the std library to find all permutatio... (by Repeater)
by James5
loop sum of all odd numbers
Create a loop that will output the sum of all odd numbers between 20 and 100. I don't know how to do this can you please help thanks.
Jul 8, 2018 at 3:02am
[1 reply] : #include<stdio.h> #include <iostream> using namespace std; int main... (by mdrankoski)
July 2018 Pages: 1... 121314151617
  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.