General C++ Programming - August 2011 (Page 10)

Help in finding the error in the Code
 
I was trying to make the Dungeon Crawl game (again) listed here in the Beginner's Exercises Article: http://www.cplusplus.com/forum/articles/12974/ I made...
[6 replies] Last: Xdif = A->GetX() - X; Ydif = A->GetY()-Y; int Diff = Xdif-Ydif; Wou... (by Nisheeth)
Networking info
 
Hi, I know c and c++ programming language. I wants to study about networking and networking programming. I need some advice from where to start and what at-lea...
[1 reply] : In general all network or TCP/IP related I refer to W. Richard Stevens... (by sohguanh)
by snash
NEW COMPILER
 
Can anyone please help me to get best compiler? C++ language tutorials are really helpful. But programs are not at all running in my 'Borland's turbo c++ v4.5'...
[2 replies] Last: http://www.microsoft.com/visualstudio/en-us/products/2010-editions/vis... (by Syuf)
openGL Texturing Only Fragments of Texture When using VBOs
 
I am currently trying to use hardware acceleration to draw a textured quad. When I draw a quad using glBegin(GL_QUADS) ... glEnd() my quad draws fine. So I beli...
[4 replies] Last: Shacktar helped me solve this problem. I needed to change: static con... (by AaronZim)
by Chathu
Can U Help With This Code:(
 
I'm Trying To Print An Array By Avoiding Entering Same Value Twice. It Works Up To Some Extend. I compiled It By Giving These Values. Input=10,11,12,13,11,14,1...
[1 reply] : Oh I Figure Out The Answer :) Error Is i-=1; (by Chathu)
C++ Questions
 
Good morning everyone, I'm doing a test and I have some doubts and can not resolve these issues. Someone could help me? thanks. 1) What is wrong with the ...
[4 replies] Last: Thanks for the replies! (by JOSERODOLFOR)
OLE DB and stored procedure
 
I have code, but return value == 0. Why? ALTER PROCEDURE . ( @mykod INT ) RETURNS INT AS BEGIN select * from table1 where kod=@mykod RETURN 99 ...
[2 replies] Last: I marked code where I have error. Look closely at my code! hr = pI... (by kurlyak)
Passing 2-Dimensional Array to Function
 
Hi everyone, I'm having an issue with 2-dimensional arrays. I am trying to create a function prototype that will allow me to manipulate an array argument that ...
[3 replies] Last: No, not unless you provide the exact type of the array for all dimensi... (by Duthomhas)
NEED Algorithm to C++ Conversion Help, Please!!
 
Hello and thanks for reading my post. I need help converting the fallowing Algorithm into working C++ code, and below is what i have come up with so far, what d...
[1 reply] : Check your use of the std::cin . You must use the extraction operator... (by vince1027)
HELP! CANNOT UNDERSTAND ERROR MESSAGE!!
 
Here is the current code i am trying to run. i see nothing wrong with it but the errors are listed below #include<iostream> #include<string> #include <stdi...
[2 replies] Last: i fixed several problems, this is what i have left. #include<iostre... (by Sellias13)
by alhanz
Giving name to a thread
 
Hey everyone, I'm trying to give a thread name to my threads every time it generates. The problem I face now is that I dunno how. I make an array called thread...
[4 replies] Last: you dont needs names you can reference them through their PID (by TheCreator)
SFML Code::Blocks Problem
 
I am setting up SFML with Code::Blocks for future use and I see to be getting an error. During the set-up project, I've selected the file where all the SFML st...
[3 replies] Last: Just create an empty project, then add the libraries to be linked your... (by anonymous23323124)
Problem building BOOST for Mac OS X 10.3.9
 
When building BOOST I get the error: cc1plus: warning: `dwarf-2': unknown or unsupported -g option ...over and over again...there are 800+ targets...is that...
[no replies]
just need some clearing on this.
 
2 questions here: 1. ok so if i want to make a game using opengl i have to program everything in C++ (like what my character does or gravity, ect.) and all...
[2 replies] Last: IF (and only if) you know something about physics you should know this... (by eraggo)
sphere collision
 
I am working on a school assignment and I am stuck on one part. I need to change a if statement bool SphereCollision(Vector3 p1, float r1, Vector3* v1, float m...
[3 replies] Last: I got it figured out. (by stretch)
Allocation check macro
 
Hello, i just would like to know Your opinion about an allocation check macro that i wrote: #define ALLOCATION_CHECK(allocation,errormsg) \ if(!(allocation)...
[6 replies] Last: Thank You guys for the hints ! (by Avithohol)
How to check if array is empty or not
 
Hi People!!! I need your help with a program which gets input from a file which contains list of the students and their 10 numerical grades and calculates t...
[2 replies] Last: How to check if there are less than ten elements for input and assign... (by andywestken)
MSVC2010
 
I have been programming with C++ for 4 months now using MV2010 express. Coming from a more experienced programmer what are the pros and cons using MSVC. Should ...
[3 replies] Last: As an IDE, Visual Studio is pretty much my all time favourite. I also ... (by anonymous23323124)
Change color of selected text
 
Is there any library or code to change selected text to some color? I know <windows.h> is working for changing color but it only change the whole thing to the ...
[9 replies] Last: ah ok, I finally solved by using SetConsoleTextAttribute( GetStdHandle... (by deathmoon)
by loift
manipulating individual bits of a file
 
I need to do many manipulations on a file on a bit level. Is there a better way to do this than: (1)open the file in input mode (2)open a second file in output ...
[1 reply] : You can read only one byte each moment, and, using random input output... (by Syuf)
August 2011 Pages: 1... 89101112... 29
  Archived months: [jul2011] [sep2011]

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