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

by Aru
Error in tutorial
 
This isn't an error exactly, but it implies something that is. On the 'Pointers' page in the tutorial, under section 'Pointers and Arrays', the code section ...
[4 replies] Last: I agree with Duoas. The text makes the difference between numbers the ... (by helios)
by ekaya
Array question
 
I would like to create a program which will create a linear array of 20 integer numbers, populate it by random numbers between -10 and 10, print populated array...
[1 reply] : What have you tried so far? Why don't you post the code you've put to... (by Michael37)
by Thanz
Dereference
 
Dear fellows can someone tell me what does mean Dereference in C++?
[1 reply] : This was a previously asked question. I think this is what your looki... (by Code Assassin)
by Thanz
Pointer movement problem in double
 
Dear Fellows, Double type variables take 8 bytes storage.In the following example when pointer is incremented first time it moves 8 bytes forward but it is in...
[7 replies] Last: It's hexadecimal. 10 in hex is really sixteen A is ten B is eleven ..... (by Disch)
Function that Selects characters in a string of char array...
 
This function is suppose to take an array of char type as argument, and select certain characters (integers and " . " ) in the array and ignore some characters ...
[2 replies] Last: Thanks this helps but it inserts strange characters in place of the '$... (by crosslink)
by ekaya
nested iteration
 
I try to create a program which will create two dimensional array of integer numbers a(10*10), populate it by random numbers between -9 and 9, print populated a...
[2 replies] Last: Why don't you try looking at some videos that deal with arrays. This ... (by Code Assassin)
Mouse Clicks in Console Application?
 
Is there a way to have mouse clicks in a console app? While I'm sure, almost positive that there is a way, can someone show me an example of how to, if said a...
[4 replies] Last: Does this require a library? Or is it because I'm on Windows? I got th... (by closed account 967L1hU5)
OpenGL texture problem.
 
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // Clear The Screen And The Depth Buffer glBindTexture(GL_TEXTURE_2D, TextureID); glLoadIdentit...
[2 replies] Last: Aha, now it works thanks :) (by Mekolle)
by Pyrius
SFML - Undefined reference to 'WinMain@16'
 
I'm trying to use SFML to make a game, but I ran into an error. I have 4 files in my project: main.cpp, Screen.cpp, Screen.h, and GameState.h. I built them indi...
[4 replies] Last: Uhh... it seems to have fixed itself... so, thanks for the help! (by Pyrius)
by mrkhn
Fastest way to write 6k+ rows
 
I tried to find a post similar like this... but i didnt found it... So i hope is not resolved in other thread. Well I need to write around 6k information ...
[7 replies] Last: Thanks all for the answers. Ill try what you told me and see which ar... (by mrkhn)
Operator<< Overloading
 
I'm doing an assignment for my OOP class, and I am a little confused about the use of operator overloading. I've seen a few examples, but not using the operato...
[15 replies] Last: sure, good luck, you guy... (by chinalinux)
Help please
 
my program wont display the results of my calculations. heres my program. what am i missing? #include <stdio.h> #include <math.h> int main(void) { /...
[1 reply] : Well for one, you are missing [co de] tags. :P %7.2 I think you a... (by Zhuge)
Need tutorials
 
Hello I'am looking for SDL tutorials like lazy foo's but much more general, even though I will be using SDL for game development.
[4 replies] Last: That is all I need to hear, I just need to know that lazy foo's tutori... (by TheFlow450)
I desperate need of help
 
Here are my the instructions I have and i have no idea where to start can someone please help me! 2. Prompt the user for a text 3. Read the string entered ...
[2 replies] Last: I dont want anyone doing my home work i just need a little idea of whe... (by mproulx)
Networking: What's wrong?
 
/* ** selectserver.c -- a cheezy multiperson chat server */ #include <winsock.h> #define PORT "9034" // port we're listening on // get soc...
[no replies]
by Zerco
Write to a separate text window
 
I'm trying to write a program that will read from a simple text file, take that information and store it in an array, then write to a different application. ...
[1 reply] : In windows: Get the hwnd value of child window(eg. Text box) Use m... (by tolga gerekci)
copy constructor
 
Why copy constructor and destructor called 3 times each when I call insert in the following code? #include <iostream> #include <map> using namespace std; cl...
[9 replies] Last: Your 2nd and 3rd step are the same. I got the answer from another pla... (by guestgulkan)
stream to byte array
 
Hi, I'm creating a program in native C++ (no clr). I'm using a toolkit which converts data and normally writes it to a file or stdout. The issue is that I w...
[2 replies] Last: Thanks Helios for the reply. I looked at it, and also some other posts... (by johanderidder)
by jimctu
Vector inicialization problem
 
Hi everyone! I'm having a strange issue working with vectors I have a class that has some vectors, as seen below: class leach_c{ public: d...
[no replies]
input file doesn't work correctly
 
i had this entirely wrong.... back to drawing board and thanks
[7 replies] Last: How can we use it as an example if you delete your post. Here it i... (by Moschops)
October 2011 Pages: 1... 2627282930... 36
  Archived months: [sep2011] [nov2011]

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