Beginners - July 2011 (Page 17)

Filestream problems
 
I have an external file formatted as such: China 4873 91275 8363 United States 324879 238172 3487 ... And so on. It is a pattern of a string (whi...
[6 replies] Last: Nevermind, I found the source of the problem. My curly brace for the ... (by azuk040891)
Problem with SDL animations
 
My problem is if i press a button to move the image doesnt go away. It leaves like a trail. Also, how do i make it so that if i hold down the button it will kee...
[5 replies] Last: quirky that was very confusing for me could you write that in pseudo c... (by nano511)
New to C++ need help!
 
Ok, I want to learn C++. But my issue is ... where do I even type the code? What program do I use? Where can I download it? I hope this makes sense!
[19 replies] Last: @creeklist while(true){} Run a program that has that code in it ... (by Maese909)
by eaxx
Pointer Basic Understanding Qustions
 
So the difference between (&) reference operator and (*) de-reference operator, is basically that the reference of a variable points to the address in memeory? ...
[1 reply] : I think your understanding is correct. & refers to the address of s... (by creekist)
One person Tic-Tac-Toe game
 
I'm trying to create a tic-tac-toe game for a beginner C++ class. I've got a working two-player game, but when I try to make it a one-player game, with the seco...
[8 replies] Last: http://codepad.org/SGuVOBcB Your while loop should be functioning as i... (by closed account DSLq5Di1)
by Toxn
Char pointer cout = garbage
 
Can someone explain why this return the char 'a' followed by a bunch of gibberish? For all other data types it responds with the memory address of test. c...
[3 replies] Last: Thanks! (by Toxn)
Trouble passing structure/vector index as arguments
 
I have to call a private function and pass a structure in a vector at an index as an argument. Any idea what that syntax should look like?
[4 replies] Last: A question, I haven't messed with vectors or anything. Isn't that a "V... (by eaxx)
Why not define functions in header files?
 
I'm just wrapping up a chapter on Memory Models and Namespaces, and am a bit confused about header files. I don't understand why you're not supposed to define ...
[6 replies] Last: All you want to know about headers and more here... http://www.mindvi... (by emyr666)
Extremely basic program wont work
 
I'm a newb at C++, I just started today, and I know my program is coded right because I followed a tutorial and I checked like 50 times, and for some reason, my...
[11 replies] Last: Don't include headers that you don't need. You're not using anything f... (by emyr666)
Reverse hex value
 
Hi I have a binaray file that is read in to a char vector. The problem is that the values that im interested in are somehow reversed. cout << hex << stat...
[8 replies] Last: Because no one mentioned it yet, if it is endianness, it would not bec... (by Intrexa)
Using abs()
 
Why do I have to declare the variable as a double or float? Why won't it work as an integer?
[1 reply] : http://www.cplusplus.com/reference/clibrary/cstdlib/abs/ It takes e... (by Intrexa)
bool quiz
 
How can I expand this to three differnt questions? Right now, it is only one generic question repeated three time.. #include <algorithm> #include <iostre...
[2 replies] Last: I thought about the first part but thanks for clarifying the rest. I w... (by xXmusicmanXx)
Everything suddenly went horrible wrong
 
EDIT: i fixed the problem i had but now i have another problem class Intro is derived from class GameState. GameState has some virtual functions. I am trying t...
[2 replies] Last: Right. Intro has to implement all the pure virtual functions that Gam... (by Disch)
Error on overloaded insertion operator
 
Hello - I'm having problems compiling a C++ program using multiple classes, including an ADT template, within code::blocks. The error message I get is "Reader/s...
[5 replies] Last: @ ne555: Compiled! Thanks - I removed the constant keyword from the pr... (by chelrenee)
How the hell do i set up SFML?!
 
Im using vc++ 2010 and i keep getting all these stupid LNK errors. I have the include and lib directories set up, and i have the additional dependcies linked...
[5 replies] Last: i got it i got it, one second Step by Step: 1) Go to the VC++ pa... (by creekist)
Error
 
Hiya!Please someone help me why my variable 'e' is not being initialized? Im kinda new to C++. Thanks, guys! Here's the code: #include <iostream> #inclu...
[1 reply] : http://www.cplusplus.com/doc/tutorial/control/ condition is checked. ... (by ne555)
by Baso
Problem with pointers in Loops
 
I have just made a conversion program that convert amount of money from dollar system to old English pound system (when shilling and pens where in use) and vic...
[10 replies] Last: You are welcome! (by Nisheeth)
Linear Search Problem
 
hello eveyone i'm making an Inventory for a game and i'm having a problem. what i want is to search the array for NULL and if it finds NULL change it from N...
[5 replies] Last: I have one question , In your array char Inventory ={'A',NULL,'B','... (by Fantasy)
Problem Input and Output
 
Hi there Firstly, i just copy the coding into this text, sorry for that, i'm just recently start, so i hope you guys can help me.. i have a problem that the a...
[5 replies] Last: You use accName == "Savings_Accounts" ; where == means equivalen... (by AdventWolf)
(error LNK2019) problems
 
Hello cplusplus community! I'm currently working on this program for class and i think i have it all figured out except I keep on getting this linker error: er...
[1 reply] : Your declarations don't match the definitions here is one... declarat... (by closed account z05DSL3A)
July 2011 Pages: 1... 1516171819... 54
  Archived months: [jun2011] [aug2011]

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