Beginners (Page 57)

I really can't figure this out...
I am trying to create my own version of the NIM game. Ok so when I build and run this every thing is...
[7 replies] Last: I've Solved it! The problem is here! remainder = total % x; remainder... (by NeonOrange)
Simple addition in while.
Hi :) Let's say I have a file with numbers, each on a line. Which is the most simple way to sum up...
[2 replies] Last: Thank you. I was wondering if one can do this with just a variable. (by Guzfraba)
Changing the value from "deep" function
Hello, I got a program and there is a function which has a function inside and that inside function...
[10 replies] Last: Yeah, I think I get this. In my game battle is a function which is mad... (by Furjoza)
Comparing floating-point numbers
I've some questions regarding comparison of floating-point numbers. In this book: http://kysmykseka....
[4 replies] Last: Well, 1010-100 = 910 > 0.1, so the numbers aren't equal... I suspect ... (by helios)
Passing 3D array as a 2D parameter
I'm working on a project where I need to reuse functions that were meant for a 2D array but with a ...
[2 replies] Last: Awesome! That made sense. From there I was able to figure out that I ... (by ittociwam)
enum class cast?
I am trying to set the value of an enum class type object with the value given by the user from the ...
[4 replies] Last: Of course. How simple. Yet another one of those moments when I feel st... (by squarehead)
by yepMe
Name control exercise problem
Thinking in c++ has this question : Create a class containing an int, a constructor that intializes...
[2 replies] Last: Thanks it's working now :) (by yepMe)
How else can I write for(double temp; cin>>temp;)?
I'm very new to programming and having a hard time understanding how the loop condition works when p...
[3 replies] Last: The first example is a range-based for loop. The other two are normal ... (by giblit)
by Lu Bu
Is there a difference
Is there a difference declaring a function like this: int exampleFunction() { return value;} ...
[3 replies] Last: The word "const" in "const int exampleFunction()" has no meaning. Ther... (by Cubbi)
Could use some help, please.
Hi, First let me say thank you in advance to anybody who is willing to take the time to help me ...
[7 replies] Last: Awesome, thank you again! (by Ash Telecaster)
How to find max and min? (C-Program)
I'm trying to make a program which asks user to enter the number of pancakes eaten by ten people. Th...
[5 replies] Last: Your current code has a flaw: the pancakes_max/min are uninitialized. ... (by keskiverto)
Reversing a word
We just started c-strings in a summer class I'm taking and part of my assignment is the following: ...
[19 replies] Last: I chose 23 to add 2 extra characters to the array for the 'es.' It's s... (by ksmarine1980)
How to Add a New Header in Visual Studio 2013
I have written a simple program which has a class in header a file and I am making use of it from a ...
[1 reply] : All of the files for your program have to be in the same folder. That'... (by Yay295)
broken comparisons?
I am having an issue getting this function to set these nodes properly. I don't know if I am just ov...
[4 replies] Last: I'm not sure what changes I could make to insert it differently. (by elite zero)
by Ganado
4-byte Big-Endian file reading
I am trying to understand Disch's tutorial on binary files (
[5 replies] Last: Yep I deleted what I had, I saw the mistake right away :p Guess I didn... (by Ganado)
Need Help with Array Loop Exchange.
Hi y'all. I'm new here and new to C++. I've been doing ok with C++ but i'm struggling with this assi...
[14 replies] Last: The size of the array doesn't change. x should be declared as a consta... (by Chervil)
#include files from another project in Visual Studio Solution
I am attempting to use code from another solution in a different solution. I am trying to include th...
[6 replies] Last: I know that I can add the entire other file to my current project, th... (by AbstractionAnon)
Beginners should take a look at this :)
I know this isn’t the "correct" place to post this. But as the goal of this post is targeting ...
[no replies]
Polymorphism with header file
Hello... I am doing background for my second game. There would be 4 types of buildings in backgroun...
[2 replies] Last: Oh my God... Thank you... I cant believe I didn't noticed that... :/ (by Dainiusss)
by kugi
SDL in c++: never close program?
HI! I'm new in SDL, and I was starting to make easy game. I have picture ozadje.bmp (blackbround), ...
[no replies]
Pages: 1... 5556575859... 78
  Archived months: [jun2014]

Cannot post in this page. To post a new message, go to the first page.