General C++ Programming - January 2012 (Page 7)

best way to deploy program which loads images
 
I have a project, which uses gnomes clutter for GUI, and it loads png images from a specified location on disk. I want to be able to for example run the progr...
[1 reply] : If image.png were to be an embeded resource? You'd load the resourc... (by Athar)
vector of Vec3f
 
Hello, Is it possible to use a vector of vec3f? vector<vec3f>> texsT; texsT .x=1; texsT .x=1; ect... Thanks
[1 reply] : Yes. You can have a vector of any type, as long as that type is copya... (by Disch)
Making this button work.
 
I need to make this button save the text in the textbox to a text file and then open a new window.. //Main.cpp #include <windows.h> #include "HelloWorld.h" E...
[no replies]
set_union in STL
 
plz someone tell me how can i use set_union operation for following code.. #include<iostream> #include<cstdlib> #include<set> #include<algorithm> using na...
[3 replies] Last: thanks Peter and Cubbi (by arjita07)
STL containers. Search performance
 
Hello I'd like to know which STL container has the best performance in doing searching of elements. Thanks
[7 replies] Last: The BSD 4.3 implementation of the ARP cache (reduced radix tree) is wh... (by JLBorges)
Reposting the error in my code ...
 
I am reposting my question as i am not getting any answers or corrections in my code . Please help me its eating me up ! Here is the question:- Problem 2: The...
[17 replies] Last: Oh thanks 'sockless' , that link was GREAT !!!! Now you have made my ... (by Maggi Iggam)
Header and source files implementing classes.
 
I am trying to get a header file and source file to intergrate into a main c++ file.The class is in the header file, the functions are in the source file. I can...
[2 replies] Last: Thanks greenscar for your tips and direction. I reviewed the class tu... (by KKorn429)
programming using stl
 
this is the program of student list using stl finding maximum,min marks nd sorting on basis of ID ..max min are working fine but error ocuurs when i add aort.. ...
[4 replies] Last: k.. thanks a lot .. (by arjita07)
by paxgs1
error: cannot convert 'const std::vector<int, std::allocator<int> >' to 'int' in initialization
 
Hi. If anyone can help I will be eternally grateful! I'm editing someone elses code and this throws up problems: bool ConstraintRemover_UnderForce::hasOn...
[2 replies] Last: @paxgs1 .essentially the probrem ts with the defination of the constra... (by polar)
by TuRnEo
Psychological barrier?\ How wide is C++
 
Hello. I guess I've always had that, when I plan on starting something, I think of the consequences and the reasons. I want to learn the C++ computing languag...
[4 replies] Last: Sad but true... And there is also peoples who come from Java and co an... (by aquaz)
by ajac
program to convert from textfile to VRML form
 
i am currently working on a project where,whatever function names are listed on a text file,i am supposed to convert it to a VRML(Virtual reality modelling lan...
[no replies]
I need help copying an array char by char
 
I need help copying an array char by char for homework assignment. /***************************************************************************** * Function ...
[2 replies] Last: This is in C-C++ std method: #include <stdio.h> #include <stdlib.h> ... (by Helegurbann)
ASCII File reading
 
So, Im writing a program, and it reads a file that contains a few variables. Is it possible, and if so, how, to take a variable from that file that the program ...
[no replies]
by rucafe
problems using random number generator
 
I am using the boost library to create random numbers in a function. Here is the function I have written which is used in my main program: #include "stdafx....
[no replies]
Functions
 
Can someone help me with this please? Write two functions, one of which returns the Fahrenheit value of a Celsius temperature, and another that does the op...
[4 replies] Last: Alternatively you could enter the temperature in k ( kelvin) and then ... (by buffbill)
by rucafe
problem with function call
 
Hello, I am writing a program which sorts a bunch of data and performs various physics calculations. Here is my code so far: #include "stdafx.h" #incl...
[6 replies] Last: Ok I think I understand now. Thanks a lot!! (by rucafe)
Favourite Mistakes
 
Here is one that I've made a number of times - I'll let you figure out what is wrong with it. std::vector<ClassA> a; std::vector<ClassA*> pa; for(unsign...
[12 replies] Last: I think it's a holdover from C back in the day. postfix makes more se... (by Disch)
Question about static variables
 
Could someone please explain to me why the following code prints '654' on line 11 instead of '456'? It just doesn't make any sense to me: #include<iostream> ...
[6 replies] Last: Undefined behavior in this case opens the way for compiler optimizatio... (by Disch)
PLEASE HELP!
 
I'm suppose to write a program that takes a c-string as input and then it must check if the c-string consist of a single blank space between the words, if not t...
[5 replies] Last: Take a look at the string erase function. We're not going to do your h... (by Moschops)
Function Call
 
Can someone give me some examples of function calls in C++ programming? Thank you
[3 replies] Last: A function call is the act of using a function. On that page, the firs... (by Moschops)
January 2012 Pages: 1... 56789... 36
  Archived months: [dec2011] [feb2012]

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