General C++ Programming - February 2015 (Page 19)

I need help, this is confusing
 
I am in my second semester of a computer science class. I'm currently in Chapter 9 of the C++ From Control Structures through Objects. I'm working on program ch...
[7 replies] Last: I'm still having a little problem on making the the name and number ar... (by TheDMinor)
Using a class file in main file
 
I'm having trouble working the two files together. I keep getting this error error LNK2005: public:_thiscall datype::daytype(void)"(??0daytype@@QAE@XZ) alrea...
[2 replies] Last: Thanks ats15 but I figured it out after an hour of reading a c++ book ... (by programmercarlito)
Void functions and variables
 
Hi I'm fairly new to C++ and programming in general and I'm trying to get a program to check the parameters of a binary string before converting that string to...
[3 replies] Last: Thank you guys, I got it using the alternative method above. And tha... (by kipkenth)
PLEASE HELP
 
I just started in a C++ programming class and this is only the seconds program I've written in it. I keep getting an error "warning C4244:'=' : conversion from ...
[3 replies] Last: When posting code, please use code tags. Highlight the code and click ... (by dhayden)
Please help me run this code
 
https://cs.senecac.on.ca/~gam670/pages/content/force.html This website provides sample code for forced feedback joystick. I wanted to try it with my Logitech F...
[no replies]
Ending before I want it too
 
my program is ending before I want it to and I cant figure out why. #include <iostream> #include <string> using namespace std; int main() { { int W...
[1 reply] : Line 48: You're trying to enter a character into a float. That's not... (by AbstractionAnon)
by kfk
Visual C++ LNK2005 problem
 
Hi, I need your expert's help on this issue: 1>------ Build started: Project: class_test, Configuration: Release Win32 ------ 1>Build started 08-02-2015 18:...
[1 reply] : I assume the body for ac::pf is in a header? If so, then you have to ... (by Disch)
Invalid integer constant expression [Help!]
 
#if WIN32 && __MINGW32__ && !ZCOM_BUILD//Error On this line (highlighting first &&) #define ZCOM_API #define ZCOM_TAPI #elif WIN32 && __MINGW32__ && ZCOM_B...
[no replies]
why we are not using call by value method in copy constructor for passing the object to get copied?
 
class X{ X(const X& obj1){} }; int main() { X obj1; X obj2 = obj1; } //we are passing the object by reference. //the obj1's data members can be chang...
[5 replies] Last: > A copy ctor which takes a pointer argument is not a copy constructo... (by ne555)
C++
 
I want to accept numbers from the user into an array and convert into corresponding alphabets. E.g 1 into A, 2 into B, and so on. This is simple, but the pro...
[5 replies] Last: Thnx @gamer2015, but I feel I did not convey the question properly. S... (by thebatman)
by WAKS
Smooth sprite movement (SDL)
 
Hello! I'm making a 2D rpg game, but I have some problem with the sprite movement. The sprite movement feels choppy. That's because I move the sprite 5 pixels p...
[8 replies] Last: Try taking out the FPS stuff maybe...you really shouldn't need it with... (by twiggystardust)
PLEASE SOMEONE SHOULD HELP WITH SOLUTION
 
1. how do i demonstrate(write) the various operators in c++,using codeblock 2. how do i demostrate(write) the of #define and const in working with constants ...
[3 replies] Last: gamer2015 is what u can contribute that we need here not contradicting... (by allinscoguy)
How to Write this Code?
 
Hey guys How to write a Code for Getting output to this pattern. Getting Stars with this Pattern How to write it using For loop or nested loop? Without if els...
[1 reply] : you copy the code wrong; no ; at the end of line no 8 see my correc... (by sujitnag)
maths
 
Please help me am trying to write a code for a mathematical program that prompts users to enter height and base then find area but displays the answer in this f...
[1 reply] : #include <iostream> using namespace std; int main () { int base,he... (by sujitnag)
Help me out
 
Please help me am trying to write a code for a mathematical program that prompts users to enter height and base then find area but displays the answer in this f...
[no replies]
by Atton
A Some What Decent Head Spiner
 
I have had quite a head spinner on trying to transform a string into a char. I've been trying to do this for the project below. http://www.codeproject.com/Arti...
[2 replies] Last: No, it doesn't. The chr is a pointer. The pointer stores an address. ... (by keskiverto)
Loops! Help :p
 
Hello! I am having a difficult time building this program, it is our first time using loops and our professor didnt spend a lot of time going over it. We spent...
[10 replies] Last: If I understand what you are trying to do this should be the code belo... (by sly858)
by KMagic
Game programming
 
Hi everyone, I used to learn Pascal as a starting language. After that, I started to learn C++ 4 months ago and now, I've grasped the basics of the language. ...
[1 reply] : You should get comfortable with a C++ Graphics Library if you want to ... (by Gamer2015)
Need some suggestions for my c++ project
 
HI guys, i don't know whether this is the right place for this topic but... I am 4th semester (2nd year) student of computer science engg, and have some goo...
[no replies]
by JohnyL
How to do the same with std::make_unique
 
Say, I have the following class "Object" and I want to create clone of it. class Object { public: int Id; string Name; auto getClone() { unique_ptr<Obje...
[2 replies] Last: @keskiverto Thanks! Your code works but with one condition - there m... (by JohnyL)
February 2015 Pages: 1... 1718192021... 26
  Archived months: [jan2015] [mar2015]

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