15,888,113 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by BerthaDusStuf (Top 50 by date)
BerthaDusStuf
18-Nov-18 9:50am
View
what do you mean by some working sample app?
BerthaDusStuf
12-Nov-18 15:30pm
View
I tried using a solid color and it still showed nothing. Also void main() is correct but thanks.
BerthaDusStuf
25-Jul-18 14:20pm
View
I am not trying to get you to do my work for me, I just dont know about this topic and although I know that it is probably good to read around preprocesing and compilation and things like that, but I dont have time and I think it is doable without it. If you dont want to help thats fine but Im not looking to read into preprocessing compiling and linkking right now
BerthaDusStuf
25-Jul-18 4:53am
View
User-2223753 thanks for the suggestion but I dont havee much time to learn this so I am trying to learn to set it up as quickly as possible
BerthaDusStuf
23-Jul-18 18:21pm
View
Also I dont actually know what I am doing by going to project, build options-search directories-compiler(or linker) and selecting files. I just followed a tutorial but could you explain abit about what I am doing there. And also what am I doing in build-options-linker settings? I dont really know much so please explain simply. thanks
BerthaDusStuf
23-Jul-18 18:21pm
View
Also I dont actually know what I am doing by going to project, build options-search directories-compiler(or linker) and selecting files. I just followed a tutorial but could you explain abit about what I am doing there. And also what am I doing in build-options-linker settings? I dont really know much so please explain simply. thanks
BerthaDusStuf
23-Jul-18 17:53pm
View
Ok thanks I have made adjustments so that now my glad folder is part of my project folder so but I am still getting the error. I also tried putting it in quotations like this: #include "glad/glad.h" and it still hasn't worked. It is the same errors that came up though. Do you have any other suggestions?
BerthaDusStuf
15-Jul-18 5:36am
View
ok thanks
BerthaDusStuf
5-Jul-18 16:26pm
View
its ok my problem is solved
BerthaDusStuf
5-Jul-18 16:25pm
View
It is ok my problem is solved
BerthaDusStuf
5-Jul-18 4:40am
View
Ok thanks, very easy to understand and well structured answer
BerthaDusStuf
4-Jul-18 17:39pm
View
"So that you could do something like list1 = list2 = list3 = list4 = ..."
Is this because it is like writing:
list1.operator=(list2.operator=(list3.operator=(list4)))
"You probably need to look inside the insert method to figure out if anything happens there"
But the insert method doesnt take p_itr as a parameter so it can not modify it, it takes a value pointed to by p_itr. This could just be a mistake in the book but I just didn't want to assume so before checking with people who know better.
"Not correct. In fact this is the signature for a copy constructor like Player(const Player& other);"
Sorry I meant assignment operator not copy constructor. Is operator=(const Player& other); a valid definition for a copy constructor because there is no type given.
BerthaDusStuf
4-Jul-18 17:10pm
View
Ok thanks
BerthaDusStuf
4-Jul-18 17:09pm
View
Oh ok sorry I didnt realise, I mean assignment operator definition
BerthaDusStuf
4-Jul-18 16:07pm
View
The defining of the class is in the enemy_definitions.h file under the definition for the enemies class and then the implementation of its constructor and print_information() function are in the enemy_definitions.cpp file
BerthaDusStuf
4-Jul-18 16:02pm
View
Ok I changed it to public but it is still giving me the multiple declarations of robots::robots error
BerthaDusStuf
4-Jul-18 15:59pm
View
Ok sorry about that and ok thanks I will try changing it to public
BerthaDusStuf
4-Jul-18 7:12am
View
But it is the class that is calling print_information. I created a class called Bertha and called print_information on the class itself so the function being private shouldnt be a problem
BerthaDusStuf
3-Jul-18 14:54pm
View
Also when you do enemy::print_information(), firstly does this just paste the code from enemy print_information? Secondly, if it does just paste the code then it will be pasting code that will be trying to access private members of enemy which haven't been inherited by robot because robot only receives public members of enemies so why does that code work?
BerthaDusStuf
3-Jul-18 14:44pm
View
that is all of the code and I said the error is on line 8 of enemy_definitions.cpp
BerthaDusStuf
3-Jul-18 6:37am
View
ok thanks well I have found the fix to my problem and it was because I never actually defined the print_information function in the enemies superclass but now I have another problem so Im going to update my question
BerthaDusStuf
3-Jul-18 6:13am
View
I think it is meant to be able to work without using override or the value initialization because neither of those things were taught in the book I am reading. Is there not just an error I can fix to make it work?
BerthaDusStuf
3-Jul-18 5:37am
View
I dont know what override does and also you used these brackets {} after declaring variables. I havent seen that before but I have seen these brackets () after variables to put something into their constructor.
BerthaDusStuf
3-Jul-18 5:34am
View
Thanks for the semi colon and the only other information it gives is the line number is 16 and the file is enemy_definitions.h
BerthaDusStuf
29-Jun-18 18:20pm
View
ok thanks
BerthaDusStuf
29-Jun-18 18:18pm
View
ok thanks
BerthaDusStuf
28-Jun-18 9:54am
View
yes I read your answer quite alot but im struggling to understand what you mean.
For example here:
"He was initializing the field at the time of object creation, rather after that."
my question is well wouldnt doing string whose_move = "white" also be initialising the field at the time of object creation?
BerthaDusStuf
28-Jun-18 5:29am
View
Ok but what is the difference between passing "white" into the constructor and setting the string equal to white when it is declared?
BerthaDusStuf
28-Jun-18 3:49am
View
sorry i dont understand very well
BerthaDusStuf
14-Jun-18 12:17pm
View
Ok thanks
BerthaDusStuf
14-Jun-18 12:16pm
View
Ok thanks
BerthaDusStuf
14-Jun-18 12:12pm
View
Ok thanks
BerthaDusStuf
13-Jun-18 14:50pm
View
oh ok thanks, also do you know whether maps are built like arrays or like linked lists or what sort of data structure are they?
BerthaDusStuf
12-Jun-18 17:19pm
View
So it is the fact that u can use a variable to get an index that makes them good for searching?
BerthaDusStuf
9-Jun-18 16:06pm
View
ok ty
BerthaDusStuf
9-Jun-18 6:32am
View
Ok thanks I dont really know how to use the debugger and I plan on learning soon but I understand the code and it works as expected but I just think that it only works in some cases
BerthaDusStuf
8-Jun-18 19:11pm
View
ok thanks
BerthaDusStuf
23-Mar-18 10:50am
View
Yes I am going through a book in order of chapters and I have got an idea of what classes are aswell but I dont have much knoledge on the syntax of them and how to implement them.
BerthaDusStuf
19-Mar-18 18:17pm
View
Ok thanks someone suggested earlier that I should use new and now I see how.
BerthaDusStuf
19-Mar-18 18:15pm
View
Oh thanks for the solution but I dont really know how to use classes very well and a few other things that you have used in you code, I am only making this for the purpose of practicing using linked lists but thanks, sorry I should have made it clear that I needed to do it using linked lists
BerthaDusStuf
19-Mar-18 18:12pm
View
Ok thanks I don't know how to use the debugger but Ill look into it
BerthaDusStuf
19-Mar-18 18:02pm
View
So is what your saying is using new allows you to name multiple variables the same thing? Also what example?
BerthaDusStuf
19-Mar-18 16:49pm
View
Oh I think I saw other examples of using a loop to create multiple items in a linked list using the same variable name each loop but I think that example was using new to get memory from the free store. Is it the fact that I am not utilizing the free store that means I can not name the variable the same thing each time?
BerthaDusStuf
19-Mar-18 16:06pm
View
ok i will try to learn it
BerthaDusStuf
19-Mar-18 15:43pm
View
No I dont really know how to use the debugger
BerthaDusStuf
16-Mar-18 20:33pm
View
oh ok but then I tried running that program and it changed the value of it so it didnt compare, it actually assigned it that value
BerthaDusStuf
16-Mar-18 14:00pm
View
Deleted
this is just a test to see if there is a maximum comment length: ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
BerthaDusStuf
16-Mar-18 13:59pm
View
Hi thanks for your reply, yes i do know what the & does and i also have a fair bit of knoledge on pointers but i still dont know why there is a double equals there rather than single. is that something ill learn about or is there just a simple explanation for it? also i dont want to do it without the ampersand because i want it to have the same backing memory rather than make a copy
BerthaDusStuf
7-Mar-18 3:51am
View
Thanks for the reply. I dont think it would take the address of the list but it would just take the address of that ship because each ship has its own individual address but I now can see how it would work without taking the address of the pointer.
BerthaDusStuf
7-Mar-18 3:49am
View
hi sorry I took so long to reply, because of school but thanks for your reply, I now understand why it doesn't have to point to the address of the next enemy because that would meant to get the values of the next enemy you would have to dereference twice to get the values of the enemy but I still think it would work if it did, you could just dereference twice to get the values of the enemy and I dont see why it would point to unallocated memory as when p_enemies was declared it would have been given a valid memory address.
Show More