General C++ Programming - May 2011 (Page 2)

Stack error in char array
 
Hi: I have a socket client running which has a char array of size 512 mentioned. I have a loop to receive the message from the server, when the loop exits I ...
[1 reply] : Does RecvData() put a zero at the end of the array? If not, line 13 wi... (by helios)
by bcppny
using own libraries / Borland CPP Builder 5
 
I want to create and use my own libraries using Borland CPP Builder 5. I prefer to allways make stand alone exes, so do not want runtime libraries/DLLs. I...
[2 replies] Last: I wonder why this is necesssary. I do not add other libraries to my ... (by bcppny)
Run Time with Lambda Function
 
I apparently changed something (maybe a compiler setting?) other than what is shown here and that is what was responsible for the slowdown. I still cannot f...
[7 replies] Last: Thanks for the responses. Sorry for the long delay. This is a side p... (by robitussin314)
Classes Problem
 
I cant really understand why im getting a ambiguous error in line 97. Can anyone tell me what i did wrong and how to fix it? Heres the code: #include<i...
[8 replies] Last: also, why are you calling Fraction.operator*(n,d); overloading ... (by closed account zwA4jE8b)
Create Your Own file stream
 
Hi Every One this is my first post :) I was wondering if there is a way to create my own file stream. My goal is to be able to manipulate the file system wit...
[3 replies] Last: Why don't you read the source code of boost::filesystem? Essentially ... (by kev82)
error LNK 2005... struct already defined....Please help
 
I'm getting this error... 1>drive.obj : error LNK2005: "struct info h" (?h@@3Uinfo@@A) already defined in BubbleSort.obj 1>HeapSort.obj : error LNK2005: "stru...
[1 reply] : Duplicate thread; see http://www.cplusplus.com/forum/beginner/43932/ (by Moschops)
Understanding Memory Addresses and Variables
 
I'm confused. When I read about how variables are stored into memory, they said that the memory location, where the variable was stored, was assigned a memory a...
[8 replies] Last: I think the only part of that actually mandate by the C++ standard is ... (by Moschops)
SMTP Library
 
Hi, I am looking for a smtp library with SSL/TLS support for Windows. Although I have search the net for it and there are some like libesmtp, msmt, libvmime bu...
[2 replies] Last: I am doing this because compiling these libraries using VS would not ... (by writetonsharma)
by Wanher
GEOMETRIC SHAPES (GRAPHICS)
 
Hello! Friends i want to made a project using c++ graphics in this i want to show some geometric shapes which can be 2-D types or animated if any one of you c...
[3 replies] Last: And don't be put off if it's a pain to get started with it. Just downl... (by anonymous23323124)
Problem with Calculation
 
Hey guys , i have a small problem regarding calculation in c++. Here is an example below int main() { int f = -32; int d = 2; int re = d - f...
[2 replies] Last: When you say "normal calculator", I'm guessing you mean non scientific... (by anonymous23323124)
Sorting
 
Hey guys have a small problem. I have this code where i need to write a function. This function, Checks every consecutive pair of items in the container, ...
[1 reply] : Why do you have two loops? For a list of n things, there are n-1 conse... (by kev82)
system() question
 
im trying to learn all the different things u can put in the ()s in system(). an example of one would be... system("PAUSE") what this does is pauses the pr...
[4 replies] Last: couldn't you just set it up to autorun firefox and whatever else? ... (by bigbass1997)
by cookie
I need help parsing!!!
 
So im trying to make a simple drawing program that reads in (translate (rect 10 10 10 10) 50 50).... what im trying to do is split it so that the 50 50 goes wit...
[3 replies] Last: what if i dont know the input? What do you mean by this? what i... (by shacktar)
create graphic elements in program
 
Hello, I'm trying to create a graphic element in program with dynamic memory allocation, I just finished a semester learning about C++, but we didn't cover this...
[6 replies] Last: C++Builder's framework is called VCL. I know that I have to delete w... (by Athar)
Trigonometric functions
 
Hi There, I am using this program to find values of some trigonometric functions. However, when I try to print (sin 90 for example) it gives me 0.893997 when...
[5 replies] Last: It worked. Thank you very much CreativeMFS and Moschops. (by sanehatter)
cosine graph
 
I am still new at programming and I am working on a assignment to draw a cosine graph. I have most of the code written but I think I am getting a infinite loop....
[11 replies] Last: I got it now. Thank you all for your help. (by stretch)
Strange GLUT ptoblem.
 
Here is the code i'm trying to run: void Minecraft::display(void) { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glBegin(GL_TRIANGLES);...
[7 replies] Last: The problem is that the glutMainFunc(display); isn't working, i do thi... (by halvors)
by LB
Templated Template Specialization?
 
Is it possible to template a template specialization, eg to have 'sub' template parameters for a specific template specialization? EG, using A<int>, A<double> a...
[10 replies] Last: You could: template< typename T, size_t N > class MyClass; templat... (by jsmith)
Returning self as a property Costum Class
 
is this possible. (Pseudo-code) class myclass { int a; int b; } ... myclass a; a.a = 13; a.b = 21; printf("%d",a); (I wanted it ...
[4 replies] Last: If you want to use it often in more than just cout and printf you migh... (by LBEaston)
by atomen
Libsndfile Problem
 
Hello! I've been recently trying to learn some sound programming and everything that revolves around it so I decided to use libsndfile since it seemed so ea...
[4 replies] Last: SNDFILE sf = NULL; if((sf = sf_open(soundFile, ... (by Disch)
May 2011 Pages: 1234... 32
  Archived months: [apr2011] [jun2011]

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