General C++ Programming - July 2014 (Page 11)

Snake Game movement and tail
 
I would like for the snake to move in the direction that it was clicked until different up,down,left , right key is push instead of it only going when the key ...
[1 reply] : ugh...I wouldn't suggest console games like this. Though if you reall... (by giblit)
by jegge
hi all of u,,can understand how to get his equation is done
 
Write your question here. Write a program to prompt user to enter 3 sides of a triangle. The program then determines whether the dimensions could form a valid ...
[1 reply] : First thing to do is sort your sides. Make a the smallest, b the m... (by Duthomhas)
find and replace employee information in text file
 
I am completely lost on how to search for a word in a text file and replace it with a new one. Such as employee address, or first name, etc. Here's my code:...
[3 replies] Last: After getting all the employee info, let the user change what he wants... (by iQChange)
by poteto
sdl2 copy and paste fallback renderer.
 
Well if you don't know, there are multiple renderers in sdl, and on some don't work on certain computers, so people use a fallback ex: "accelerated renderer -> ...
[16 replies] Last: Find the smallest example that produces this error. And post it. You c... (by Lachlan Easton)
helios test
 
I noticed in the thread started by helios that the log-in menu at top right disappeared. http://www.cplusplus.com/forum/general/138180/ If the same ha...
[1 reply] : Works find with newest version of chrome (Version 36.0.1985.125 m). Al... (by giblit)
Edit distance standard dp problem.
 
Question->http://www.spoj.com/problems/EDIST/ .I used dynamic programming to solve the standard edit distance problem.I have checked all the corner cases.But ...
[5 replies] Last: thanks @ keskiverto i got the mistake in my logic. (by ankur12106037)
by Laww
Virtual function not behaving like it should
 
Hi, not sure I did well posting here instead of the Beginners' subforum. Oh well. Long story short, I have these two classes: class Motion { protected : ...
[2 replies] Last: You are a life saver!!! Thank you very much :) (by Laww)
What can be improved in this program for compiling it?
 
This is an online interview problem and I came up with the solution below. The interviewer came back and said my solution was not compiling and I was not select...
[2 replies] Last: Thanks @wildblue. I missed that. (by funprogrammer)
Double Output Error, Please Help
 
Hi, I've been following a youtube-based tutorial on a c++ program using Eclipse Luna, but despite seeming to have done everything right, I still get an unwanted...
[4 replies] Last: Thank you!! What happened was that the curly brace you mentioned was i... (by dtrumbore88)
Arrrays
 
Does anybody knows how to store 10 elements in an array and delete the duplicate terms ? ( its a single dimension array )
[5 replies] Last: actually i meant if we taking both the cases where the inputted dupli... (by cire)
Where to place C++ Struct ?
 
Hi I'm just trying to break up my program and am unsure how to handle a struct in c++. I have a function I am calling which may or may not be in the same fil...
[2 replies] Last: That's an excellent example. Thank you very much. I used the void cas... (by dominover)
C++ program trace
 
Hi. Is there anything like this to trace c++ code? http://www.pythontutor.com/visualize.html#mode=edit
[1 reply] : I never saw one like this. I know some online compilers, but "debbugge... (by iQChange)
failed to submit isochronous transfer x :-12
 
hi. after I have installed libfreenect on Windows8 64 Bit Visual Studio prof 2012 Kinect XBOX360 I get this error: failed to submit isochronous tran...
[no replies]
Array-Based Implementation of Linked Lists
 
I first want to say that i am trying to solve my code without Pointers. My goal is to.. 1. Construct an empty 2D array with a capacity of 25. (list ;) 2. ...
[1 reply] : > what to fix or where to go from here. ¿is there a problem? void... (by ne555)
I have to end a program in a void...
 
I have a void that needs to end a program but a break and return 0 both won't work. Instead I have it cout (1/0). It works but is there an alternative? #i...
[3 replies] Last: And in this case, break; can be used too. (by iQChange)
Vector out of range exception
 
I'm trying to do some operator overloading, the function is supposed to add the values at index of two vectors and place the result in the returning vector. T...
[5 replies] Last: I fixed it, I just wasn't taking everything in to account! As mentione... (by DomBavetta)
Please help me with my C++
 
Hello everyone, My name is Alana and I am taking C++ for summer. This is my first year of programming and today I got my first homework. It is due tonight at...
[5 replies] Last: Well, if this was due at 11:59pm then you probably shouldn't have wait... (by jheard901)
Using DirectShow to Control Flow of a Program
 
I am having trouble understanding what I need to do to halt the flow of a program until a video file finishes playing. So far I have accomplished getting the vi...
[1 reply] : Solved this through adding a boolean var to check if the video has fin... (by jheard901)
by Dione
Path Problem
 
hi guys, i am a beginner in c++, so I faced my first problem relatively fast. I want to access a .wav-file that is located in the sounds folder of the teamspea...
[8 replies] Last: I applied your suggestion to my code and ..... it perfectly works now ... (by Dione)
Please Please Please Please Help!
 
I have to create a program that will take a data file named current.txt as an input and the produced output will be saved into another file. I am almost done wi...
[11 replies] Last: Might just be an honest misunderstanding from a newbie too. There's r... (by cnoeval)
July 2014 Pages: 1... 910111213... 26
  Archived months: [jun2014] [aug2014]

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