
please wait
by armedturret
How to store and call specific function instances
|
I am trying to program a developer console for a game I'm working on. To test if it worked, I created a test that is a static function for a command. However, w... |
Dec 17, 2017 at 12:43pm
[5 replies] Last: Thanks, that seems to work. (by armedturret)
|
by Question8
user-defined Header files and classes
|
Are you able to include and use functions from a self-defined header file inside of a class? //inside of Character.h #include "library.h" // this is my h... |
Dec 17, 2017 at 1:57am
[4 replies] Last: @Peter87 Sorry for the late reply, I was busy working on the program w... (by Question8)
|
by BJK
Delete data from txt file
|
I need to delete data from txt file. My code is not working properly. Where am I making mistakes? I need to delete the person number from the file. int del... |
Dec 16, 2017 at 11:23pm
[1 reply] : You shouldn't name a variable like a keyword (delete). On line 13 you... (by coder777)
|
by masterinex
can non member functions be made virtual in C++ ?
|
can non member functions be made virtual in C++ ? |
Dec 16, 2017 at 11:20pm
[3 replies] Last: Which object or objects should control the dispatch? Are you looking... (by mbozzi)
|
by masterinex
can a templated function be made virtual ?
|
as topic is it possible to do something like this ? class A{ public: template<typename T> virtual Token::pointer_type perform(Token::poin... |
Dec 16, 2017 at 11:17pm
[2 replies] Last: What's your actual goal? This looks like an XY problem: http://xypro... (by mbozzi)
|
Need help using mutator function to set variables in a dynamically allocated array pointer. |
Hi, I've been stuck on this problem for days. I am using a mutator member function to set variables to a dynamically allocated pointer array. When the display... |
Dec 16, 2017 at 10:52pm
[9 replies] Last: That is unfortunate. If you're going to program, you need to get bette... (by Repeater)
|
class |
Write a program which read two times (in hours, minutes and seconds) given by the user and calculate the total times that mean addition of two times and convert... |
Dec 16, 2017 at 7:25pm
[1 reply] : make an attempt at the code yourself then ask for help, (by adam2016)
|
by chuvak
Virtual functions: how to call the proper function?
|
Let's say I've defined in my interface, //interface class iClass { public: virtual void display(std::ostream&) const = 0; }; And I have a class ... |
Dec 16, 2017 at 5:38pm
[2 replies] Last: Always missing something so elementary, thank you. I was under the im... (by chuvak)
|
by Saninani
How to overwriting 2 files in 2 arrays and merge them into one
|
Hi! I need some help with my code. I made 2 files .They consist info about telephone numbers and pulses. Now I must overwriting them in 2 arrays and merge them ... |
Dec 16, 2017 at 5:32pm
[2 replies] Last: I can't sort my array by brimpulsi (pulses) . Here is my code ... (by Saninani)
|
by adam2016
single quotes vs double quotes string
|
hey people this is not so much a problem rather than curious question so I run the code below and I get the following error error: ISO C++ forbids compar... |
Dec 16, 2017 at 4:39pm
[2 replies] Last: ah ok,so the string class uses pointers internally to chars to represe... (by adam2016)
|
by adam2016
stuck in infinite loop
|
I'm not sure why an infinite loop occurs it should eventually terminate,personStart is equal to 447 I checked and confirmed this while the loop was running and ... |
Dec 16, 2017 at 4:22pm
[8 replies] Last: very nice spot Repeater thats exactly the problem =) I was almost pul... (by adam2016)
|
by adam2016
random access ofstream
|
Hi guys I am trying to write to a file so I can access it randomly,I will use indexes to get where each persons data members are stored in a txt file however... |
Dec 16, 2017 at 1:24pm
[4 replies] Last: hey Enoziat very good point I noticed this too after a while lol,I fo... (by adam2016)
|
by espoice
On private class member variable as pointer to double and its application
|
Hi there, I'm actually a bit unsure about the right way to utilize this method. My aim is to store a series of input number via class method into a member vari... |
Dec 16, 2017 at 12:53pm
[5 replies] Last: Hi guys! Thanks for the info! I have lot to meditate about now, thanks... (by espoice)
|
by zyro067
Reading a . txt file and storing into Struct
|
Hello, my good tutors While I was messing with structures (struct), I' ve stumbled upon (ifstream and ofstream). I am trying to make a log-in screen usi... |
Dec 16, 2017 at 10:43am
[1 reply] : First you need to read all the account info into a std::vector. Then y... (by Thomas1965)
|
by SaimKazmi11
Sum of First 10 prime numbers using FOR loop
|
Can someone kindly make me a code |
Dec 16, 2017 at 10:07am
[1 reply] : We are not a code writing service. Better go to: https://www.assignme... (by Thomas1965)
|
by ermai
Class member function of same type of the class
|
The code defines class member functions of it's type of class, it executes and outputs as below message: constructor printData Spec1 int: 2 Spec2 int: 4 S... |
Dec 16, 2017 at 9:22am
[1 reply] : You did forgot the copy constructor. (by keskiverto)
|
2D arrays and conway's game of life (1,2) |
Write your question here. [Hi all, I am brand new to programming but I am having trouble displaying a 2d array and inserting a character in a random location... |
Dec 16, 2017 at 6:49am
[25 replies] Last: I decided to go with multiple if statements since I couldnt figure out... (by sero the hero)
|
Created Object does not see any of its own member variables. |
Working with the AGK game engine but I don't think the issue is related to it. it's more about the core code I have an class of a button. It holds a sprite of ... |
Dec 16, 2017 at 3:36am
[6 replies] Last: Thank you, both of you for explaining. (by TheConceptBoy)
|
by cppnewbie13
48:2: error: expected unqualified-id before 'return'.....please help! thank you
|
My program is supposed to determine what a user's letter grade is from an input value, but it won't run because if this error: 48:2: error: expected unqualified... |
Dec 16, 2017 at 3:22am
[1 reply] : your return statement is outside the main function. (by Yanson)
|
by looter809
Deleted.
|
Nevermind. |
Dec 16, 2017 at 2:52am
[1 reply] : MoveCheck moves the player if it is able to be moved. Then you unco... (by cire)
|