General C++ Programming - January 2012 (Page 5)

How to have two array pointers to one array
 
Hi, My problem in the following code is that when i reach to passing array to thread at the end , i am not passing a pointer , and as a result , not getting th...
[9 replies] Last: ok so , i managed to fix the stuff we discussed before regarding point... (by aymank1985)
by gline9
unable to set a string
 
When I try running the code below I keep getting an error that says I can't set the string for Move. The error happens on line 31 in move class.h. If anyone c...
[no replies]
bug with >> (right shift) ?
 
Hi all, Right Shift (or gcc or Eclipse) looks buggy. I put a breakpoint and evaluated these expressions in the Eclipse expression evaluator : (1) 16 >> 3 =...
[2 replies] Last: Ooouups ! Many thanks Peter87. (by lalebarde)
quicksort question
 
Hi, I was reading up on quicksort and it said that the pivot is chosen so that hopefully lower sublist and upper sublist are ~ equal size. Why does it matter if...
[6 replies] Last: I want to implement quick sort on my own, and not google the answers, ... (by closed account 4ET0pfjN)
finding highest number without array
 
#include<iostream> #include<string> using namespace std; double getsales(); double findhighest(double,double,double,double); int main() { start...
[2 replies] Last: Do a higher and lower var... Then equal lower to 9999999 and higher... (by danoc93)
Self copy constructor
 
Hi, When I was doing some code practice and found below behavior. issue:When I create constructor and assign self copy constructor than program cra...
[5 replies] Last: gcc compiler. Add comment remove d from assignment line also as we ha... (by agoswami)
C++ - Auto-updater
 
I was wondering how to make an auto-updater using C++. I would like my updater to check for updates in multiple C++ programs. Also, I would like for this auto-u...
[4 replies] Last: You would probably want to use a library. The portable, robust, non-v... (by JLBorges)
by polar
program to convert a nomal c++ into machine language
 
mindu i am not telling u to build a compiller no but just programm that could convert a completely debugged c++ program to machine language for perfection of ...
[8 replies] Last: a program that could convert a completely debugged c++ program to mac... (by Twist177)
what a good game library?
 
Hi every body, i am intermediate C++ user. I want to start game programming,i need advice on which library i can use for doing 2D or 3D games. I am using code::...
[4 replies] Last: I believe that Allegro has some tools that could help you. I need ad... (by Twist177)
could somebody make me a Code for this.
 
Input: player 1:_____ Player 2:_____ Output: The winner is: Reason: If no winner: Display "It's a draw." Reason for winning: Paper--paper cove...
[1 reply] : http://www.domyhomework.com/ This forum isn't a full-solution centre,... (by closed account zb0S216C)
Unhandled Exception
 
I dont know what im doing wrong but for some reason I keep getting an unhandled exception my my entity manager. I try to draw the sprite to the screen and right...
[2 replies] Last: void System::Init() { engine = new System(); That doesn't look ... (by ne555)
Pseudo-coding dilemma :s
 
Hi people, I would like to ask if when doing pseudo-coding one needs to mention exactly how the program was to be tackled. As from pseudo-coding to the real pro...
[2 replies] Last: Thanks very much my friend. Really appreciate your help (by orangeapple)
some questions
 
Once again, I have amassed some questions. -Besides not needing to completely copy an object, what other uses does a pointer have that can't be done in some...
[3 replies] Last: a compiler turns c++ into machine language so that the computer can un... (by Aramil of Elixia)
Bitwise operator >> and &
 
I'm trying to understand a bit of code here: (...) #define MAX_UNSIGNED_SHORT (0xffff) #define RANDOM_A (1103515245) #define RANDOM_C ...
[3 replies] Last: I think you are right, it can't. (by histrungalot)
button question
 
how do i make this pushbuttton do something? example: hEdit =CreateWindow(TEXT("button"), TEXT("Save/Open DB"), WS_VISIBLE | WS_CHI...
[1 reply] : Vague question D:< Also, shouldn't this be under Window's Programmi... (by Code Assassin)
CodeBlocks
 
Hello everyone, I recently switched over to CodeBlocks and I have a few questions: -Is MAX_PATH predefined in CodeBlocks? -I saved a text file through ...
[3 replies] Last: :L Weird. It should be there in your projects folder. Have you tried l... (by Code Assassin)
Unable to find solution of the problem...
 
Here's the problem :- Problem 2: Reverse, (K Narayan Kumar, CMI) In this problem the input will consist of a number of lines of English text consisting of t...
[2 replies] Last: This is for seperating the symbols and spaces and adding to the string... (by bluecoder)
some questions
 
Once again, I have amassed some questions. -Besides not needing to completely copy an object, what other uses does a pointer have that can't be done in some...
[2 replies] Last: -Besides not needing to completely copy an object, what other uses do... (by Moschops)
by aquaz
Uniqueness of type_info
 
Hello all, If I use typeid on two instance of the same execution type, can I assume safely that the type_info returned are at the same memory location? In othe...
[11 replies] Last: Thanks JLBorges, very useful technique (by aquaz)
undefined reference error
 
I'm somewhat new to programming and am continually having this undefined reference error to all of my functions... can someone tell me what I'm doing wrong? Cod...
[7 replies] Last: Very confusing... Here's the code exactly like I have it running o... (by Gaminic)
January 2012 Pages: 1... 34567... 36
  Archived months: [dec2011] [feb2012]

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