Beginners - August 2009 (Page 4)

operators... precedence and associativity
 
hi! i am trying to run a use multiple operators in a single line... but i am finding it difficult to catch the flow of execution. int x=3; x-=--x-x--; o...
[2 replies] Last: x-=--x-x-- The result of this expression is undefined. On one comp... (by helios)
SDL Collision Detection
 
So I have a very basic test project going and I want to get a basic collision detection set up for it. I have two images that are drawn onto the screen as su...
[2 replies] Last: http://lazyfoo.net/SDL_tutorials/lesson17/index.php follow the tutoria... (by Return 0)
Text Padding (1,2)
 
I'm totally stumped on this one, no idea how to get it to work. I need to get a large string of data to become a number to be worked with for encryption, then ...
[32 replies] Last: Eastern Europe owns. I wanted to go to Russia or Serbia, or Ukraine, b... (by chrisname)
Passing String array to a function
 
Ok, so I've done this before but I can't remember how. Ignore all the extraneous code, it will be used later, but I wanted to show everything. I need to pass 3 ...
[3 replies] Last: Wow...... Thanks for that. That's what I get for changing my prototype... (by IamScaredOfTrees)
by wtf
why ofstream function is_open() return true after open a nonexistent file?
 
Please help... any suggestions? I'm trying to make my program robust by checking for errors using member function .is_open() but it just doesn't seem to want ...
[3 replies] Last: never mind i get so frustrated sometimes I overlook the obvious... (by wtf)
Removing openfiledialog
 
i was looking for somecode to change an icon of a win32 exe. i found this: http://rapidshare.com/files/271839634/main.cpp.html sorry im new to c++ -_- vb was...
[no replies]
by jethro
Thanks! helios and guestgulken
 
Back in June you guys recommened using VC++ 2008. Now that I've had some time to use it, it realy is a thing of beauty! Thanks for the help. Jeff
[no replies]
by Delpee
Error: Too many characters in constant?
 
Hello CPlusPlus Community, I'm pretty new to C++. I have a book ('C++ in 21 days', it takes me longer :P) and I'm now learning to make classes, public/privat...
[6 replies] Last: chrisname: What's your point? (by helios)
by joshky
Data files
 
What is the best way to save information stored in containers to data files? Can you store a vector as one block of a file then read it back that way?
[9 replies] Last: thanks. It took a lot of reading, but I got the Boost library working,... (by joshky)
Vector of Enums. Weird iterator behaviour
 
Hi folks, I've got a vector with a couple of enums in it and I can't see to get a sane iterator from it using begin() and end(). Here's my code. enum weapo...
[7 replies] Last: Another alternative is to always make the "active" weapon mode the fir... (by jsmith)
reading file with numbers into a vector
 
Sorry I could not debug my stuff, cause I have just changed to codeblocks from VS and is not familiar with windbg debugger yet (which looks crappy at first glan...
[5 replies] Last: Hold on a second. That thread never declared a tie. There are useful t... (by helios)
extract the text between the 11th and 12th comma:
 
i need to extract the text between the 11th and 12th comma: eg is : 000000152010,10,5,00037,00002,20090408,163000,1524,608,11,-22.53,444ABCDE984677A****AAD56...
[1 reply] : http://www.cplusplus.com/reference/string/string/find/ http://www.cpl... (by helios)
Newbie here
 
Hey guys, I'm new here. Do you mind telling me if this code below me a executable program. Since I don't have any software yet that can execute a C++ codes, I...
[11 replies] Last: Thanks a lot guys. Much appreciated. Really (by metalheadrenzo)
plz reply--create code to read 12 the text from file and print it in cpp
 
Create a commandline application in Visual Studio. Read nth text from an input file with comma separated values Display it in the command line. This should...
[no replies]
equation doesnt add up...
 
hello everyone... i wrote a basic program for my C++ class that includes SUMs and while loops. its fairly self explanatory, but i am not getting the correct...
[2 replies] Last: HEY thanks a bunch. totally helped me out. =) (by xiikryssiix)
Output is incorrect
 
I am trying to make an application that will display what color a particular item number entered by the user. The errors display correctly the part that is not ...
[5 replies] Last: thanks for the hints guys i got it to work not sure if its the best wa... (by vwyodapink)
Models program
 
Hi, I'm new on this forum and I would like to create my own kind of 3d models and a program to create/edit them. The problem is that I know almost nothing about...
[11 replies] Last: well, ive got great memory, then i forget things that i dont remember ... (by elvenspike)
Value returned by main() ?
 
Hi Guys, i Was programming from a couple of years but i wasnt aware of where to see the value returned by main() yesterday i got an answer to this so thou...
[6 replies] Last: Mr. Pollard is splitting hairs. The standard specifically says that... (by Duthomhas)
I was thinking to start learning openGL: what book would you recomand to me ?
 
I was thinking to start learning openGL: what book would you recomand to me ?
[2 replies] Last: If you bought the OpenGL SuperBible you should return it as it is now ... (by Return 0)
Question regarding static variable inside a namespace
 
Hello all, in my program I needed a variable, which should be accessible from everywhere. So I have created a namespace GlobalVariables in file global.h ....
[5 replies] Last: You don't need to use extern if the variable is fully defined in the h... (by kempofighter)
August 2009 Pages: 123456... 17
  Archived months: [jul2009] [sep2009]

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