General C++ Programming - July 2010 (Page 2)

Compiled App. does msvcr100.dll Error
 
Hallo. I had written and compiled aplication in C++ using WinApi. when I run it on my PC it runs perfectly but on the other pc it gives an msvcr100.dll Error. ...
[1 reply] : http://www.microsoft.com/downloads/details.aspx?FamilyID=a7b7a05e-6de6... (by helios)
map of lists of vectors
 
Hi all I would like to do a map of lists of vectors I know how long the vectors will be but I don't know how many vectors it will be for each key. Later I w...
[11 replies] Last: I always use this chart (http://www.liamdevine.co.uk/code/containers.p... (by bartoli)
by wolvo
passing filename as command line argument
 
Hi there I am working on a code where from command line user gives the name of the file in which output should be written. The file name is in array av . I am ...
[9 replies] Last: Thanks for the help guys (by wolvo)
Djikstra's algo
 
Can ay1 pls provide me the sample code 4 a basic Dijkstra algo? I understand how the algo works but need help to know where to start. Thanx.
[17 replies] Last: Then you need to find a Linux friendly graphics library. That's going ... (by Galik)
[template] adding 'const' does not work?
 
Note that the second line in main() output 1 which means the returned type is not 'const int &' but 'int &'. But only the first template is enabled now. Why it ...
[1 reply] : Looking at the implementation of boost::is_same, it only takes into co... (by jsmith)
by wolvo
passing filename as command line argument
 
Hi there I am working on a code where from command line user gives the name of the file in which output should be written. The file name is in array av . I am ...
[1 reply] : #include <fstream> int main(int argc, char *argv ) { using n... (by kbw)
while loop
 
hi, Can anyone tell me what this loop does, i'm new to C++: while(a) { //some statements } i'm interested in " while( a ) ", i mean I am used to...
[5 replies] Last: Hmm....! Thank you very much! (by manaila)
static variables in function
 
Hi, I'm not sure which influence static variables has to cache performance. This may be bad programming, but I'm just curious to know whether this can ha...
[2 replies] Last: Well Thanks for the explanation. It was just what I needed :-) I un... (by jesperd)
by zyspt
obfuscated code
 
i am have given the following code. all the coding looks weird to me, so how do i translate the code back to its original form?? #include <iostream> using n...
[3 replies] Last: this looks like a homework assignment to be due tomorrow :D (by unregistered)
'Bitmap' was not declared in this scope
 
Hello, anyone know what is the header for Bitmap? When i try compile Bitmap myBitmap; i get the error: 'Bitmap' was not declared in this scope. Im ...
[1 reply] : don't multi-post: http://www.cplusplus.com/forum/windows/26726/ http... (by Bazzy)
doubt about new operator
 
1)int a = 100; -> allocates memory at compile time in stack 2) int *q = new int(100); -> allocates memory at run time in heap With stmt1, we can directly...
[1 reply] : Statement 1 allocates space on the stack for a and assigns it value 10... (by kbw)
Problem with convert and data input
 
Hi everybody! I'm a newbie to C++ and I need some help to improve my skills in c++. *When you make input data "cafe monde" into a string variable, the var...
[2 replies] Last: For the first problem use getline: string input; getline(cin,inpu... (by Athar)
math.h error
 
hi, I am trying to use sqrt() and log10() of math.h and it is giving me unexpected results. for instance i tried finding out what log10(temp) was and temp wa...
[10 replies] Last: Let's see which one is more likely: 1. [A set of functions that imple... (by helios)
by Gilmar
CFileDialog properties
 
Hi, I hope you can help me on this. I have a class in which one function opens a CFileDialog to save a file. Is it possible to access the textbox of the dial...
[no replies]
Interfaces
 
Hi, I am developing interfaces to a module. the problem i am facing is as mentioned below: the class hierarchy is something like this: class Iface { ...
[5 replies] Last: Yes, that is what the Interface Segregation Principle states. Consi... (by PanGalactic)
by poochi
Template puzzle question
 
I started to do some reading about template, found interesting example template <class T1, class T2> bool GetItUP (T1 a, T2 b) { return (a>b?a:b); }...
[1 reply] : Why is ShowMeMap() a template function if line 8 makes assumptions abo... (by helios)
Pre processor Directive Question
 
I am wondering how i can use a pre processor directive to replace strings. in the code mentioned below: i want to something like this: #define yours...
[2 replies] Last: Is this any good to you? namespace yours { int wibble; } ... (by Galik)
Pointers
 
Hi, I need some help using pointers, and having the user input a 12 character word. Store this word in a char*. Next ask the user for an integer. Manipulate ...
[15 replies] Last: no problem! =] (by soccermiles)
post vs pre increment operators
 
I was wondering if there was an overhead involved in using post increment operator instead of pre. If the compiler optimizes the code if there is no assignment ...
[3 replies] Last: The compiler can and will optimize the temporary away for simple objec... (by Athar)
My linker doesn't like D3D external symbols
 
I have been trying to learn DirectX 9, but unfortunately, I can't compile any of the later files. I think it is something in the settings, but I checked and cou...
[no replies]
July 2010 Pages: 1234... 20
  Archived months: [jun2010] [aug2010]

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