Beginners - August 2011 (Page 8)

Vending Machine
 
I'm trying to create a vending machine for a text based RPG and I'm not sure how to go about this. I want someone to be able to enter "A9" to pick an item. I'm ...
[7 replies] Last: Thank you sloppy9, that is exactly what I needed to know. Work's perfe... (by dfurball)
SFML (1,2)
 
i don't understand SFML, im use to displaying to the console via cout and theyre website doesnt explain well to noobies that are going from console to SFML
[33 replies] Last: so if i wanted to display the text in the window, and then duplicate t... (by metulburr)
by mico
2d game by C++ compiler (1,2)
 
I'm ubber newb don't know "ANYTHING YET" I don't even know where to download the latest C++ compiler nor where to start, I dreamed of making a "2d Game" with my...
[20 replies] Last: Castles in the sky (by brokenbot)
converting binary(string) to normal text
 
Hello, i've been looking for an answer for days, but i can't seem to find it. How do i convert string formated binary into text?
[no replies]
by wtf
no match for 'operator++' in '++*((integer*)this)->integer::d + (+((unsigned int)x) * 8u)))'
 
note:candidates are: bool operator++(std::bitset<4u>& Wow is the compiler really smart, because thats exactly what I wanted it to do, use the bool operator++...
[3 replies] Last: http://www.parashift.com/c++-faq-lite/operator-overloading.html#faq-13... (by closed account DSLq5Di1)
by tonnot
Is there a way to fix or evaluate only once a var inside a loop ?
 
If I have: for (x=0;x<limit;x++) { limit++; } Is there a trick to fix the x<limit statement? Ok, I know I could assign a var before the loop, but... i...
[2 replies] Last: Thanks (by tonnot)
Loop problem in simple code
 
I decided to try C++ again after LUA got me nowhere, and I need a little help with some small code. #include <iostream> #include <fstream> using namespace st...
[3 replies] Last: I think I found the problem, seekg is putting the cursor 11 away from ... (by SpectreCat)
Why Won't My Do...While Loop Exit?
 
Hi, OK - I'm sure this is something really simple that I'm missing, but I've spent the past two hours trying to figure out why it isn't working to no avail. ...
[3 replies] Last: OK - just got a chance to look at this again and figured out why my fi... (by cromulentone)
by DouDou
Alternative wats to partially reset an integer array
 
Is there a way to partially reset to zero an integer array. I currently use a for loop for(short i=5; i<arraySize ; i++) myArray =0; I found refere...
[1 reply] : memset() can be used to set any amount of memory, but it will set byt... (by helios)
keep getting this error The program '[2392] program1.exe: Native' has exited with code 0 (0x0) and program closes down
 
for some reason my program shuts down after inputting the variables. here is my main.cpp and my filer.cpp which the program is suppose to run after inputting t...
[no replies]
Having trouble assigning return value to a variable?
 
Hello again, another problem with this same exercise. I swear I am having so much trouble with arrays and functions >=( Anyways, the exercise states to creat...
[7 replies] Last: Here is the exercise from start to finish, with much help from Cpluspl... (by georgewashere)
Easy Class Problem i'm having any tips will be very appreciated
 
so i'm new to C++ programming and i'm just trying to test this really easy class but it's giving me what i think to be some bunk error, any tips would be nice a...
[5 replies] Last: Yeah. Actually I hadn't looked at what the makefile function actually... (by Disch)
by VETRA
Please help Save binary data using FileWrite
 
Please help! I'm trying to save binary data using FileWrite in Borland C++ Builder 6. I'm reading the DATA from file like this: int iDATAHandle = FileOpe...
[2 replies] Last: I used two buffers because i need to swap bytes sometimes (producing f... (by VETRA)
text editor
 
I made a simple text editor but I want to get the cursor to move around because once I hit enter.., it's done, cant get back to that line! Here is my code #in...
[no replies]
by smelas
numbers to the boxes
 
-1.28706 -1.20833 -0.500325 -0.432992 -0.0959883 -0.0111589 0.0202377 0.123189 0.123607 0.273401 0.437932 0.722443 0.912102 0.944231 1.19091 1.33872 1.35194 1....
[no replies]
by vlad61
Reverse name (Strings)
 
Hello guys just trying to reverse a users input name here and its not working at all and i cannot understand it, Would appreciate some input thank you! void...
[6 replies] Last: Yup thanks guys i woke up today and went ahead and did the same exact ... (by vlad61)
by sf123
transferring from c++ to .txt file
 
Can anyone help me what functions can I use to decode texts? There is a file named input.txt. When I press 1, the texts that are in the input.txt will be ...
[6 replies] Last: You can open a new file like this: FILE *fp = fopen("sample.txt", "w"... (by coder777)
Something wrong about this code
 
This part of my code does not produce its desired purpose. int a=0,b=0; cout<<"Please choose the root domain: "<<endl; cout<<"1. [1,2] 2. [-2,-1]"<<e...
[2 replies] Last: Thanks! (by TheBeefBowl)
Adding an object to an Deque
 
I was making a text based game. I had created a class Inventory, which contained objects that can be carried. Now I want to create a Deque to add and remov...
[7 replies] Last: If you need to store pointers (when using polymorphism), you can use a... (by Athar)
by Faaz
Confused and cant get my head around this
 
Hey, If anyone can help me with this. Write a program that reads in a sequence of integers provided by the user, and then, when the user enters a negative in...
[8 replies] Last: sorry internet was down for 2 days but it works THANKS!! was doing my ... (by Faaz)
August 2011 Pages: 1... 678910... 39
  Archived months: [jul2011] [sep2011]

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