General C++ Programming - June 2012 (Page 15)

100% of my cpu :(
 
ok i know this is may seem malicous but its just some fun with my it teacher but any ways heres the code me and a couple others made a while back but never real...
[6 replies] Last: Nope .. as said by kbw .. you show open the file out side while loop ... (by bluecoder)
adding numbers in permutations...
 
I am given a 2D array of ints need to find the maximum number generated when adding only one number from each col/row at a time. EXAMPLE: _ A B C D...
[4 replies] Last: This is one way (recursion) to generate all possible combinations. The... (by JLBorges)
Process returned -1073741819 (0xC0000005)
 
What does this error mean? I wrote a program with recursion, and the number of recursions before I get this error is 354. Are you only allowed to have recursion...
[17 replies] Last: I think that at that very number (113383) the program crashes becouse ... (by viliml)
Scoring
 
Guys, I need help on how to make my program add score whenever I guess the correct word. It should add 10pts. for every correct answer. Here's the complete prgr...
[9 replies] Last: YEAH! You solved it!!! Thank you very much for the patience :D Thank y... (by markgreen)
STL vector<MyClass> problem
 
Hello! I am working on a basic game in SDL/OpenGL its a tilebased tower-defence game. I was gonna make a function that loads a tilemap to a vector that ha...
[4 replies] Last: > I will take a look at your reply tomorrow im too tired now. Yes. T... (by JLBorges)
by hbNp
Making Algorithms Using Random Numbers
 
Hello! I'm new to C++, and I'm trying to create a program that will use an algorithm which adds two random numbers that I have generated within a specified r...
[2 replies] Last: Sweet. Thank you! I managed to figure out extra errors that I had hidd... (by hbNp)
by sanyam
Socket protocols for http
 
Hi. I'm trying to send a html form(that uses http POST method) data without clicking the submit button and instead sending the message through a c++ socket. Is ...
[3 replies] Last: Well, as you no doubt know, HTTP is a text-based protocol. So you "jus... (by andywestken)
How to display textures in glut tutorial (2d or 3d)
 
Hello, I'm looking for a good tutorial on how to make a texture and attach it to an object WITHOUT using glaux or someone else's header (this is mainly targeted...
[no replies]
by Rayvan
Dynamic Array,HeapSort need help please..
 
Could someone please help me with a heap sort that would work with an dynamic array,i have the dynamic array already done and i tryed implementing a heap sort f...
[5 replies] Last: Surely it's just a matter of implementing the algorithm, there's a des... (by kbw)
c++ vector swizzling cont'd
 
Hi, I got a little stuck while implementing vector swizzling. I tried to templatize the vector classes so that it can be based on float, double, int etc. How...
[6 replies] Last: hmmm ok, this is going to be tedious, but at least it will work :) (by Yours3lf)
Drawing a line to a handle process
 
I want to draw a line in a solitaire process, or any process in general, but it doesnt work. I've managed to get the code from a drawing tutorial, but im not ex...
[2 replies] Last: thanks it works! i've just changed to GetDC(app). (by psynchronized)
Constucting a vector in a class - need help
 
If anyone has the solution for how to accomplish this, that would be awesome. What I want to do with the below code is to construct the vector containing 'Abili...
[14 replies] Last: Because he wants to use polymorphism. If you std::vector< Base > v; ... (by ne555)
by tw3tye
Passing struct intro function
 
Hello. Title says it all, i got problem Passing struct intro function to change its values. (this is just copy from my code if its lacking something i will add ...
[4 replies] Last: Love the humor, i was prototyping. That's why it looks like pile of ju... (by tw3tye)
by soranz
Rotating an array of strings issue...
 
Hello ! I'm trying to do a rotation of strings but I'm having trouble with the last element. Everything rotates the way I want but the final element always has ...
[5 replies] Last: Fixed it ! for(int i=0; i<=6; i++) was a typo sorry (program would ... (by soranz)
by dthkai
Class Templates... With Classes?
 
Hi everybody! You know... recently I started a research on Templates, and I found this, but I don't know exactly what it has to do, it is part of a test I'm ...
[4 replies] Last: cVector3df& operator+ (const cVector3df& rhs) Warning: returning re... (by ne555)
by Canvas
SFML st::texture out of scope :(
 
Hey guys, im trying to get a image to display using SFML with C++, here is the code gState just displays the image gState.cpp bool gState::init() { l...
[1 reply] : I dont think its a scope issue, the texture is a class member so as lo... (by naraku9333)
Curious SDL question - What should it return
 
Hey everyone, haven't posted in a while! Just a curious question... I've been working with SDL (my editor is code blocks for C++) and every time my program t...
[3 replies] Last: hmm yes, i saw how to do it as a GUI application, but how would i do d... (by SuperStinger)
which method would you recomend
 
(thread moved from beginners to general) Hi, im relatively new to c++, doing great so far, and putting the hours in ;) Im building an app which upon logi...
[4 replies] Last: cheers iseeplusplus! checking it out now! (by hushpromo69)
Segmentation Fault. Please Help
 
My program prints out segmentation fault. It sounds like my pointer tries to access invalid address. I point out the part that may cause problem when I run gdb....
[5 replies] Last: Why don't YOU take a look at that link, and maybe you will see that so... (by viliml)
Need help with type conversion
 
Here is the original code: // Get the time wchar_t timeString ; GetTimeFormatEx(NULL, 0, NULL, L"hh'-'mm'-'ss'-'ms", timeString, _co...
[3 replies] Last: yea, I didn't notice kbw's post untill now, so actualy you can make it... (by viliml)
June 2012 Pages: 1... 1314151617... 33
  Archived months: [may2012] [jul2012]

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