General C++ Programming - November 2011 (Page 19)

Help with Texted Based game.
 
Hi! I'm new to C++ and I'm in the process of making a texted based game and I've come up with a problem. How do you make the storyline change based on your acti...
[3 replies] Last: Even though some people on this forum seems to hate console games, the... (by Stupebrett)
project
 
If y=f(x) where x changes from Xo to Xk with step dx. Use while or do while loop y=arctg(x) + + 4, where X0=1, Xk=2, dx=0.1 ...
[9 replies] Last: Read the documentation and discover what the name of the function is i... (by Moschops)
by abby11
Nested For Loop Problem with String
 
Hi All, I am having a bit of trouble with this program. I am supposed to use a while loop to get a string of words from the user. Then using nested for loops I...
[1 reply] : getline (cin, line) Stores the entire line of input in the line vari... (by AndroidZ)
initializing objects in a constructor
 
I seem to be having a senior moment, and can't for the life of me remember how to do this. I have a class: class NyqMultBlock { FlipFlopReg32 regDel...
[15 replies] Last: Hey, SIK: thanks for putting so much work into this. What you have abo... (by mzimmers)
What is up with my sudoku function?
 
Okay so this has been driving me crazy. I have been working on a sudoku solver and through one of the topics posted on this site (http://www.cplusplus.com/forum...
[6 replies] Last: I just changed typedef to int and it worked. char didn't work property... (by sero323)
Possibility of 2 function definitions?
 
I have an external library statically linked in to my program. I would like to know if it is possible to create a 'function' in my code that will get run when t...
[3 replies] Last: I see. Well, theory says you can re-write the function address and ma... (by webJose)
arrays and pointers indexing
 
I have a pointer to an array of Gdiplus::Color objects RGB values that are 3 BYTE's in size for each object, just the rgb values 1 BYTE for each. I have another...
[2 replies] Last: Hi , codejunky99 can you explain what this line do ? texelColor ... (by bluecoder)
looping get non stop
 
When i run this program,and choose "Y" to repeat the program,it skip the name and quantity line that prompt the user to enter data. i try to change it to if el...
[9 replies] Last: thank you. the std::cin.ignore(); works. =) i already done if it just ... (by chocolatsprintz)
which are d best compilers for c++?
 
i am using codeblocks . but i find very less helpful . are der ny other compilers(IDE) which offer help like classes, functions definitions, library standard f...
[3 replies] Last: Code:Blocks is not a compiler. It's an IDE. In what platform do you ru... (by eypros)
by iPlus
What's the best way to learne(opinion)
 
I just wanted to hear peoples opinion on what's the best method to learning the advanced parts of c++ or just learning c++ in general please post your thoughts.
[3 replies] Last: I agree that books (and good web sites) are important. But it's more ... (by andywestken)
Is it essential the size of a 'char' array to be const
 
Hi all, My question is regarding the size of an array. As i know the size of an array must be a constant and it should be know at compile time. Off course my...
[5 replies] Last: That is a compiler extension (that goes against the standard). The -p... (by ne555)
by sweezy
Question about Odometer Program
 
I need to write a program that displays 1 million 6 digit odometer readings using NESTED Looping. I need to find out how many 6 digit odometers there are that a...
[1 reply] : 'special' seems a bit vague a term. Is 123456 special, too? 123123? 1... (by andywestken)
disable access to some functions of parent class
 
hello, Briefly I want to disable to access some functions of the parent class from child class For example. CreateChild() and CreateChild(String name) the...
[6 replies] Last: Node* n = new TSNode(); n->CreateChild(); // No error :\ A Node* ... (by Galik)
Errors with compiling
 
#include <iostream> #include <fstream> #include <string> #include "datefuns.cc" using namespace std; bool IsLeapYear(int year); int DayOfYear(int Mon...
[1 reply] : In the future, please post the exact same code that produced the error... (by helios)
by efigen
Bubble Sort help please
 
I have been working on this assignment, and it says i have to sort a 2d record array based on the type of record so if its an id its an int and if a name its a ...
[1 reply] : I do not understand what you save in RecordArray. My advice use struc... (by Meirambek Zhaparov)
Help Please, code isn't working
 
Can someone help me, i've written this code and it's not working but i'm really not sure why, until a few changes it was working. #include <cstdlib> #include ...
[4 replies] Last: Oh My, can't believe i didn't notice that :F thanks you so much for yo... (by Actionman1995)
Graphics
 
So, i want to get into making a GUI. I know the basics, so I'm moving on to GUI. Is there any advice on where to start?
[2 replies] Last: ok, ill try the graphics library. (by IWishIKnew)
help with code
 
hi i keep getting an error about health speed and strength i know what the problem is but i am not sure how to fix it can someone help me #pragma once #inc...
[2 replies] Last: thank you most appreciated i keep making that same mistake (by gregar0)
by GAD
Hot keys
 
Can I create hot-keys in C++? IF yes .How?
[16 replies] Last: Those are not orthogonal questions. C++ does not provide you with any ... (by Duthomhas)
infinity in C
 
Hi, I know that in C++ we can include <limits.h> and then define +inf as numeric_limits<int>::max() and -inf numeric_limits<int>::min(). How can we defi...
[4 replies] Last: You can get an "infinity" value from the macros in <float.h> (or <cflo... (by Duthomhas)
November 2011 Pages: 1... 1718192021... 47
  Archived months: [oct2011] [dec2011]

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