Beginners - August 2012 (Page 20)

HELP with space bug
 
can anyone help me to see what is the problem here?? when ever I type and space... there is a loop with the first word repeating it self and even if I do like ...
[11 replies] Last: No worries I fix it allready vlad thanks a lot your last comment was t... (by Mario Robles)
Multidimensional array
 
hello everyone I have a question. Can I save certain data from a multidimensional array to a file. For example information on for rent condos and for sale condo...
[2 replies] Last: Thank you for your time. (by oscarocampo)
by rk0093
HELP
 
b
[3 replies] Last: so are you asking how do you access the data members (all of the thing... (by Aramil of Elixia)
by ar123
C++ Without Fear Exercise 14.3.1
 
Hi there. I am trying to make this code for a custom string class in the exercise: Exercise 14.3.1. Rewrite the operator+ function as a global friend functio...
[11 replies] Last: A friend function has access to any member of a befriended class. (by vlad from moscow)
by nmorr
syntax error
 
I am in the midsts of making a battle system and have just added the ability to use skills. Unfortunately, every time I compile it, this happens and I cannot se...
[5 replies] Last: Thank you for all your help! It works now. :) (by nmorr)
How shall I learn C++?
 
Hey guys, just joined this forum, though I have read lots of stuff on it. I'm 15 and want to learn some programming. My past experience includes a bit of html (...
[6 replies] Last: Thanks for the responses guys, I actually ordered programming princip... (by eagleman)
Strange Image errors with OpenCV
 
So I've been working on some code for a couple weeks and it is far from complete, However the one thing keeping me from moving forward is a strange problem whic...
[2 replies] Last: Yep, that was the problem. (by Dan Feerst)
? on ".c_str()"
 
I've seen programmers use .c_str() when opening up a file...notably in SDL. The def of .c_str() is a function that converts a string variable into a null-termin...
[4 replies] Last: Oh ok. I thought it had something to do with the file name because the... (by dtaqee88)
by CeTis
Find a pointer in a vector?
 
Hello, I'm working on building a game engine and I'm having a bit of an issue trying to use a get function to return a pointer to an object. I have an object ...
[3 replies] Last: @bradw - That seems very logical, actually I'm not sure why I didn't ... (by CeTis)
Colour
 
I am stuck on a simple code. The program run normal but when running the code cout<<"enter a key"; also change colour I only want this to been in colour cout...
[2 replies] Last: How are you controlling the colour? (by Veltas)
What is wrong with this program?
 
#include “stdio.h” main(); { float total, price == 2.99; int number; printf(“How many T-shirts would you like?”); scanf(“n%f”,...
[9 replies] Last: You should do your own homework. So you don't fail the class. (by Master Blue Ninja)
creating a GUI
 
hi, i have written a small c code which implements a digital account book.Now i'm able to get it done on command prompt. Please suggest any tool using which ...
[3 replies] Last: Most GUI toolkits are built off of the OS's API so you're creating a W... (by Volatile Pulse)
Using Method to create score
 
When using method to create score for rock,paper and scissors game. //would I need to include these variable into set? int player = 0; int computer = 0; ...
[3 replies] Last: The design seems to be a bit off to me here. I don't think 'score' re... (by MrHutch)
Populate a array
 
How would you go about populate a array with random value then pass the array and its length to the function. (example) The array size is 6 it contains {-12...
[6 replies] Last: You'd probably want to create a new one to be populated. Though, Vlad... (by MrHutch)
by gerfy1
Ideas for simple text game
 
I am wanting to practice c++ by making a simple text game. I know about variables, if statements, pointers, functions, and the basics of classes.
[4 replies] Last: Solitaire (the peg version, not the card version) is pretty easy to im... (by MrHutch)
why is my code doesn't work?
 
This code i take it from the tutorial here and when i make a few changes it gives me a wrong output the original code // friend class #include <iostream> ...
[4 replies] Last: Peter87: Thanks (by AkramIzzeldin)
Pascal's Triangle ( how to to make spaces b/w nums).
 
Hi , I am trying to make pascal's triangle (http://en.wikipedia.org/wiki/Pascal%27s_triangle) The output if n value is 4 is : ...
[4 replies] Last: how to use the while loop,for loop,do while loop....plz explain it....... (by dog)
Class Ouput with I/O buffer
 
Hi Guys, Using and older C++ book, about 12 years old if that may have some significance. I am sure I wrote the example down verbatim, but when I enter a nam...
[4 replies] Last: I did change it to ios:: out and ios::in but to no avail. I might have... (by toomanystars)
Making a blackjack game. How to have two different random variables?(one for dealer one for user)
 
I am trying to make a blackjack game, where the user gets a pair of cards, and the dealer gets a pair of cards. My problem is that right now they are getting t...
[4 replies] Last: NULL is defined as 0. (by BlackSheep)
My friend function is not letting me use a function in a class from another class. What am I doing wrong?
 
I am trying to use the disphanddealer in Player.cpp, but it is saying that it is not declared. I thought that since I put "friend class Dealer" into player.h, ...
[2 replies] Last: You need to call disphanddealer() with a dealer object. You're just tr... (by Zhuge)
August 2012 Pages: 1... 1819202122... 45
  Archived months: [jul2012] [sep2012]

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