Beginners - February 2011 (Page 18)

code with c++ 2008
 
i'm new here,,can you give me a sample program that save the date and the time of the system on a te...
[3 replies] Last: the EventHandler for the button would look something like: private: ... (by closed account z05DSL3A)
creating two exe. from one code
 
i wanted to ask whether we can two exe. file from one code( i am not talking about self extracting s...
[11 replies] Last: thanks Duoas (by satyamkrishna2004)
Creating an array at runtime
 
Is it possible to create a pointer that can be modified into an array at runtime? Or instead do y...
[13 replies] Last: I see that dptr is an array of double pointers, of size 1, but on cons... (by Moschops)
by DrCake
School assignment
 
Hi, If got a C++ assignment for school, but im stuck :( This is assignment: #include <ios...
[5 replies] Last: << is a bitwise operator. It shifts the bit in a byte to the left, co... (by john2)
by tonnot
A forward problem case 1 works case 2 not
 
I dont understand nothing I have ClassA.h class B; class A { public: private...
[1 reply] : Even your explanation is not good enough to answer your question, from... (by richardforc)
Creating objects
 
I've programmed c++ for a while, but got on a problem which I don't know to solve. Let's say I ha...
[2 replies] Last: On a related note, in this code: if(key='B'){ Bird b("blue");... (by Moschops)
by tonnot
Forward declaration
 
Talking about forward declaration... Myclass* myclass Myclass *myclass Whats the difference?
[1 reply] : There is none. (by Athar)
Constructor -initialize this class into an empty class?
 
Lets say I have class TheClass. In the constructor, how do I initialize this TheClass to be an empt...
[3 replies] Last: You can using a char array "myString" to store string. if myString i... (by guevara)
srand
 
I'm trying to get my random-equation generator to generate two different numbers not only every time...
[2 replies] Last: Thank you! That was rather obvious, I should've seen that. Thanks ag... (by Caesar1)
Should this work??
 
I really don't know, but it works on my compiler and gives me this output: 012 #include <...
[1 reply] : Yes, it should, but the virtual keyword is not necessary because you'r... (by filipe)
Can't assign "const char*" to an entity of type "char*"
 
I'm fuzzy on pointers I suppose (I figured I could just assign one pointer to the other but I guess ...
[4 replies] Last: I see. Because assigning that pointer would give myString access to t... (by spentak)
Encoder?
 
I'm trying to write a program that encodes the user's input. It is a simple three-letter shift. Th...
[1 reply] : Replace s with the name of your string. for(int i=0;i<s.length();i++... (by rocketboy9000)
by la9113
decryption program
 
I just started using C++ and i have to create a program where the user enters a file name to decrypt...
[4 replies] Last: Yeah, you take the integer value and cast it to a char, but if that's ... (by Computergeek01)
Recomendations for c++ class
 
Hi, I'm planning on learning c++ and was wondering if someone here would be able to recommend some s...
[4 replies] Last: If your school offers a Computer Science class, then you should take i... (by Browni3141)
SFML
 
So do i need to link SFML to VC++ 2010 every time i make a new project or is there a way that i can ...
[3 replies] Last: If you're using VS, you can make your own header that has something li... (by Disch)
by CoBSaD
Finding multiples of 3 under 1000.
 
Hey fellas, brand new programmer here! I'm excited to learn and I'm having a blast. Would like some ...
[12 replies] Last: @Browni3141: Typically I'm against posting whole solutions to assignme... (by Zaita)
How do you make a level editor?
 
i want to make a platform game but i need to know how to make a level editor. Any suggestions, books...
[11 replies] Last: My thought about this is that level editors are for the people who don... (by Computergeek01)
reseting a stack (1,2)
 
How can I reset a stack to be empty? Is it like this? void reset() { count=0; }
[22 replies] Last: why not make std::vector (and std::string) built in to the language a... (by jsmith)
Sorry, Re- Multi dimensional vector array
 
I'm trying to assign these classes to my multi-dimension vector array but it doesn't work. I'm getti...
[3 replies] Last: To follow on, I suggest you use a shared_ptr<> (www.boost.org) or an a... (by Zaita)
Quadratic equation
 
My teacher wants me write c++ statements that computes the value of (-b + (b^2-4ac)1/2 )/2a and assi...
[2 replies] Last: http://www.cplusplus.com/reference/clibrary/cmath/sqrt/ (by Toothkiller)
February 2011 Pages: 1... 1617181920... 43
  Archived months: [jan2011] [mar2011]

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