Beginners - November 2017

Is Goto reasonable in this case? [SFML included]
Hi everybody. i created a little function to fit graphical representation of a text inside a box, i...
[6 replies] Last: Is goto reasonable in this case? I'll let you decide: Apple's 'goto... (by closed account E0p9LyTq)
Passing functions question
Hi everyone! Here is my code: for (int i = 1; i <= spacesMoved; i++) { // PUT PROPER DI...
[3 replies] Last: Hello User55009, You either have a single move function and pass the ... (by Handy Andy)
First recursive program! (Tic tac toe)
Hey all, Spent the day writing my first recursive program, this is the first program ive written ...
[1 reply] : Oops! >.< Turns out i was initialising BestMove to 0 in the default ... (by NonPlusPlussed)
about operator overloading
when i run this i get the following error: cannot overload functions distinguished by return type ...
[1 reply] : Not exactly sure what the compiler is trying to say there, but your fi... (by Ganado)
by Rale
output digits of an n number
Hello guys, I have an problem with outputting all digits of an number. I know with 2, 3, 4, 5, 6 an...
[4 replies] Last: #include <iostream> void digits( unsigned long long n ) { if (n) std:... (by lastchance)
Problems with private variables
Hey guys, I've been having a problem understanding why I can't write this code the way it is. So ...
[6 replies] Last: This works so I guess all's well? ~Talemache bool compare(const Lo... (by talemache)
Unseen function
I have a function findSum in my code, but my compilator neither sees it, nor outputs it. #includ...
[3 replies] Last: Hello Yana111, What keskiverto said. Other than some warnings about c... (by Handy Andy)
by dubley
sizeof and placement new
Hello, in the following code I am confused about what is going on in line 41: pd2 = new (buffer + N ...
[4 replies] Last: Thank you very much for your help. (by dubley)
read string
[3 replies] Last: struct myCounter { unsigned int A; unsigned int G; unsigned int... (by AbstractionAnon)
2D array word search solver needs to work in 8 directions
I need to make a word search program that takes in a txt file like this 15 N O L X Y H H J T R H...
[2 replies] Last: I am actually really lost... first can someone explain to me how the c... (by shbm111)
AVI file too big to stuff into c array?
It seems like manipulating files is convoluted in any language. It's like... there's a sequence of b...
[7 replies] Last: I tried JLBorges c example (taught me that fwrite automatically moves ... (by ineedastupidusername)
Console Snake. Snake can crawl in opposite direction
I have tried to make simple Snake from example and find one bug: snake can crawl in oppostie directi...
[no replies]
Problems with functions
I need to find x, y, sum and modulus of difference between y and sum using functions. But the progra...
[3 replies] Last: int result = findX(somevariable, 12, 5, anothervariable, ... etc.. );... (by jonnin)
Cursor position, cout problem
Hello, I have a problem with displaying text using cout << in a user-specified cursor position ...
[2 replies] Last: If you use Windows (by Thomas1965)
Program Help Please!
Program Not Functioning Properly! Please Help! My "Other isn't giving out the right output! Some of ...
[3 replies] Last: Hello marqual123, After testing the program I found lie 50 to be a pr... (by Handy Andy)
I cannot understand why my homework ask :(
This is my second homework but is too hard to me, a lot of things i cannot understand. At Least help...
[4 replies] Last: ok, got it (by johson123)
Hi guys I'm just wondering about inheritance and why this is and isn't legal first I don't unders...
[7 replies] Last: You're welcome - glad it helped! (by MikeyBoy)
Hangman game
I need help writing the .h file for this code. I'm new to c++ and have some scratch code written but...
[1 reply] : Line 40: Your program has a hangman class, so you need to define that... (by AbstractionAnon)
closest to the average
I wrote a program to get 10 numbers then find their average and then to cout the number that is clos...
[1 reply] : what did I do wrong IMO, the first thing you did wrong was to use me... (by jlb)
right angle triangle
I wrote this code to get a number from user and if it is possible to make a right angle triangle wit...
[2 replies] Last: Breaking out from nested loops can be neater with a function: #includ... (by keskiverto)
November 2017 Pages: 123... 33
  Archived months: [oct2017] [dec2017]

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