[try Beta version]
Not logged in

Beginners - May 2013 (Page 32)

Can I initialize an array within a class header file.
 
Hi, I have been making a simple tetris game and so far it's just a linear main.cpp file. I unders...
May 15, 2013 at 4:05pm
[11 replies] Last: So, it's better if I suggest you another way, trust me. There we go, ... (by S G H)
Square root function help! (1,2)
 
Im trying to make a square root function that increments the double variable i by 0.1 every loop, ho...
May 15, 2013 at 4:01pm
[32 replies] Last: #include <iostream> #include <iomanip> int main() { double d = 0... (by MiiNiPaa)
Array of arrays, tree of data
 
Write your question here. I have two arrays, data1 and data2. Each has 2x256 data values (basically...
May 15, 2013 at 3:59pm
[7 replies] Last: Oops my bad. It should read double data1 ; double data2 ; but ... (by TheSource007)
Duplicate Case Values?
 
Hello all, Recently, I started making a 'text-based adventure' game. I'm using the switch and ...
May 15, 2013 at 2:31pm
[13 replies] Last: Thank you Cire! I have taken your advice, and now at least it works, b... (by ejuneau)
by riol94
How to sum 2dimensional arrays
 
I wrote this code in c++ but i m stuck cause i have to sum the 2 arrays i dont know how.Can someone ...
May 15, 2013 at 2:17pm
[1 reply] : It is enough to say that this function int arraySum(int A ,int B )... (by vlad from moscow)
by Hihelp
Error
 
Been trying to figure out how to print out the right numbers from the class int Die::get_va...
May 15, 2013 at 1:25pm
[3 replies] Last: your value variable is local to roll() function and cannot be used o... (by MiiNiPaa)
Swapping nodes in a doubly linked list
 
How exactly should one go about doing this? I wrote a function that swaps two consecutive nodes...
May 15, 2013 at 1:22pm
[2 replies] Last: With correct algorithm you actually need only to check for (2) case Wo... (by MiiNiPaa)
Problems Understanding Final Program
 
I desperately need help with my final program in a C++ Programming class. I'm sorry, I know that it'...
May 15, 2013 at 1:10pm
[8 replies] Last: This doesn't compile. Your printBarn() function is missing a closing b... (by booradley60)
Number of questions
 
Write your question here. #include <time.h> int main() { int Die1; /*Random Number 1-6*/...
May 15, 2013 at 12:37pm
[2 replies] Last: That was perfect! Thanks, easy fix for that part, guess it was the eas... (by sam1194)
How do I convert a std::vector into std::array
 
I always store object sequences in vectors for the obvious benefits they bring, but am now in a situ...
May 15, 2013 at 11:55am
[7 replies] Last: Ok thanks for that. (by ausairman)
A game about programming :)
 
(Updated the game removing some minor bugs) (NB!!! The game is created for 960x600 so make sure your...
May 15, 2013 at 11:30am
[2 replies] Last: I want to teach as it does. But I just found some games where it kinda... (by sqdejan)
by Doggie
String Subscript Out of Range (Line 1662)
 
Removed!
May 15, 2013 at 11:20am
[1 reply] : Do not double post http://www.cplusplus.com/forum/general/102167/ (by MiiNiPaa)
by Dal
User input in array from class
 
Hello, first time posting! Trying to write a program where the user input get stored in an Array ...
May 15, 2013 at 11:18am
[3 replies] Last: Hate to bump, but havnt gotten any further. :/ So im suppose to have ... (by Dal)
by new2c
array:How do check for duplicate numbers?!
 
I'm stuck on my lottery game. I got mostly everything to work but the part where the program checks ...
May 15, 2013 at 11:12am
[5 replies] Last: In fact this code bool isDuplicate( const int arr , int size, int nu... (by vlad from moscow)
Code Validation
 
Didnt know any better Title ;) I just wanted to know if the following code is bad or good or neit...
May 15, 2013 at 10:58am
[1 reply] : After a quick glance, I can see three issues: 1) I would change your ... (by closed account zb0S216C)
confuse on i++ and ++i
 
Hi, everyone i know this is easy for you but i just have no idea about the difference between i++ an...
May 15, 2013 at 9:47am
[3 replies] Last: The postfix increment/decrement operator will increment/decrement its ... (by closed account zb0S216C)
by AdyR
HELP for one aplication
 
Hi there. I just registered here and i need some help. I have to do a small application that allows ...
May 15, 2013 at 9:33am
[no replies]
by Pierce
cin.ignore only working at a certain point :S
 
Hiya, New to C++ (Thats why this is in the beginners section! =) ) and I'm having a bit of trouble ...
May 15, 2013 at 8:42am
[6 replies] Last: Well the problem was clearing the buffer at the end of sporttest(), so... (by Pierce)
by sumsar
Why am i getting an error when i try to compile this?
 
Im making a small game and I having some problem compiling the board. what am I doing wrong? #...
May 15, 2013 at 7:30am
[5 replies] Last: okay thanks for the help. (by sumsar)
by theguy
edit: need some help
 
Thank you!
May 15, 2013 at 12:33am
[6 replies] Last: @nedo: you are stopping too late while( geline(input, line) ) ... (by ne555)
May 2013 Pages: 1... 3031323334... 66
  Archived months: [apr2013] [jun2013]

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