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

problems with guessing game
 
#include <iostream> using namespace std; int main () { int number=54; int answer; cout << "I'm thinking of a number from one to one hundred./n"; cout << "...
[2 replies] Last: With this flow, there is no ability to repeat the guess.... something... (by jwroblewski)
adding arrays.....
 
im gettig lots of errors and i have no clue why. can someone test it for me and tell me wassup #include <conio> #include <iostream> int getvalues (i...
[3 replies] Last: On lines 49 and 53 you have inconsistencies with your variable nam... (by Marquis)
Compatability with Windows
 
I want to simply make this code compatible with Windows from what I know the easiest way is for it to run in CMD. This was originally created only for Unix but ...
[no replies]
by mar11
comparing string with item
 
Hi all, is there any way to compare string item, say given form in stream, with an object name. Consider the following code struct st{}; int ma...
[6 replies] Last: @mar11 that is not possible (by closed account 10oTURfi)
Class to check object before instantiating
 
Hi, have a class similar to the following to create objects of vehicles. However, I want to ensure to have the object for a car to be instantiated only once (d...
[no replies]
Question about preprocessor directives
 
This is what it's said on the documentation: "Preprocessor directives are lines included in the code of our programs that are not program statements but direct...
[4 replies] Last: So, all these have to do with compiling Yes, when you compile a file,... (by kbw)
Help plotting a graph using a variable
 
To start off , i am dealing with robotic project. I have this speed variable (lets call it 'x'). This 'x' variable will update itself every xx ms as it is u...
[3 replies] Last: So far in school i had only learned basic c++ and object oriented prog... (by Mr Solid Snake)
Simple Compiling Errors
 
If someone could tell me if I can just skip these errors and continue to compile, would be grateful and if you want to take a look at my code, and point out the...
[5 replies] Last: Now see if I was to do line 460, & 461 like that I don't see how it wo... (by CodexAnonymous)
[HELP] something wrong with the code?
 
I'm still new to openGL programming, and I'm now doing the mouse motion event handler function, so far i know how to set the position value of shape but seems ...
[1 reply] : Ask the question in opengl.org forum you will get the better answer (by Dinesh subedi)
[HELP] warning MSB8005: The property 'NMakeBuildCommandLine' doesn't exist.
 
I found a code written in c++ but i tried to compile the code with visual studio 2010. I found an warning "warning MSB8005: The property 'NMakeBuildCommandLine'...
[no replies]
Help sorting books in alpha. order - c++
 
Hey guys, can you help me out with this program I'm writing. I'm supposed to type in a specific data of books (which I have as a txt file and I redirect). The p...
[5 replies] Last: sorry for the confusion, it would output a list of the books sorted ou... (by elementx2z)
pthreads slowdown
 
Hi All, I am using four pthreads for my branch and bound implementation but surprisingly I am getting a 2X SLOWDOWN as a result! Parallelizing a tree search a...
[2 replies] Last: Is this running in a loop? Does TaskCode run for a significant amount... (by mohsaied)
by wlhaha
Inheritance question!!!!
 
Hi im new at c++, could anyone help me on this? #include <iostream> using namespace std; class A { public: int q; A(int q = 0){ this->q =...
[1 reply] : What do you mean? You want D::sum2 to refer to the same object as C::s... (by helios)
by biebie
help me to find coding user should register before
 
anybody can help me to share the coding. user should register before they login in the system.
[no replies]
by biebie
help me tofind coding user should register before
 
anybody can help me to share the coding. user should register before they login in the system.
[no replies]
Boolean Arrays
 
Hello I need help with the following problem I want to assign values to a boolean array. I want the program to remember these values. For example, 5 seats...
[1 reply] : I've never heard of a boolean array but presumably it will hold only 0... (by buffbill)
[HELP]change color using keyboard function
 
I want to change a shape color using keyboard key like F1 F2 F3, so when i press F1, the shape wil change to red as i set to this color. Im using switch stateme...
[5 replies] Last: Strictly necessary in the program.In function presskey() when we press... (by Dinesh subedi)
by Tatipu
Is it possible to crash if too much output at once? at once?
 
Well, I'm not sure if I answered my own question but if you have an infinite loop, the program won't crash, but my current program (debugging a lot at once to f...
[no replies]
Coding Problem with Binary Tree
 
Hi all, I am having an issue with the following. I created a Binary Tree and I'm having trouble accessing the value of a node after calling the search() func...
[3 replies] Last: Ahh!!!!!! Thank you very much. (by readysetgo)
handle constructor failure
 
when the constructor throws exception how is the memory allocated to the object is reverted back.for example class x { public: x() {} ~x() {} }; int ma...
[no replies]
November 2011 Pages: 1... 2627282930... 47
  Archived months: [oct2011] [dec2011]

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