General C++ Programming - November 2012 (Page 16)

Hashtable
 
Why is it giving error while trying to compile this part? I do not understand. vector<HashEntry> array; Here is my full code. template <class HashedObj>...
[2 replies] Last: I forgot both using namespace and vector header. Thank you very much, ... (by genclik27)
Please help me in this graphic!
 
Help please! I need a code that draw this graphic ... http://s8.postimage.org/k3eklaq79/image.jpg
[1 reply] : try SDL - www.libsdl.org in particular, look at this page: http://www... (by theranga)
List of Lists
 
I'm trying to work with a list of lists for a node array, and I can't get the iterator to work correctly. The list it the Standard version in the library. I can...
[5 replies] Last: then it should probably be data->push_back(edge) (by theranga)
Fastsort Algorithm
 
Does anyone know an implementation for the Fastsort algorithm? I found a bit about it here: http://www.slideshare.net/JustinTimb/the-flashsort-algorithm b...
[3 replies] Last: sorry about getting the name mixed up @toum, thanks. (by theranga)
enum to string (1,2)
 
hey guys. i tried to get a string output for an enum. this is what i have so far, but it's not working. maybe you can help me with that or have a better idea. ...
[21 replies] Last: You may want to consider writing a general function that returns a str... (by Smasher)
Graphics Library for beginners?
 
I thinking about doing SFML, Allegro or DirectX 11. But I'm not sure which one to do. Which one would be more beginner friendly and would be easier to learn in...
[1 reply] : SFML. Even the name comes from "Simple Fast Multimedia Library". Sound... (by Ramses12)
I Need C++ graphics
 
What C++ does with graphics? What are header file(s) for C++ graphics if any? ...i would like to beg anybody who is possessing some knowledge on the subje...
[1 reply] : Could you be more specific on how you need graphics. C++ doesn't have ... (by closed account 2NywAqkS)
compiling crypto++ with mingw
 
I want to get this library working with mingw but am struggling when compiling the library. I've cd to the folder where crypto++ was extracted and ran mingw32-m...
[no replies]
Calculator problems...
 
I tried to complie this in both VS c++ 2010 and bloodshed dev-c++ and it doesn't work in eather of them... Can someone please help me? I'm a complete beginner i...
[7 replies] Last: Thanks everyone! For std::cerr and std::cout it's just that the termi... (by kungbore540)
log function
 
Can someone please explain to me in simple wording what log function does as this is not clear to me at all: Returns the natural logarithm of x. sourc...
[4 replies] Last: Thanks (by morando)
is it possible to add two 2D arrays to create a larger array?
 
I'm writing a program where certain options from arrays are only available when certain conditions are met. I'm a bit stuck on one part. thingy1 = { "...
[8 replies] Last: I know, but for the project I'm actually not allowed to use strings fo... (by TastyCarcass)
SFML help please!
 
Okay, I've been working on this for a few hours, trying to learn SFML, but it's not working! I'm pretty sure int main() is not running for some BIZARRE reason....
[8 replies] Last: None that I see... How would I get them to show? If you're talking a... (by KyleMiles)
Trying to include a sorting array in my program
 
Hi, I'm a complete noob to computer programming and finding my 5th assignment very difficult. Sorry this is so long! I've been asked to: Write a program tha...
[1 reply] : Take your original code. Change if (nums[b-1] > nums ) to if (num... (by Moschops)
by shafh
Parsing array to function including size
 
Hi everyone. I am currently trying to parsing an array to a function as a parameter. I have been considering this article: http://www.tutorialspoint.com/c...
[11 replies] Last: But vector is dynamic data structure. Can't I simply parse an array? ... (by Catfish2)
came from 3d to game Development...
 
came from 3d to game Development... Hi... I have 5 years of experience in 3d arch decoration, character modeling , animation and visual effects... but...
[no replies]
by Ritu15
read and write a file using multiple objects
 
I want to read and write a file having multiple records. Each record has to be accessed by an object,hence the requirement of multiple objects in cpp.
[6 replies] Last: i dont know the code how to write......please tell in the entire code ... (by Ritu15)
N idea (1,2,3)
 
Hi; I was confused on how to go about deleting an element from an array at a specific index. I would like the size to reflect this and not have an empty spac...
[42 replies] Last: You would be well advised to ignore this troll's posts. .............. (by Imadatobanisa)
To move or not to move
 
Do you know how I can I move what I have located using my loop to the back of the array and have it be array = ""; So when the array see's the space it just i...
[6 replies] Last: > JLBorges, I think you've gotten things the wrong way around in your ... (by JLBorges)
locale variables
 
int main () { int i = 9; for (int i = 0; i < 10; i++) { // Am i able to use the "higher Level" i, not the for-i ?? } } Thanks for ...
[6 replies] Last: Well then, excuse me for being blunt, but change your style. Reusing ... (by MikeyBoy)
by lmd141
Pointer to function
 
Hi there, I'm fairly new to C++ and I'm attempting to learn how to use pointers. I have the following file that creates coordinates and then moves them in rando...
[4 replies] Last: In the following line: sf1=sigmaf_point(coords_fluid ); you are a... (by MikeyBoy)
November 2012 Pages: 1... 1415161718... 51
  Archived months: [oct2012] [dec2012]

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