Beginners - July 2011 (Page 38)

Constant Enumerations
 
Hi, i am making a checkers game..and i have used array of enumerations to declare the states of the board.. enum state {state_black,state_white,state_boa...
[6 replies] Last: i can move it....the problem is that when a normal checker turns to a ... (by ChanGeZi)
by tonnot
Problem of two consecutive ++operators , always works the second ?
 
I'm passing values of an array by pointer to a funtcion, and as you can see I use ++prefix to increase the index, w_math->Visual_cent(&w3d_p3d_af[++w3d_p3d...
[3 replies] Last: The order in which parameters are evaluated is not defined by the C++ ... (by LB)
if-else statement problem
 
I am having trouble with my if else statements. I want it to print You win for the right answer, and you lose for anything else. To me, the logic should work. T...
[3 replies] Last: @acorn: thanks! that did the trick. I think I read my book wrong :P (by xXmusicmanXx)
by wtf
Is this possible?
 
string str; cin >> str; check(str); //wait this aint right user enterd input in different format //lets put it back into the cin stream because he ...
[5 replies] Last: putback can work for strings. I don't know whether streams were int... (by hamsterman)
by g913
Books to read after completing tutorial pdf
 
Hi guys, I am almost done reading the tutorial... I want your suggestions on buying a good book that gives me good knowledge on more topics in detail that were...
[9 replies] Last: I'll probably pick it up next week, it's already on my e-book. I'll gi... (by eidge)
by tonnot
Stringstream gives me floats when I create it with a 'double number???'
 
I have a function that use stringstream to parse strings to a numerical values. stringstream conversor_string_number; double My_d; conversor_string_number.s...
[2 replies] Last: Yes, your right !! (by tonnot)
deleting a portion of screen
 
how can we delete a portion of screen on c++ program?i tried using \b and overwriting the line but it didnt help
[6 replies] Last: You only need the #included header and the topmost function, and all i... (by Duthomhas)
by Justin
What is the C++ code for system("cls")
 
What is the C++ code for system("cls") I hear people saying that you should never use system in a C++ program
[9 replies] Last: @catfish, ok thats what i was asking in the first place, clrscr() does... (by Justin)
by Justin
Need a while loop
 
Cant figure out how to get the loop in my code, im using Win32 console app, in C++ EDIT: NEED A DO WHILE LOOP #include "iostream" #include "conio...
[2 replies] Last: K thanks, i added system("cls") so it looked better, (by Justin)
by tonnot
Sizeof array of floats dynamically created
 
I have a private var : float * w3d_p3d_af; And into a function I have w3d_p3d_af = new float ; <<sizeof(w3d_p3d_af)<<""; <<sizeof(&w3d_p3d_af)<<""; ...
[8 replies] Last: Thank you very much !! (by tonnot)
by wasabi
Stuck before main()
 
I am currently looking at the oddest error to date: my program is entering an infinite loop before the very first line of main() . The program compiles just...
[2 replies] Last: Yeah, the moment I posted it, I realized I had a global object (altere... (by wasabi)
2nd language...
 
I've been learning C++ for some time now, and since it's summer, and there is no school, I have more time to program and I want to start learning another langua...
[11 replies] Last: cool. ive been debating java or c# lately myself. (by acorn)
tutorial on pdcurses
 
hey can some one plz provide me a link with a tutorial on pdcurses....i tried googling it but failed to get a gud one
[3 replies] Last: The canonical tutorial is here: http://tldp.org/HOWTO/NCURSES-Programm... (by Duthomhas)
Pointer Dereferencing
 
I just started studying pointers yesterday and am confused on a line of code. First off, here is the code. #include <iostream> using namespace std; int ...
[5 replies] Last: the microsoft compiler lets you get away with alot. ive noticed you do... (by acorn)
sugestetion welcome
 
//this program is ment to convert distances fro metric to sae. it compiles down to the last } then gives me an errror code saying that } expected at end of inpu...
[7 replies] Last: [quote=sqoobie]with the code tags would i place thouse between my if s... (by anonymous23323124)
by anl214
gear ratio problem
 
so i have a questioe I have done questions 1-3, but for 4 i do not understand how it is possible to solve this one if we are only given the minimum and maximum...
[6 replies] Last: it is just the ratio * the minimum speed to get the second lower. so... (by anl214)
RANDOM FUNCTION
 
i am making a railway ticket reservation program.i am using a random function to generate a ticket number randomly..all i want to know is will this function rep...
[4 replies] Last: Reading the links people post might actually help, despite how unbelie... (by Athar)
My First SFML Game.
 
My first game made using sfml(or anything else). What do you guys think? The Zip file has the executable inside, and the sources are just cpp files. xD ho...
[8 replies] Last: By Proccessing (may not be the right word) but i mean have an "interpe... (by strongdrink)
Do you .close() streams?
 
Hello all, was just wondering. Since a destructor automatically calls a file stream's close() function do you think it's necessary to close it manually? And if...
[1 reply] : It's unnecessary, unless you want the file to close before the stream ... (by Athar)
sstream...
 
//why we can't use insertion or extraction from string to string using string stream. #include <iostream> #include <string> #include <sstream> using namespa...
[1 reply] : That's how the extraction operators work. If you want all of it, you c... (by Zhuge)
July 2011 Pages: 1... 3637383940... 54
  Archived months: [jun2011] [aug2011]

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