General C++ Programming - June 2017 (Page 5)

need help creating player movement for a game, need help
 
hey guys i just needed some help creating a player movement functiob. the game is a box where the player will need to run away from the ghost for as long as ...
[1 reply] : I recommend steering behaviors (https://gamedevelopment.tutsplus.com/s... (by Uk Marine)
Strings not working (sometimes)
 
In one of my header files, I have this simple thing: #ifndef COORDSYS_H #define COORDSYS_H #include <string> class coordsys { public: co...
[2 replies] Last: Thanks bro (by DiamondWolf)
by Ann78
Loading processor.
 
Can anyone tell me why this keylogger loads CPU for 50%? Where is the problem in this code? #include <iostream> using namespace std; #include <windows.h...
[12 replies] Last: Re-writes are how we learn and grow. Its part of the package. Do it... (by jonnin)
How to program atmega32u4?
 
How to program atmega32u4? Here is the atmega32u4 datesheet:http://www.componentschip.com/details/Atmel/ATMEGA32U4.html is it right? Install t...
[1 reply] : https://learn.adafruit.com/atmega32u4-breakout/intro (by closed account 48T7M4Gy)
playsound returning weird error
 
I keep getting a weird error when playing a song. #include <iostream> #include <fstream> #include <cstdlib> #include <ctime> #include <cstring> #include <alg...
[8 replies] Last: it won't work until you add Winmm.lib to your project, this way you wo... (by benhart)
Setting up OpenGL project with Vim
 
I recently switched from Visual Studio to Vim (I decided Vim's environment felt a little more pleasant), but I'm not too sure how to set up an OpenGL project wi...
[2 replies] Last: Thanks for the quick reply! I'll check both of those out :D (by ShadedVertex)
Build installation package help?
 
I have recently started learning C++. It is going very well, and I am enjoying it. As I am learning, I would like to start experimenting with C++ hopefully doin...
[no replies]
by Kalcor
Subsegments of an array
 
Is there a certain formula to know how many subsegments exist in an array given the number of elements in an array, and also print all sub segments?[I also thin...
[2 replies] Last: What's a subsegment of an array? A quick search doesn't yield a defi... (by mbozzi)
by KevinA
Terminating application after time/condition is met
 
Hello, I am a biomechanical engineer in need of some help with code modification. The application I recieved from a hardware manufacturer receives UDP dat...
[2 replies] Last: https://linux.die.net/man/1/timeout http://en.cppreference.com/w/cpp/t... (by ne555)
Display Commissions
 
Hey, everyone. Essentially what I am trying to do is have the user input a sales amount, calculate the commission (10%), display the commission, and then allow ...
[2 replies] Last: Hey, thanks for your help. I tried to follow your suggestions but it d... (by jj245037)
cout not working through double function call
 
I am making a command-line game (if that makes any sense). I currently have it to where if you make the move "DEBUG", it will call an enemy attack. However, the...
[4 replies] Last: Thanks! (by DiamondWolf)
I can't read and display the file properly
 
Hi, I am having issue with one of my programs. My program is supposed to read from command from the simulation text and find values form sample text. So, far I...
[3 replies] Last: That's what I am getting each time I run the code. @Jonnin I am expect... (by meprogrammer)
by Kalcor
Graph problem
 
I was trying to solve a problem that required graph implementation of bfs or similar and I just couldn't get something about it, first here is the problem link:...
[1 reply] : you start with a complete graph, where the weight between each pair is... (by ne555)
by robin1
Error when using Nodes in C++
 
Error when using Nodes in C++
[8 replies] Last: http://www.cplusplus.com/forum/general/217866/ (by closed account 48T7M4Gy)
by robin1
C++ Read access violation
 
C++ Read access violation
[2 replies] Last: http://www.cplusplus.com/forum/general/217789/#msg1006393 (by closed account 48T7M4Gy)
writing a program
 
write a program to find all the numbers between 1 and N that are divisible by 5 and 13 ( the program should accept ' N ' from the user )
[8 replies] Last: I can see one problem: The first multiple of 5 and 13 after n will b... (by DiamondWolf)
by Bank
Vector question
 
if I have a vector like this vector<int>arr ; does this mean that each vector element is an array ? or does it mean that each element in the array has its ow...
[3 replies] Last: You are welcome. I can't see anything you can do with the array that... (by jonnin)
by thimmy
A weird error of _imp prefix
 
I am a c++ newbie trying to connect to a database through c++ source code, but after seemingly added libraries where appropriate, i get screwed with '_imp_ZN3sq...
[6 replies] Last: you need libmysql.lib for windows. The dll is run-time, the lib is c... (by jonnin)
write a c + + program that displays the following menu
 
write a c + + program that displays the following menu press 1 to find sum, average and product press 2 to find min and max press 3 to exit the program ...
[no replies]
by Kalcor
STL Queue error
 
So I used STL queue inorder to do bfs on a binary search tree before and after deleting a node and it works well before deleting the node but after it just prin...
[2 replies] Last: Thank you @peter :) (by Kalcor)
June 2017 Pages: 1... 34567... 11
  Archived months: [may2017] [jul2017]

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