General C++ Programming - June 2010 (Page 12)

siae of pointer
 
what is size of pointer in 16 bit and 32 bit and 64 bit
[1 reply] : It can vary, there is no rule to say what it ought to be, but in many ... (by kbw)
Call a dll from .CPP
 
Hi, This is vimal. I am having a dll and its header file which is build by Lab View.I want call this...
[1 reply] : What errors did you get? Could you post code that causes errors? (by Null)
Searching in tree structure problem
 
I have a problem with searching in a tree structure data in C++. My code is below. Every node in the...
[5 replies] Last: Thanks Rollie. I didn't know that strcmp returns 0 when parameters mat... (by alihemmati19)
by dkaip
Delete new line from string
 
Hello. I am reading lines from file and convert in wstring. But i want to remove the new line contr...
[3 replies] Last: The file is in UTF8 forma, and the end of line have the CRLF controls. (by dkaip)
by declan
Do I have to release heap memory?
 
Let's say I have a pointer like this: int * meow = new int ; Then I create some other array...
[7 replies] Last: Alright, thanks! (by declan)
ifstream as a member function
 
any idea why it doesn't work to call ifstream from a separate class and then manipulate the file wit...
[4 replies] Last: Good deal. Thanks. (by marlowe)
exit() problem
 
i run the codes as follow: if(length != np*sizeof(float)*6) { cout<<"The size of file "<<_lnam...
[9 replies] Last: I add one file with wrong size to the list, so when the searching reac... (by RobBinS)
Errors after compiling
 
hi all, the following code is for a SLR parser... after compiling i got some strange errors - co...
[2 replies] Last: CrossBosster already posted this on another forum where it was answere... (by Athar)
constructor expects string fails but char * is OK!
 
my code will compile... ok, as you can see I have a class taking a struct in it's constructor. t...
[2 replies] Last: When the compiler sees bob (wotsit()), it thinks that the wotsit() ... (by bigearsbilly)
by cg9289
Extracting two byte samples from a binary file
 
Hi, I am trying to extract to byte decimal values from a binary file for anaylsis. my current cod...
[4 replies] Last: I've already given you three examples of that in code; two here and on... (by Duthomhas)
Const Casting
 
void Insert_Node(const Class_A & class_A) { Class_A * data = NULL; data = &class_A; }...
[1 reply] : const Class_A* data = &class_A; (by jsmith)
boost::thread thr(boost::bind(sort,iter, iter))
 
Hi, Please advise how to bind std::sort with boost::thread. I'm trying to do: boost::thread...
[2 replies] Last: You are right it's possible but I don't want to create a functional ob... (by MaximNM)
C++ Final Program Assisttance Needed
 
I'm a c++ student who is very lost. I have a final program to do but I don't know when to start. If ...
[11 replies] Last: I'm a c++ student who is very lost. I have a final program to do but ... (by m4ster r0shi)
Exceptions when trying to access beyond the array bounds
 
what all errors is possible if u write past the array bounds?? This is one of the interview quest...
[5 replies] Last: Buffer overruns (aka writing beyond array bounds) are one of the main ... (by jsmith)
declaration of binary variables
 
hi, sorry for posting this here since this might be a beginner's question: I need do declare vari...
[4 replies] Last: If you want that, you have to store it as an int, not as a double. A d... (by m4ster r0shi)
Errors in C++ code after upgrading to VS 2008 from VS 2003
 
I am having a app code written in C++,this code was written using VS 2003 IDE.This code was in worki...
[7 replies] Last: I think this: Log(const &Log); Should probably be this: Lo... (by Galik)
by ozair
palindrome problem
 
I wrote a function that takes an integer as a parameter and returns a Boolean variable stating that ...
[2 replies] Last: i don't see the need for all the math, this is a simple example that r... (by sunslayer)
ifstream & .csv
 
I have a program that needs to perform the same function on several .csv files. My question is if th...
[5 replies] Last: Some snippets just make me feel uncomfortable. This is one of them. ... (by marlowe)
by helios
Fast alpha blending
 
I'm optimizing an alpha blending routine I have, and I think I reached the limit of optimization wit...
[7 replies] Last: Okay, I think I'm going with intrinsics. I only have one problem. I fe... (by helios)
OOP and OpenGL
 
Hi all, Does someone see any problem with this piece of code? Does it have anything to do with t...
[1 reply] : I found out what it was (in case someone is interested...) I had to... (by attaboy)
June 2010 Pages: 1... 1011121314... 18
  Archived months: [may2010] [jul2010]

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